ilog.cpl.table.renderer
Class IlpInteractorRenderer

java.lang.Object
  extended by ilog.cpl.table.renderer.IlpAbstractTableViewRenderer
      extended by ilog.cpl.table.renderer.IlpAbstractTableInteractorRenderer
          extended by ilog.cpl.table.renderer.IlpInteractorRenderer
All Implemented Interfaces:
ilog.cpl.graphic.css.renderer.IlpInteractorRenderer

public class IlpInteractorRenderer
extends IlpAbstractTableInteractorRenderer
implements ilog.cpl.graphic.css.renderer.IlpInteractorRenderer

This class gives control over the interactors of a table component.

This class shows all the properties that can be customized in the table controller using cascading style sheets.

The CSS configuration can be applied to the table component, using IlpTableView.setStyleSheets(java.lang.String[]).

To customize the table controller configuration programmatically, use IlpTableController.

This class is a CSS stylable JavaBean. It can be configured as follows in a CSS file:

 Table {
   interactor: true;
 }
 Interactor {
   viewInteractor : @+viewInter;
   headerInteractor: @+headerInter;
 }
 
 Subobject#viewInter {
   class: ilog.cpl.table.interactor.IlpDefaultTableViewInteractor;
 }
 #headerInter {
   class: ilog.cpl.table.interactor.IlpDefaultTableHeaderInteractor;
 }
 

When the interactor renderer is enabled, it is also possible to define interactors that are associated with business objects and attributes.

Table cell interactors can be customized in the following way:

 object."business class name/attribute name" {
   interactor: @+objInter;
 }
 Subobject#objInter {
   class: ilog.cpl.interactor.IlpDefaultObjectInteractor;
 }
 
Table row interactors can be customized as follows:
 object."business class name" {
   interactor: @+objInter;
 }
 

Please note that the support for the header interactor and the object interactors in the table component is associated with the use of IlpDefaultTableViewInteractor.

Since:
JTGO 4.0

Constructor Summary
IlpInteractorRenderer()
           
 
Method Summary
 IlpDefaultTableHeaderInteractor getHeaderInteractor()
          Returns the header interactor used to manage events that occur in the table header.
 void reset()
          Resets all settings of this renderer.
 void setHeaderInteractor(IlpDefaultTableHeaderInteractor v)
          Sets the header interactor that will be used to manage events that occur in the table header.
 
Methods inherited from class ilog.cpl.table.renderer.IlpAbstractTableInteractorRenderer
getCSSID, getObjectInteractor, getObjectInteractor, getViewInteractor, setObjectInteractor, setObjectInteractor, setViewInteractor
 
Methods inherited from class ilog.cpl.table.renderer.IlpAbstractTableViewRenderer
attach, detach, getContext, getViewSupport, isRendererEnabled, setRendererEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
getObjectInteractor, getObjectInteractor, getViewInteractor, isRendererEnabled, setObjectInteractor, setObjectInteractor, setViewInteractor
 

Constructor Detail

IlpInteractorRenderer

public IlpInteractorRenderer()
Method Detail

getHeaderInteractor

public IlpDefaultTableHeaderInteractor getHeaderInteractor()
Returns the header interactor used to manage events that occur in the table header.


setHeaderInteractor

public void setHeaderInteractor(IlpDefaultTableHeaderInteractor v)
Sets the header interactor that will be used to manage events that occur in the table header.

Parameters:
v - Table header interactor.
Internal method or field: do not use!

reset

public void reset()
Resets all settings of this renderer.

Specified by:
reset in class IlpAbstractTableViewRenderer


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.