ilog.ds.adapter
Class IlListDS2DefaultListModelAdapter
java.lang.Object
|
+--ilog.ds.adapter.IlAbstractAdapter
|
+--ilog.ds.adapter.IlAbstractListModelAdapter
|
+--ilog.ds.adapter.IlListDS2AbstractListModelAdapter
|
+--ilog.ds.adapter.IlListDS2DefaultListModelAdapter
- All Implemented Interfaces:
- BatchListener, DataSourceListener, EventListener, IlFreezableAdapter, IlJPluggableAdapter, IlPluggableAdapter, ListDataListener, ListDSListener
- Direct Known Subclasses:
- IlsListDS2JListAdapter
- public abstract class IlListDS2DefaultListModelAdapter
- extends IlListDS2AbstractListModelAdapter
- implements IlJPluggableAdapter
This class adapts the events from the IlListDataSource 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
Methods inherited from class ilog.ds.adapter.IlListDS2AbstractListModelAdapter |
containsDSElement, containsElement, contentsChanged, createElement, dispatchBatchedEvent, elementChange, getDSElement, getElement, getListDataSource, getListDataSourceEditor, intervalAdded, intervalRemoved, plugDataSource, plugDataSourceEditor, setListDataSource, setListDataSourceEditor, unplugDataSource, unplugDataSourceEditor, updateElement |
Methods inherited from class ilog.ds.adapter.IlAbstractAdapter |
addDispatchListener, addDSEvent, clearDSEvents, dispatchBatchedEvents, endBatch, firePostDispatchBatchedEventsEvent, firePreDispatchBatchedEventsEvent, GetColor, getSynchronizationStrategy, 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 |
IlListDS2DefaultListModelAdapter
public IlListDS2DefaultListModelAdapter()
dlm
protected final DefaultListModel dlm()
internalDataSourceChange
protected void internalDataSourceChange(DataSourceEvent e)
- Description copied from class:
IlAbstractAdapter
- Internal code called in the Swing event thread.
- Overrides:
internalDataSourceChange
in class IlAbstractAdapter
internalElementAdded
protected void internalElementAdded(ElementEvent evt)
- Description copied from class:
IlListDS2AbstractListModelAdapter
- Internal code called in the Swing event thread
- Overrides:
internalElementAdded
in class IlListDS2AbstractListModelAdapter
internalElementUpdated
protected void internalElementUpdated(ElementEvent evt)
- Overrides:
internalElementUpdated
in class IlListDS2AbstractListModelAdapter
internalElementRemoved
protected void internalElementRemoved(ElementEvent evt)
- Overrides:
internalElementRemoved
in class IlListDS2AbstractListModelAdapter
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