Java Data Sources > API of the Server/Java Mapping > Swing Components > Table Data Sources
 
Table Data Sources
ilog.server.jsds.table
This package includes the following classes which represent server object relations as a table, with one row for each object.
*IlsRpTable
*IlsRpRow
*IlsTableDataSource
*IlsTableDS2JTableAdapter
ilog.server.jsds.table.IlsRpTable
The class IlsRpTable instantiates table representation objects which represent both an object and a relation. IlsRpRow are the target objects of the relation that is represented as a table. Table representation objects interface server objects with a table data source (see IlsTableDataSource).
ilog.server.jsds.table.IlsRpRow
The class IlsRpRow instantiates row representation objects which are the target objects of the relation represented as a table object (see previous paragraph). In other words, each instance of IlsRpRow represents a row in the table representation object. Row representation objects interface server objects with a table data source (see IlsTableDataSource).
ilog.server.jsds.table.IlsTableDataSource
Instances of this class create a bridge between an Rogue Wave Server representation model and Swing JTable objects through an IlsTableDS2JTableAdapter.
ilog.server.jsds.adapter.IlsTableDS2JTableAdapter
Adapters are interfaces between JavaTM data sources and graphical objects. You can derive this class or create adapter strategies, for example, to map user-defined properties defined in the view specification file.
An IlsTableDS2JTableAdapter object provides a basic interface between a table data source and a Swing JTable and its underlying DefaultTableModel object.
Predefined adapter strategies provide functionalities to these basic adapters:
*IlsTableDS2JTableBufferedRowStrategy: wraps the table model to buffer the line edition and only send a full line update to the server. Useful to create server objects with mandatory properties.
*IlsTableDS2JTableCellRendererStrategy: provides management of background and foreground color for table rows.
*IlsTableDS2JTableColumnsWidthStrategy: allows you to define column width through the server view specification.
*IlsTableDS2JTableKeyStrategy : allows you to map keyboard actions (for example, removing a line by pressing the Delete key).
*IlsTableDS2JtableMappedColumnsStrategy: defines an hyper-reference cell editor based on a JComboBox filled from another list data source.
*IlsTableDS2JTableMouseStrategy: allows you to manage mouse user interaction on the associated JTable instance.

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.