ilog.ds.adapter
Class IlAbstractListModelAdapter
java.lang.Object
|
+--ilog.ds.adapter.IlAbstractAdapter
|
+--ilog.ds.adapter.IlAbstractListModelAdapter
- All Implemented Interfaces:
- BatchListener, DataSourceListener, java.util.EventListener, IlFreezableAdapter, IlPluggableAdapter, javax.swing.event.ListDataListener
- Direct Known Subclasses:
- IlListDS2AbstractListModelAdapter, IlTableDS2AbstractListModelAdapter
- public abstract class IlAbstractListModelAdapter
- extends IlAbstractAdapter
- implements javax.swing.event.ListDataListener, IlPluggableAdapter
This class adapts the events from the IlListDataSource to a Swing
AbstractListModel. It does not implement how objects 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. It stores the data source
reference.
- See Also:
IlListDataSource,
AbstractListModel
|
Field Summary |
protected java.util.Map |
_ds2model
|
protected javax.swing.AbstractListModel |
_lm
|
protected java.util.Map |
_model2ds
|
| Methods inherited from class ilog.ds.adapter.IlAbstractAdapter |
addDispatchListener, addDSEvent, clearDSEvents, dispatchBatchedEvent, 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 |
_model2ds
protected java.util.Map _model2ds
_ds2model
protected java.util.Map _ds2model
_lm
protected javax.swing.AbstractListModel _lm
IlAbstractListModelAdapter
public IlAbstractListModelAdapter()
getSynchronizationObject
protected java.lang.Object getSynchronizationObject()
- Description copied from class:
IlAbstractAdapter
- Gets the object to synchronize in the synchronization strategy used by
this adapter.
- Overrides:
getSynchronizationObject in class IlAbstractAdapter
- Following copied from class:
ilog.ds.adapter.IlAbstractAdapter
- Returns:
- this by default, the data model generally (in subsclasses)
setModel
public void setModel(javax.swing.AbstractListModel lm)
- Sets the ListModel to use
getModel
public javax.swing.AbstractListModel getModel()
- Gets the AbstractListModel in use by this adapter.
dataSourceChange
public void dataSourceChange(DataSourceEvent e)
- DataSourceListener implementation
- Following copied from interface:
ilog.ds.DataSourceListener
- Parameters:
e - The event- See Also:
DataSourceEvent
contentsChanged
public void contentsChanged(javax.swing.event.ListDataEvent e)
- Specified by:
contentsChanged in interface javax.swing.event.ListDataListener
intervalAdded
public void intervalAdded(javax.swing.event.ListDataEvent e)
- Specified by:
intervalAdded in interface javax.swing.event.ListDataListener
intervalRemoved
public void intervalRemoved(javax.swing.event.ListDataEvent e)
- Specified by:
intervalRemoved in interface javax.swing.event.ListDataListener