Hitachi

JP1 Version 12 JP1/Integrated Management 2 - Manager Command, Definition File and API Reference


6.3.1 CustomContent.initialize

Functionality

This method executes the initialization processing by using the event handler received by the argument.

To draw the user definition window, always execute this method.

Format

initialize(handlers)

Argument

Defines the events to be obtained in the user definition window and transfers the names of functions to be executed when the events are obtained.

handlers

Event handlers

There are the following types of event handlers:

  • onSetup()

    The setup event handler

    This event handler handles events that occur when the user definition window is drawn for the first time.

  • onActivate()

    The activation event handler

    This event handler handles events that occur when the drawing of the user definition window is completed.

  • onInactivate()

    The inactivation event handler

    This event handler handles events that occur when another window is displayed in the drawn user definition window.

  • onNodeSelect(node)

    The node selection event handler

    This event handler handles events that occur when an IM management node is selected.

  • onStatusUpdate(node)

    The node status update event handler

    This event handler handles events that occur when the status of the IM management node is updated regardless of the selected IM management node.

Return value

None

Use example

The following are some example cases:

  1. When the onSetup event is received, the Setup function of the user definition window is run.

  2. When the onNodeSelect event is received, the NodeSelect function of the user definition window is run.

  3. When the onActivate event is received, the Activate function of the user definition window is run.

    <html>
    <script src="/assets/js/vendor.js"></script>
    <script src="/assets/js/customContent.js"></script>
    <script>
     
    CustomContent.initialize({
      onSetup: Setup,
      onNodeSelect: NodeSelect,
      onActivate: Activate
    });
    function Activate() {
    alert("onActivate");
    }
    function NodeSelect () {
    alert("onNodeSelect ");
    }
    function Setup () {
    alert("onSetup");
    }
    </script>
    </html>