ilog.ds.adapter
Class IlTableDS2DefaultListModelAdapter

java.lang.Object
  |
  +--ilog.ds.adapter.IlAbstractAdapter
        |
        +--ilog.ds.adapter.IlAbstractListModelAdapter
              |
              +--ilog.ds.adapter.IlTableDS2AbstractListModelAdapter
                    |
                    +--ilog.ds.adapter.IlTableDS2DefaultListModelAdapter
All Implemented Interfaces:
BatchListener, DataSourceListener, EventListener, IlFreezableAdapter, IlJPluggableAdapter, IlPluggableAdapter, ListDataListener, TableDSListener
Direct Known Subclasses:
IlsTableDS2JListAdapter

public abstract class IlTableDS2DefaultListModelAdapter
extends IlTableDS2AbstractListModelAdapter
implements IlJPluggableAdapter

This class adapts the events from the IlTableDataSource to a Swing DefaultListModel. It does not implement how elements are created or updated, that is, how the properties from the data source are mapped to the Object themselves. This class supports the mapping between the data source objects and the model objects.

See Also:
IlListDataSource, DefaultListModel

Inner classes inherited from class ilog.ds.adapter.IlAbstractListModelAdapter
IlAbstractListModelAdapter.Element
 
Fields inherited from class ilog.ds.adapter.IlTableDS2AbstractListModelAdapter
_column, _model, _tds
 
Fields inherited from class ilog.ds.adapter.IlAbstractListModelAdapter
_ds2model, _lm, _model2ds
 
Fields inherited from class ilog.ds.adapter.IlAbstractAdapter
_dispatchListeners, _events, _frozenEvents, _inBatchedEvents, _inTransaction, _isFrozen, _syncStrategy
 
Constructor Summary
IlTableDS2DefaultListModelAdapter()
           
 
Method Summary
protected  DefaultListModel dlm()
           
protected  void internalRowAdded(RowEvent evt)
           
protected  void internalRowRemoved(RowEvent evt)
           
protected  void internalRowUpdated(RowEvent evt)
           
 void plugDataModel(Object model)
           
 void unplugDataModel(Object model)
           
 
Methods inherited from class ilog.ds.adapter.IlTableDS2AbstractListModelAdapter
columnChange, containsDSRow, containsElement, createElement, dispatchBatchedEvent, getDSMappedColumn, getDSRow, getElement, getTableDataSource, internalColumnChange, internalModelCreated, modelCreated, plugDataSource, plugDataSourceEditor, rowChange, setDSMappedColumn, setTableDataSource, setTableDataSource, unplugDataSource, unplugDataSourceEditor, updateElement
 
Methods inherited from class ilog.ds.adapter.IlAbstractListModelAdapter
contentsChanged, dataSourceChange, getModel, getSynchronizationObject, intervalAdded, intervalRemoved, setModel
 
Methods inherited from class ilog.ds.adapter.IlAbstractAdapter
addDispatchListener, addDSEvent, clearDSEvents, dispatchBatchedEvents, endBatch, firePostDispatchBatchedEventsEvent, firePreDispatchBatchedEventsEvent, GetColor, getSynchronizationStrategy, internalDataSourceChange, isFrozen, isInBatchedEvents, isInTransaction, postDispatchBatchedEvents, preDispatchBatchedEvents, removeDispatchListener, setFrozen, setSynchronizationStrategy, startBatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.ds.adapter.IlJPluggableAdapter
plugComponent, unplugComponent
 
Methods inherited from interface ilog.ds.adapter.IlPluggableAdapter
plugDataSource, plugDataSourceEditor, unplugDataSource, unplugDataSourceEditor
 

Constructor Detail

IlTableDS2DefaultListModelAdapter

public IlTableDS2DefaultListModelAdapter()
Method Detail

dlm

protected final DefaultListModel dlm()

internalRowAdded

protected void internalRowAdded(RowEvent evt)
Overrides:
internalRowAdded in class IlTableDS2AbstractListModelAdapter

internalRowUpdated

protected void internalRowUpdated(RowEvent evt)
Overrides:
internalRowUpdated in class IlTableDS2AbstractListModelAdapter

internalRowRemoved

protected void internalRowRemoved(RowEvent evt)
Overrides:
internalRowRemoved in class IlTableDS2AbstractListModelAdapter

plugDataModel

public void plugDataModel(Object model)
                   throws IllegalModelException
Description copied from interface: IlJPluggableAdapter
Verify data model type, adapter stores and listens data model. Be sure to plug model before plugging any components.
Specified by:
plugDataModel in interface IlJPluggableAdapter

unplugDataModel

public void unplugDataModel(Object model)
Description copied from interface: IlJPluggableAdapter
Adapter cancels storing and stops listening to data model. Be sure to have unplugged all component first.
Specified by:
unplugDataModel in interface IlJPluggableAdapter