ilog.webui.dhtml.components

Class IlxWDialog

  • All Implemented Interfaces:
    ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, java.io.Serializable
    Direct Known Subclasses:
    IlxWDialog.OKCancelDialog


    public class IlxWDialog
    extends IlxWComponent
    Dialog window.

    A dialog window is displayed as a new browser window. The content of the dialog is defined by adding components in the dialog pane, which you can get via getContentPane(). A dialog is a web component but cannot be add in a container as a standard component. It must be registered via its register method.

    A dialog window will be shown when its action, returned by the getShowAction method, is performed.

    In order to be notified when the dialog is closed, you can redefine the onClose method. For that, you must previously print the "closing notifier" on the parent window with the printWindowClosingNotifier method.

    See Also:
    Serialized Form
    • Constructor Detail

      • IlxWDialog

        public IlxWDialog()
        Constructs a dialog.
    • Method Detail

      • printWindowClosingNotifier

        public void printWindowClosingNotifier(IlxWPort port)
                                        throws java.io.IOException
        Prints the notifier.

        This notifier can be printed on the parent window in order to tell the framework to call the onClose method once the dialog window is closed.

        Throws:
        java.io.IOException
        Parameters:
        port - The current port.
        See Also:
        onClose(ilog.webui.dhtml.IlxWPort)
      • unregister

        public void unregister()
        Unregisters a dialog box from the manager.
      • add

        public IlxWComponent add(IlxWComponent component)
        Redefined to forbid component to be added or removed after initialized. Component must be added/removed externally via the ContentPane panel.
        Overrides:
        add in class IlxWContainer
        Parameters:
        component - The component to be added.
        Returns:
        The component passed as the argument.
      • add

        public IlxWComponent add(IlxWComponent component,
                        int index)
        Redefined to forbid component to be added or removed externally. Component must be added/removed externally via the ContentPane panel.
        Overrides:
        add in class IlxWContainer
        Parameters:
        component - The component to be added.
        index - The position at which to insert the component.
        Returns:
        The component passed as the argument.
      • getContentPane

        public ilog.webui.dhtml.components.IlxWPanel getContentPane()
        Get the content pane which will be displayed when this dialog is shown.
      • requestClose

        public void requestClose()
        Request the window to be closed. The next time a response is sent it will print a JavaScript statement which will make the window to close.
      • getShowAction

        public IlxWJSAction getShowAction()
        Return the JavaScript action to perform in order to show this dialog window.

© Copyright IBM Corp. 1987, 2017