|
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.rules.webui.IlrWValueEditorActionManager ilog.rules.webui.IlrWDefaultValueEditorActionManager
public class IlrWDefaultValueEditorActionManager
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:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent |
---|
IlxWComponent.DynamicStyleMap |
Field Summary | |
---|---|
static String |
CANCEL_COMMAND
Name of the 'cancel' action command. |
static String |
OK_COMMAND
Name of the 'OK' action command. |
Fields inherited from class ilog.webui.dhtml.IlxWContainer |
---|
listenerList |
Constructor Summary | |
---|---|
IlrWDefaultValueEditorActionManager()
Constructs a default value editor action manager. |
Method Summary | |
---|---|
void |
addActionListener(ActionListener l)
Adds the specified action listener to receive action events when the dialog window is closed. |
void |
addToDialogPane(IlxWComponent component)
Adds a component to the main panel of the dialog box. |
void |
closeDialog(String command)
Closes the token action manager dialog. |
ilog.webui.dhtml.components.IlxWPanel |
getDialogPane()
Deprecated. Use addToDialogPane instead. |
protected void |
printComponent(IlxWPort port)
Prints the HTML code that will display the graphical representation of this component. |
void |
removeActionListener(ActionListener l)
Removes the specified action listener so that it no longer receives action events from this component. |
void |
setDialogWindowClass(String windowClass)
Sets the CSS classes for the dialog window. |
void |
setEditedValue(Object value)
Sets the value to be managed by this object. |
void |
setValue(Object value)
Sets the value of the token associated with this token action 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 |
---|
add, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String OK_COMMAND
public static String CANCEL_COMMAND
Constructor Detail |
---|
public IlrWDefaultValueEditorActionManager()
Method Detail |
---|
public void setEditedValue(Object value)
Does nothing in this case, it must be overridden.
setEditedValue
in class IlrWValueEditorActionManager
public ilog.webui.dhtml.components.IlxWPanel getDialogPane()
addToDialogPane
instead.
Use this panel to add your component(s) to the dialog.
public void addToDialogPane(IlxWComponent component)
component
- The component to add.public void addActionListener(ActionListener l)
l
- The action listener.public void removeActionListener(ActionListener l)
l
- The action listener.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 closeDialog(String command)
command
- One of OK_COMMAND or CANCEL_COMMAND.public void setDialogWindowClass(String windowClass)
windowClass
- A string containing one or several CSS classes separated by a space.public void setValue(Object value)
value
- The value to set.
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |