|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.webui.dhtml.IlxWContainer ilog.webui.dhtml.IlxWComponent ilog.webui.dhtml.components.IlxWDialog
public class IlxWDialog
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.
Nested Class Summary | |
---|---|
static class |
IlxWDialog.OKCancelDialog
Custom dialog box which displays 3 components: a body component. |
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent |
---|
IlxWComponent.DynamicStyleMap |
Field Summary |
---|
Fields inherited from class ilog.webui.dhtml.IlxWContainer |
---|
listenerList |
Constructor Summary | |
---|---|
IlxWDialog()
Constructs a dialog. |
Method Summary | |
---|---|
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,
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,
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. |
Methods inherited from class ilog.webui.dhtml.IlxWComponent |
---|
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, removePropertyChangeListener, removePropertyChangeListener, setName, validate |
Methods inherited from class ilog.webui.dhtml.IlxWContainer |
---|
getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlxWDialog()
Method Detail |
---|
public void printWindowClosingNotifier(IlxWPort port) throws 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.
IOException
port
- 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.
printWindowClosingNotifier(ilog.webui.dhtml.IlxWPort)
public void register(IlxWManager manager, String uniqueName)
uniqueName
.
getRegisteredDialog(ilog.webui.dhtml.IlxWManager, java.lang.String)
,
unregister()
public static IlxWDialog getRegisteredDialog(IlxWManager manager, 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 IlxWContainer
component
- The component to be added.
public IlxWComponent add(IlxWComponent component, int index)
ContentPane
panel.
add
in class IlxWContainer
component
- The component to be added.index
- The position at which to insert the component.
public void remove(IlxWComponent component)
ContentPane
panel.
remove
in class IlxWContainer
component
- The component to be removed.IlxWContainer.add(ilog.webui.dhtml.IlxWComponent)
public ilog.webui.dhtml.components.IlxWPanel getContentPane()
protected void printComponent(IlxWPort port) throws IOException
IlxWComponent
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
method.
printComponent
in class IlxWComponent
IOException
port
- The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
public void requestClose()
public IlxWJSAction getShowAction()
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |