Decision Center API

ilog.rules.webui.dt
Class IlrDTWTableComponent

java.lang.Object
  extended by ilog.webui.dhtml.IlxWContainer
      extended by ilog.webui.dhtml.IlxWComponent
          extended by ilog.rules.webui.dt.IlrDTWTableComponent
All Implemented Interfaces:
ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, 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:

The following code example shows how to do this:
   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.

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
IlrDTWTableComponent(ilog.rules.dt.IlrDTController dtController)
          Creates the editor and the edit bar.
 
Method Summary
static void initProperties()
          Loads and initializes the resource bundles.
static void initProperties(Locale locale)
          Deprecated.  
 void setOnSubmitHook(ilog.rules.webui.dtable.IlrDTWTable.Hook hook)
          Adds a hook that will be called when the user clicks the SUBMIT 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 the SUBMIT 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(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 the SUBMIT 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 the SUBMIT 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

Decision Center API

© Copyright IBM Corp. 1987, 2013