ilog.rules.webui

Class IlrWDefaultValueEditorActionManager

  • All Implemented Interfaces:
    ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, java.io.Serializable


    public class IlrWDefaultValueEditorActionManager
    extends IlrWValueEditorActionManager
    Default web value editor action manager.

    This value editor action manager is displayed in the Web Rule Editor as a link displaying the text of the corresponding token. When this link is clicked, it pops an "OK/Cancel" dialog window.

    The dialog window must be enriched by your components, through addToDialogPane(ilog.webui.dhtml.IlxWComponent). Just after the dialog window is closed, an action event is fired and dispatched to the registered action listeners. The actioncommand string associated with the event is defined as follows:

    • OK_COMMAND: if the window closing results from pressing the OK button.
    • CANCEL_COMMAND: if the window has been closed another way.
    You will typically add your own action listener in order to update the token according to the current state of the dialog window (for example, the dialog pane contains a color chooser, and the selected color has changed).
    See Also:
    Serialized Form
    • Field Detail

      • OK_COMMAND

        public static java.lang.String OK_COMMAND
        Name of the 'OK' action command.
      • CANCEL_COMMAND

        public static java.lang.String CANCEL_COMMAND
        Name of the 'cancel' action command.
    • Constructor Detail

      • IlrWDefaultValueEditorActionManager

        public IlrWDefaultValueEditorActionManager()
        Constructs a default value editor action manager.
    • Method Detail

      • setEditedValue

        public void setEditedValue(java.lang.Object value)
        Sets the value to be managed by this object.

        Does nothing in this case, it must be overridden.

        Specified by:
        setEditedValue in class IlrWValueEditorActionManager
      • getDialogPane

        public ilog.webui.dhtml.components.IlxWPanel getDialogPane()
        Deprecated. Use addToDialogPane instead.
        Gets the main panel of the dialog box.

        Use this panel to add your component(s) to the dialog.

      • addToDialogPane

        public void addToDialogPane(IlxWComponent component)
        Adds a component to the main panel of the dialog box.
        Parameters:
        component - The component to add.
      • addActionListener

        public void addActionListener(java.awt.event.ActionListener l)
        Adds the specified action listener to receive action events when the dialog window is closed.
        Parameters:
        l - The action listener.
      • removeActionListener

        public void removeActionListener(java.awt.event.ActionListener l)
        Removes the specified action listener so that it no longer receives action events from this component.
        Parameters:
        l - The action listener.
      • closeDialog

        public void closeDialog(java.lang.String command)
        Closes the token action manager dialog.
        Parameters:
        command - One of OK_COMMAND or CANCEL_COMMAND.
      • setDialogWindowClass

        public void setDialogWindowClass(java.lang.String windowClass)
        Sets the CSS classes for the dialog window.
        Parameters:
        windowClass - A string containing one or several CSS classes separated by a space.
      • setValue

        public void setValue(java.lang.Object value)
        Sets the value of the token associated with this token action manager.
        Parameters:
        value - The value to set.

© Copyright IBM Corp. 1987, 2017