Java Data Sources > Working with the Server/Java Mapping > Lists > IlsRpElement
 
IlsRpElement
Description
Instances of the class IlsRpElement are representation objects that represent each server object by an element in the AbstractListModel attached to the JavaTM data source through the adapter. No list-element representation object can exist without a list representation object to which this element is attached. Elements represent server objects that are the target of the relation represented by the associated list.
The underlying data model is a DefaultListModel and a DefaultComboBoxModel with the IlsListDS2JListAdapter adapter and the IlsListDS2JComboBoxAdapter adapter respectively. The associated List data source is notified when a creation, deletion, or update occurs on the element from the server.
Element Representation Attributes
*list (ref<IlsRpList>): indicates the parent list to which the element belongs. When the list-element representation object is created by the server as an instance of the class, it is first empty. Then, the missing values are filled in by setting attribute values. The first attribute to be set is the list attribute, to enable the element to add itself to its parent list (see the mandatory keyword in the .ils file).
*label (any type): controls the data type of the displayed graphic elements. Generally, the types string and href are used.
Element User-defined properties
You can add your own list-element properties in the dynamic view specification. To handle these specific properties, you must derive either of the classes IlsRpElement, IlsListDS2JListAdapter, or IlsListDS2JComboBoxAdapter class.

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