ilog.server.jsds.adapter
Class IlsTableDS2JTableBufferedRowStrategy
java.lang.Object
|
+--ilog.server.jsds.adapter.IlsTableDS2JTableStrategy
|
+--ilog.server.jsds.adapter.IlsTableDS2JTableBufferedRowStrategy
- All Implemented Interfaces:
- EventListener
- public class IlsTableDS2JTableBufferedRowStrategy
- extends IlsTableDS2JTableStrategy
This table strategy wraps the table model to buffer the line edition and send
full line update to the server. Useful to create server object with mandatory
properties. This strategy also display en empty line to allow insertion of
new elements in editable data source editor. Define a collector in the
corresponding view to set the data source editor as editable.
- See Also:
IlsTableDS2JTableAdapter
,
IlsTableDS2JTableStrategy
,
IlsBufferedTableModel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IlsTableDS2JTableBufferedRowStrategy
public IlsTableDS2JTableBufferedRowStrategy(IlsTableDS2JTableAdapter adapter)
- Defines a new strategy for editing JTable line by line instead of cell by
cell.
- Parameters:
adapter
- the adapter managing this strategy.
setModel
public TableModel setModel(TableModel tm)
- Stores the table model and returns a
IlsBufferedTableModel
table
model wrapper.
- Overrides:
setModel
in class IlsTableDS2JTableStrategy
- Parameters:
tm
- the table model to be wrapped.- Returns:
- a table model wrapper.
- See Also:
IlsTableDS2JTableAdapter.setModel(TableModel)
internalDataSourceDisconnected
public void internalDataSourceDisconnected(DSConnectionEvent e)
- Disable the insertion line in the wrapped table model.
- Overrides:
internalDataSourceDisconnected
in class IlsTableDS2JTableStrategy
- Parameters:
e
- the data source disconnection event.- See Also:
IlsTableDS2JTableAdapter.dataSourceDisconnected(DSConnectionEvent)
internalModelCreated
public void internalModelCreated(TableModelEvent e)
- Enable the insertion line in the wrapped table model if the data source
editor is editable.
- Overrides:
internalModelCreated
in class IlsTableDS2JTableStrategy
- Parameters:
e
- the table model event.- See Also:
IlsTableDS2JTableAdapter.internalModelCreated(TableModelEvent)
plugComponent
public Component plugComponent(Component component)
- Plug the
JTable
instance in the data model wrapper to
track line selection.
- Overrides:
plugComponent
in class IlsTableDS2JTableStrategy
- Parameters:
component
- wait for a JTable
instance.- Returns:
component
unmodified.- See Also:
IlsTableDS2JTableAdapter.plugComponent(Component)
unplugComponent
public Component unplugComponent(Component component)
- Unplug the
JTable
instance in the data model wrapper.
- Overrides:
unplugComponent
in class IlsTableDS2JTableStrategy
- Parameters:
component
- wait for a JTable
instance.- Returns:
component
unmodified.- See Also:
IlsTableDS2JTableAdapter.unplugComponent(Component)