ilog.server.jsds.adapter
Class IlsTableDS2JTableAdapter
java.lang.Object
|
+--ilog.ds.adapter.IlAbstractAdapter
|
+--ilog.ds.adapter.IlAbstractJTableAdapter
|
+--ilog.ds.adapter.IlDefaultJTableAdapter
|
+--ilog.server.jsds.adapter.IlsTableDS2JTableAdapter
- All Implemented Interfaces:
- BatchListener, DataSourceListener, DSConnectionListener, java.util.EventListener, IlFreezableAdapter, IlJPluggableAdapter, IlPluggableAdapter, TableDSListener, javax.swing.event.TableModelListener
- public class IlsTableDS2JTableAdapter
- extends IlDefaultJTableAdapter
- implements DSConnectionListener, IlJPluggableAdapter
Class for table data source adapters to Swing table model.
- See Also:
IlDefaultJTableAdapter
|
Field Summary |
protected ilog.util.IlEventListenerList |
_strategies
|
| Methods inherited from class ilog.ds.adapter.IlAbstractJTableAdapter |
columnChange, dataSourceChange, dispatchBatchedEvent, getDSRow, getModel, getRowNumber, getSynchronizationObject, getTableColumnInfo, getTableColumnInfoCount, getTableDataSource, getTableDataSourceEditor, modelCreated, rowChange, setRowData, tableChanged |
| Methods inherited from class ilog.ds.adapter.IlAbstractAdapter |
addDispatchListener, addDSEvent, clearDSEvents, dispatchBatchedEvents, endBatch, firePostDispatchBatchedEventsEvent, firePreDispatchBatchedEventsEvent, GetColor, getSynchronizationStrategy, isFrozen, isInBatchedEvents, isInTransaction, removeDispatchListener, setFrozen, setSynchronizationStrategy, startBatch |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_strategies
protected ilog.util.IlEventListenerList _strategies
IlsTableDS2JTableAdapter
public IlsTableDS2JTableAdapter()
- Instantiate a new
IlsTableDS2JTableAdapter.
dataSourceConnected
public void dataSourceConnected(DSConnectionEvent e)
- Description copied from interface:
DSConnectionListener
- This method is invoked when the data source is connected (view opened).
- Specified by:
dataSourceConnected in interface DSConnectionListener
- Following copied from interface:
ilog.server.jsds.DSConnectionListener
- Parameters:
e - The event- See Also:
DSConnectionEvent
dataSourceDisconnected
public void dataSourceDisconnected(DSConnectionEvent e)
- Description copied from interface:
DSConnectionListener
- This method is invoked when the data source is disconnected (view
closed).
- Specified by:
dataSourceDisconnected in interface DSConnectionListener
- Following copied from interface:
ilog.server.jsds.DSConnectionListener
- Parameters:
e - The event- See Also:
DSConnectionEvent
setModel
public void setModel(javax.swing.table.TableModel dtm)
- Overrides:
setModel in class IlAbstractJTableAdapter
setTableDataSource
public void setTableDataSource(IlTableDataSource tds)
- Overrides:
setTableDataSource in class IlAbstractJTableAdapter
setTableDataSourceEditor
public void setTableDataSourceEditor(IlTableDataSourceEditor tdse)
- Overrides:
setTableDataSourceEditor in class IlAbstractJTableAdapter
convertFrom
protected java.lang.Object convertFrom(int colNumber,
java.lang.Object aValue)
- Invoked to convert a cell value. This convertion depend on the table
column model class.
- Returns:
- the new converted value or
null if no converter is
registered. - See Also:
IlsClassConverter
preDispatchBatchedEvents
protected void preDispatchBatchedEvents(java.util.ArrayList events)
- Description copied from class:
IlAbstractAdapter
- dispatching events methods
- Overrides:
preDispatchBatchedEvents in class IlAbstractAdapter
postDispatchBatchedEvents
protected void postDispatchBatchedEvents(java.util.ArrayList events)
- Overrides:
postDispatchBatchedEvents in class IlAbstractAdapter
internalDataSourceChange
protected void internalDataSourceChange(DataSourceEvent e)
- Description copied from class:
IlAbstractAdapter
- Internal code called in the Swing event thread.
- Overrides:
internalDataSourceChange in class IlDefaultJTableAdapter
internalColumnChange
protected void internalColumnChange(ColumnEvent e)
- Overrides:
internalColumnChange in class IlDefaultJTableAdapter
internalModelCreated
protected void internalModelCreated(TableModelEvent e)
- Overrides:
internalModelCreated in class IlDefaultJTableAdapter
internalRowAdded
protected void internalRowAdded(RowEvent e)
- Overrides:
internalRowAdded in class IlDefaultJTableAdapter
internalRowRemoved
protected void internalRowRemoved(RowEvent e)
- Overrides:
internalRowRemoved in class IlDefaultJTableAdapter
internalRowUpdated
protected void internalRowUpdated(RowEvent e)
- Overrides:
internalRowUpdated in class IlDefaultJTableAdapter
updateCell
protected void updateCell(java.lang.Object row,
int colNumber,
java.lang.Object value)
- Implements
IlAbstractJTableAdapter.
- Overrides:
updateCell in class IlAbstractJTableAdapter
- Following copied from class:
ilog.ds.adapter.IlAbstractJTableAdapter
- Parameters:
row - The row to update in the data sourcecolNumber - The number of the column to update in the data sourcevalue - The new value to set in the data source
updateCells
public void updateCells(java.lang.Object row,
IlTableCellInfo[] cellInfos)
- Description copied from class:
IlAbstractJTableAdapter
- Updates some cells in the data source
- Overrides:
updateCells in class IlAbstractJTableAdapter
- Following copied from class:
ilog.ds.adapter.IlAbstractJTableAdapter
- Parameters:
row - The row to update in the data sourcecolNumber - The number of the column to update in the data source
plugDataSource
public void plugDataSource(IlDataSource dataSource)
throws IllegalDataSourceException
- Description copied from interface:
IlPluggableAdapter
- Verify data source type, adapter stores and listens to data source.
- Specified by:
plugDataSource in interface IlPluggableAdapter
unplugDataSource
public void unplugDataSource(IlDataSource dataSource)
- Description copied from interface:
IlPluggableAdapter
- Adapter cancels storing and stops listening to data source.
- Specified by:
unplugDataSource in interface IlPluggableAdapter
plugDataSourceEditor
public void plugDataSourceEditor(IlDataSourceEditor dataSourceEditor)
throws IllegalDataSourceEditorException
- Description copied from interface:
IlPluggableAdapter
- Verify data source editor type, adapter stores data source editor.
- Specified by:
plugDataSourceEditor in interface IlPluggableAdapter
unplugDataSourceEditor
public void unplugDataSourceEditor(IlDataSourceEditor dataSourceEditor)
- Description copied from interface:
IlPluggableAdapter
- Adapter cancels storing of data source editor.
- Specified by:
unplugDataSourceEditor in interface IlPluggableAdapter
plugDataModel
public void plugDataModel(java.lang.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(java.lang.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
plugComponent
public void plugComponent(java.awt.Component component)
throws IllegalComponentException
- Description copied from interface:
IlJPluggableAdapter
- Eventually verify component type, adapter eventually listens graphic
component, component is plugged to data model (so, model must be plugged
first).
- Specified by:
plugComponent in interface IlJPluggableAdapter
unplugComponent
public void unplugComponent(java.awt.Component component)
- Description copied from interface:
IlJPluggableAdapter
- Adapter eventually stops listening to graphic component, component is
also unplugged from data model, so unplug model only after having
unplugged all components
- Specified by:
unplugComponent in interface IlJPluggableAdapter
addStrategy
public void addStrategy(IlsTableDS2JTableStrategy s)
removeStrategy
public void removeStrategy(IlsTableDS2JTableStrategy s)
findStrategy
public IlsTableDS2JTableStrategy findStrategy(java.lang.Class strategy)
firePreDispatchBatchedEvents
protected java.util.ArrayList firePreDispatchBatchedEvents(java.util.ArrayList events)
firePostDispatchBatchedEvents
protected java.util.ArrayList firePostDispatchBatchedEvents(java.util.ArrayList events)
fireInternalDataSourceChange
protected void fireInternalDataSourceChange(DataSourceEvent e)
fireSetModel
protected javax.swing.table.TableModel fireSetModel(javax.swing.table.TableModel tm)
fireUpdateCell
protected boolean fireUpdateCell(java.lang.Object row,
int colNumber,
java.lang.Object value)
fireUpdateCells
protected boolean fireUpdateCells(java.lang.Object row,
IlTableCellInfo[] cellInfos)
fireInternalColumnChange
protected void fireInternalColumnChange(ColumnEvent e)
fireInternalModelCreated
protected void fireInternalModelCreated(TableModelEvent e)
fireInternalRowAdded
protected void fireInternalRowAdded(RowEvent e)
fireInternalRowRemoved
protected void fireInternalRowRemoved(RowEvent e)
fireInternalRowUpdated
protected void fireInternalRowUpdated(RowEvent e)
fireInternalDataSourceConnected
protected void fireInternalDataSourceConnected(DSConnectionEvent e)
fireInternalDataSourceDisconnected
protected void fireInternalDataSourceDisconnected(DSConnectionEvent e)
firePlugComponent
protected java.awt.Component firePlugComponent(java.awt.Component component)
fireUnplugComponent
protected java.awt.Component fireUnplugComponent(java.awt.Component component)