public class IlxWDialog extends IlxWComponent
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
IlxWDialog.OKCancelDialog
Custom dialog box which displays 3 components:
a body component.
|
IlxWComponent.DynamicStyleMaplistenerList| Constructor and Description |
|---|
IlxWDialog()
Constructs a dialog.
|
| Modifier and Type | Method and Description |
|---|---|
IlxWComponent |
add(IlxWComponent component)
Redefined to forbid component to be added or removed after
initialized.
|
IlxWComponent |
add(IlxWComponent component,
int index)
Redefined to forbid component to be added or removed externally.
|
ilog.webui.dhtml.components.IlxWPanel |
getContentPane()
Get the content pane which will be displayed when this dialog is
shown.
|
static IlxWDialog |
getRegisteredDialog(IlxWManager manager,
java.lang.String uniqueName)
Gets the dialog previously registered in the manager.
|
IlxWJSAction |
getShowAction()
Return the JavaScript action to perform in order to show this dialog
window.
|
protected void |
onClose(IlxWPort port)
Called when the dialog window is closed.
|
protected void |
printComponent(IlxWPort port)
Prints the HTML code that will display the graphical
representation of this component.
|
void |
printWindowClosingNotifier(IlxWPort port)
Prints the notifier.
|
void |
register(IlxWManager manager,
java.lang.String uniqueName)
Registers a dialog box in the manager.
|
void |
remove(IlxWComponent component)
Redefined to forbid component to be added or removed externally.
|
void |
requestClose()
Request the window to be closed.
|
void |
unregister()
Unregisters a dialog box from the manager.
|
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, removePropertyChangeListener, removePropertyChangeListener, setName, validategetAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizerpublic void printWindowClosingNotifier(IlxWPort port) throws java.io.IOException
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.
java.io.IOExceptionport - The current port.onClose(ilog.webui.dhtml.IlxWPort)protected void onClose(IlxWPort port)
This method will be closed only if printWindowClosingNotifier
has been already called on the parent window.
This method does nothing by default.
public void register(IlxWManager manager, java.lang.String uniqueName)
uniqueName.public static IlxWDialog getRegisteredDialog(IlxWManager manager, java.lang.String uniqueName)
uniqueName - The name which has been previously passed to
the register.register(ilog.webui.dhtml.IlxWManager, java.lang.String)public void unregister()
public IlxWComponent add(IlxWComponent component)
ContentPane panel.add in class IlxWContainercomponent - The component to be added.public IlxWComponent add(IlxWComponent component, int index)
ContentPane panel.add in class IlxWContainercomponent - The component to be added.index - The position at which to insert the component.public void remove(IlxWComponent component)
ContentPane panel.remove in class IlxWContainercomponent - The component to be removed.IlxWContainer.add(ilog.webui.dhtml.IlxWComponent)public ilog.webui.dhtml.components.IlxWPanel getContentPane()
protected void printComponent(IlxWPort port) throws java.io.IOException
IlxWComponentIlxWComponent.print(ilog.webui.dhtml.IlxWPort) method.printComponent in class IlxWComponentjava.io.IOExceptionport - The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)public void requestClose()
public IlxWJSAction getShowAction()
© Copyright IBM Corp. 1987, 2017