ilog.rules.webui.dt
Class IlrDTWTableComponent
- java.lang.Object
-
- ilog.webui.dhtml.IlxWContainer
-
- ilog.webui.dhtml.IlxWComponent
-
- ilog.rules.webui.dt.IlrDTWTableComponent
-
- All Implemented Interfaces:
- ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, java.io.Serializable
public class IlrDTWTableComponent extends IlxWComponent
IlrDTWTableComponent
represents a web-based version of the Decision Table Editor in Rule Designer.Overview
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.
Code example
To included this editor in a JSP/Servlet page, either:
- Embed it directly in a JSP page.
- Embed in another web component such as
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();
TheIlrDTWTableComponent
object is initialized with adtController
for a decision table. Outside Decision Center, use this class instead of instantiatingIlrDTWTableView
directly.- See Also:
IlxWComponent
, Serialized Form
-
-
Nested Class Summary
-
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
Constructors Constructor and Description IlrDTWTableComponent(ilog.rules.dt.IlrDTController dtController)
Creates the editor and the edit bar.
-
Method Summary
Methods 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 theSUBMIT button after the value has been changed in the model.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 theSUBMIT button, and before the value is changed in the model.-
Methods inherited from class ilog.webui.dhtml.IlxWComponent
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, printComponent, 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
-
-
-
-
Constructor Detail
-
IlrDTWTableComponent
public IlrDTWTableComponent(ilog.rules.dt.IlrDTController dtController)
Creates the editor and the edit bar.- Parameters:
dtController
- The DT controller.
-
-
Method Detail
-
initProperties
public static void initProperties()
Loads and initializes the resource bundles.Call this method once before instantiating the
IlrDTWTableComponent
. You can have only one locale at a time for the whole application.
-
initProperties
public static void initProperties(java.util.Locale locale)
Deprecated.Properties are locale insensitive, message bundles are now loaded according to the DT controller locale.- Parameters:
locale
- The locale.
-
setOnSubmitHook
public void setOnSubmitHook(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
Adds a hook that will be called when the user clicks theSUBMIT button after the value has been changed in the model.- Parameters:
hook
- The hook.- See Also:
ilog.rules.webui.dtable.IlrDTWTable.Hook
-
setPreSubmitHook
public void setPreSubmitHook(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
Adds a hook that will be called when the user clicks theSUBMIT button, and before the value is changed in the model. The hook can be used to perform some value checking.- Parameters:
hook
- The hook.- See Also:
ilog.rules.webui.dtable.IlrDTWTable.Hook
-
setOnValueChange
public void setOnValueChange(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
Adds a hook that will be called when the user changes the edited value.- Parameters:
hook
- The hook.- See Also:
ilog.rules.webui.dtable.IlrDTWTable.Hook
-
-