ilog.cpl.table
Class IlpTableListAdapter

java.lang.Object
  extended by ilog.cpl.datasource.IlpAbstractAdapter
      extended by ilog.cpl.list.IlpListAdapter
          extended by ilog.cpl.table.IlpTableListAdapter
All Implemented Interfaces:
IlpStylable, DataSourceListener, IlpStylableAdapter, IlpRepresentationObjectMapper, IlvStylable, EventListener

public class IlpTableListAdapter
extends IlpListAdapter

This class adapts a data source to a table list model.

It defines the default business object conversion from IlpObject to IlpTableRow.

This class is stylable using cascading style sheets. The CSS customization is done using files that are loaded in method IlpListAdapter.setStyleSheets(java.lang.String[]).

The following extract illustrates the adapter customization for the table component:

 Table {
   adapter: true;
 }
 
 Adapter {
   acceptedClass: "business class name";
   filter: @+myFilter;
 }
 
 Subobject#myFilter {
   class: ...;
 }
 

Please refer to the properties defined by this adapter class for information about how each property can be customized using cascading style sheets.

Since:
JTGO 4.0

Field Summary
 
Fields inherited from interface ilog.cpl.css.IlpStylable
UPDATE_ALL_MASK, UPDATE_COMPONENT_MASK, UPDATE_NONE_MASK, UPDATE_OBJECTS_MASK
 
Fields inherited from interface ilog.views.util.styling.IlvStylable
APPLIED_RULE_MASK, BAD_CLASS_MASK, BAD_PROP_MASK, BAD_PROP_WITH_STACK_MASK, CREATED_MASK, DECL_MASK, DECL_VALUE_MASK, FAILED_CONVERSIONS_MASK, TIME_REPORT_MASK, WARNING_PROP_MASK
 
Constructor Summary
IlpTableListAdapter()
          Creates a new table list adapter using the default context.
IlpTableListAdapter(IlpContext context)
          Creates a new table list adapter using a given context.
 
Method Summary
protected  IlpStylable createCSSDelegate()
          Creates the stylable object that will be used to customize the adapter.
 
Methods inherited from class ilog.cpl.list.IlpListAdapter
addPropertyChangeListener, clearRepresentationObjects, createRepresentationObject, doApplyConfiguration, fillModel, getAcceptedClass, getAttributeGroup, getModel, getMutableStyleSheet, getRepresentationObjectFactory, getStyleSheetDebugMask, getStyleSheets, getStyleSheets, hasConfigurationChanged, hasModel, hasStyleSheets, objectAttributeChanged, objectsAdded, objectsRemoved, objectStructureChanged, refilterObjects, removePropertyChangeListener, removeRepresentation, setAcceptedClass, setAttributeGroup, setModel, setRepresentationObjectFactory, setStyleSheetDebugMask, setStyleSheets, setStyleSheets, setStyleSheets, setStyleSheets, testObject
 
Methods inherited from class ilog.cpl.datasource.IlpAbstractAdapter
addAdapterListener, addPropertyChangeListener, addRepresentation, applyConfiguration, batchEnded, batchStarted, beginRepresentation, clearIdToRepresentationObjectMap, endBatch, firePropertyChange, fireRepresentationObjectsAdded, fireRepresentationObjectsRemoved, getContext, getDataSource, getExcludedClasses, getFilter, getPossibleRoots, getRepresentationObject, getRepresentationObject, getRepresentationObjects, getSyncStrategy, hasRepresentationObject, hasRepresentationObjects, initializeExcludedClasses, initializeRepresentationObjects, isRepresenting, refilter, removeAdapterListener, removePropertyChangeListener, replaceExcludedClasses, setBatchable, setDataSource, setExcludedClasses, setFilter, startBatch, stopRepresentation, testRootObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.datasource.DataSourceListener
batchEnded, batchStarted
 

Constructor Detail

IlpTableListAdapter

public IlpTableListAdapter()
Creates a new table list adapter using the default context.

See Also:
IlpSystem.GetDefaultContext()

IlpTableListAdapter

public IlpTableListAdapter(IlpContext context)
Creates a new table list adapter using a given context.

Parameters:
context - The context for this adapter.
See Also:
IlpContext
Method Detail

createCSSDelegate

protected IlpStylable createCSSDelegate()
Creates the stylable object that will be used to customize the adapter.

Overrides:
createCSSDelegate in class IlpListAdapter
Since:
JViews 7.5
Internal method or field: do not use!


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