Java Data Sources > Overview of Java Data Sources > What Are Java Data Sources? > Presenting the Adapters
 
Presenting the Adapters
Server/JavaTM data sources provide an adapter for each data source to be represented graphically, as show in this table:
Data Sources Adapters
Server/Java Data Source
Data Source
Adapter
Swing data sources
List data source
Java Swing JList/
JComboBox
IlsListDS2JListAdapter
and
IlsListDS2JComboBoxAdapter
Table data source
Java Swing JTable
IlsTableDS2JTableAdapter
Tree data source
Java Swing JTree
IlsTreeDS2JTreeAdapter
Rogue Wave JViews data sources
Graph Data Source
Rogue Wave JViews IlvGrapher
IlsGraphDS2IlvGrapherAdapter
Gantt data source
Rogue Wave JViews Gantt charts
IlsGanttDS2IlvHierarchyChartAdapter
SDM Data Source
Rogue Wave JViews SDM
IlsSDMDS2IlvSDMViewAdapter
To create a Server/Java data source, you must:
1. Write a specification file to define a dynamic view and load it in the server. This specification file must follow predefined naming conventions to enable the representation objects to be mapped to the data sources.
2. Create a Java GUI and connect the graphic objects to the appropriate data sources through the corresponding adapters. The connection can be made with Java IDE supporting JavaBeans.
3. Open the dynamic view on the server.
Rogue Wave Server Java Data Source
Connecting Java Data Sources to a Java GUI
Adapters connect Java data sources to a Java GUI. These adapters operate in two ways:
*Data Sources (Server) to GUI: Server notification.
*GUI to Data Sources (Server): User interface updates.
The adapters provided with the Rogue Wave Server libraries can be extended or reimplemented by the user. Adapters are connected to Java Swing gadgets or with Rogue Wave JViews gadgets. However, the architecture of the adapters is designed to be run in a multithread-safe Swing-based application. Practically, the adapters work by buffering the notification messages sent by the server. Those messages are processed later in the Swing thread dedicated to graphical updates. See Java Data Source Adapters for additional information.

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.