|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ilog.server.jsds.adapter.IlsTableDS2JTableStrategy
Base class for table adapter strategies, enhanced listeners for table adapters.
Strategies are notified of main events occuring on the attached adapter: creation, deletion, updates from the corresponding data source, events dispatching in the adapter, and setting of the data model and of the graphic component.
Events from the data source are simply notified to the strategy and are
generally used to manage user defined properties.
Events dispatching and setting of the data model and of the graphic component
are cascaded through all strategies to allow events filtering or data model
wrapping.
IlsTableDS2JTableAdapter| Field Summary | |
protected IlsTableDS2JTableAdapter |
_adapter
|
| Constructor Summary | |
IlsTableDS2JTableStrategy(IlsTableDS2JTableAdapter adapter)
Defines an empty strategy for IlsTableDS2JTableAdapter
adapters. |
|
| Method Summary | |
void |
internalColumnChange(ColumnEvent e)
Called after a column change event dispatching in the adapter. |
void |
internalDataSourceChange(DataSourceEvent e)
Called after data source change notification in the adapter. |
void |
internalDataSourceConnected(DSConnectionEvent e)
Called after the data source connection event. |
void |
internalDataSourceDisconnected(DSConnectionEvent e)
Called after the data source disconnection event. |
void |
internalModelCreated(TableModelEvent e)
Called after a table model event dispatching in the adapter. |
void |
internalRowAdded(RowEvent e)
Called after a row added event dispatching in the adapter. |
void |
internalRowRemoved(RowEvent e)
Called after a row removed event dispatching in the adapter. |
void |
internalRowUpdated(RowEvent e)
Called after a row update event dispatching in the adapter. |
java.awt.Component |
plugComponent(java.awt.Component component)
Called before graphic component is connected to the adapter. |
java.util.ArrayList |
postDispatchBatchedEvents(java.util.ArrayList events)
Called before postdispatch events in the adapter. |
java.util.ArrayList |
preDispatchBatchedEvents(java.util.ArrayList events)
Called before predispatch events in the adapter. |
javax.swing.table.TableModel |
setModel(javax.swing.table.TableModel tm)
Called before data model setting in the adapter. |
java.awt.Component |
unplugComponent(java.awt.Component component)
Called before graphic component is disconnected from the adapter. |
boolean |
updateCell(java.lang.Object row,
int colNumber,
java.lang.Object value)
Called to update a cell on the server when the table model has generated an update event. |
boolean |
updateCells(java.lang.Object row,
IlTableCellInfo[] cellInfos)
Called to update a cell set on the server when the table model has generated an update event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IlsTableDS2JTableAdapter _adapter
| Constructor Detail |
public IlsTableDS2JTableStrategy(IlsTableDS2JTableAdapter adapter)
IlsTableDS2JTableAdapter
adapters.adapter - the adapter managing this strategy.| Method Detail |
public java.util.ArrayList preDispatchBatchedEvents(java.util.ArrayList events)
events unmodified.public java.util.ArrayList postDispatchBatchedEvents(java.util.ArrayList events)
events unmodified.public void internalDataSourceChange(DataSourceEvent e)
e - the data source event.IlsTableDS2JTableAdapter.internalDataSourceChange(DataSourceEvent)public javax.swing.table.TableModel setModel(javax.swing.table.TableModel tm)
tm - the table data model.tm unmodified.IlsTableDS2JTableAdapter.setModel(TableModel)
public boolean updateCell(java.lang.Object row,
int colNumber,
java.lang.Object value)
IlsTableDS2JTableAdapter.updateCell(Object row, int colNumber, Object value)
is continued.falseIlsTableDS2JTableAdapter.updateCell(Object row, int colNumber,
Object value)
public boolean updateCells(java.lang.Object row,
IlTableCellInfo[] cellInfos)
IlsTableDS2JTableAdapter.updateCells(Object row, IlTableCellInfo[] cellInfos)
is continued.falseIlsTableDS2JTableAdapter.updateCells(Object row, IlTableCellInfo[]
cellInfos)public void internalColumnChange(ColumnEvent e)
e - the column event.IlsTableDS2JTableAdapter.internalColumnChange(ColumnEvent)public void internalModelCreated(TableModelEvent e)
e - the table model event.IlsTableDS2JTableAdapter.internalModelCreated(TableModelEvent)public void internalRowAdded(RowEvent e)
e - the row event.IlsTableDS2JTableAdapter.internalRowAdded(RowEvent)public void internalRowRemoved(RowEvent e)
e - the row event.IlsTableDS2JTableAdapter.internalRowRemoved(RowEvent)public void internalRowUpdated(RowEvent e)
e - the row event.IlsTableDS2JTableAdapter.internalRowUpdated(RowEvent)public void internalDataSourceConnected(DSConnectionEvent e)
e - the data source connection event.IlsTableDS2JTableAdapter.dataSourceConnected(DSConnectionEvent)public void internalDataSourceDisconnected(DSConnectionEvent e)
e - the data source disconnection event.IlsTableDS2JTableAdapter.dataSourceDisconnected(DSConnectionEvent)public java.awt.Component plugComponent(java.awt.Component component)
component - generally a JTable instance.component unmodified.IlsTableDS2JTableAdapter.plugComponent(Component)public java.awt.Component unplugComponent(java.awt.Component component)
component - generally a JTable instance.component unmodified.IlsTableDS2JTableAdapter.unplugComponent(Component)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||