public class IlrDTWTableComponent extends IlxWComponent
IlrDTWTableComponent represents a web-based version of the
Decision Table Editor in Rule Designer.
Web components are server-side Java components that have a graphical representation on an HTML client, typically a web browser. These components have been designed so that you can easily embed them in a servlet or in a JSP environment.
A web component that is embedded in a servlet or a JSP runs on all browsers without any browser-dependent code, although the HTML code that is dispatched to the client page is browser-dependent.
To included this editor in a JSP/Servlet page, either:
IlxWComponent.
port.open(); IlxWManager manager = IlxWManager.getManager(session); // initialization of web decisiontable bundles (need to be done only once) IlrDTWTableComponent.initProperties(); dtView = new IlrDTWTableComponent(dtController); manager.add(dtView); dtview.print(port); port.close();The
IlrDTWTableComponent object is initialized with a
dtController for a decision table. Outside Decision Center,
use this class instead of instantiating IlrDTWTableView
directly.
IlxWComponent,
Serialized FormIlxWComponent.DynamicStyleMaplistenerList| Constructor and Description |
|---|
IlrDTWTableComponent(ilog.rules.dt.IlrDTController dtController)
Creates the editor and the edit bar.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
initProperties()
Loads and initializes the resource bundles.
|
static void |
initProperties(java.util.Locale locale)
Deprecated.
|
void |
setOnSubmitHook(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
Adds a hook that will be called when the user clicks the
|
void |
setOnValueChange(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
Adds a hook that will be called when the user changes the edited value.
|
void |
setPreSubmitHook(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
Adds a hook that will be called when the user clicks the
|
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, printComponent, removePropertyChangeListener, removePropertyChangeListener, setName, validateadd, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizerpublic IlrDTWTableComponent(ilog.rules.dt.IlrDTController dtController)
dtController - The DT controller.public static void initProperties()
Call this method once before instantiating the
IlrDTWTableComponent. You can have only one locale at a time
for the whole application.
public static void initProperties(java.util.Locale locale)
locale - The locale.public void setOnSubmitHook(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
hook - The hook.ilog.rules.webui.dtable.IlrDTWTable.Hookpublic void setPreSubmitHook(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
hook - The hook.ilog.rules.webui.dtable.IlrDTWTable.Hookpublic void setOnValueChange(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
hook - The hook.ilog.rules.webui.dtable.IlrDTWTable.Hook© Copyright IBM Corp. 1987, 2017