Adding Server Objects
You can add server objects to the viewed relation, either from the server model or from the component.
From the Server to the Component
When an object is added to a represented relation, a new instance of the representation object is created and added to the corresponding data source, for example:
a new
IlsRpRow object in a table representation, or
a new
IlsRpTree object in a tree representation, or
a new
IlsRpNode or
IlsRpLink object in a graph representation,
and so forth.
From the Component to the Server
As the representation model is a two-way interface, a new representation object is created whenever you create a new object in the graphical representation. Thus, the IlsTableDS2JTableAdapter instance listens for such events as adding a row in the DefaultTableModel instance, for example. Consequently, a message is sent to the server through the IlsTableDataSource instance for a new server object to be created and added to the corresponding relation. See the class ilog.ds.IlsDataSourceEditor class and its subclasses.
Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.