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

Inner classes inherited from class ilog.ds.adapter.IlAbstractListModelAdapter
IlAbstractListModelAdapter.Element
 
Fields inherited from class ilog.ds.adapter.IlListDS2AbstractListModelAdapter
_lds, _ldse
 
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
IlListDS2DefaultListModelAdapter()
           
 
Method Summary
protected  DefaultListModel dlm()
           
protected  void internalDataSourceChange(DataSourceEvent e)
           
protected  void internalElementAdded(ElementEvent evt)
           
protected  void internalElementRemoved(ElementEvent evt)
           
protected  void internalElementUpdated(ElementEvent evt)
           
 void plugDataModel(Object model)
           
 void unplugDataModel(Object model)
           
 
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.IlAbstractListModelAdapter
dataSourceChange, getModel, getSynchronizationObject, setModel
 
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
 
Methods inherited from interface ilog.ds.adapter.IlJPluggableAdapter
plugComponent, unplugComponent
 
Methods inherited from interface ilog.ds.adapter.IlPluggableAdapter
plugDataSource, plugDataSourceEditor, unplugDataSource, unplugDataSourceEditor
 

Constructor Detail

IlListDS2DefaultListModelAdapter

public IlListDS2DefaultListModelAdapter()
Method Detail

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