Java Data Sources > Working with the Server/Java Mapping > Lists > IlsListDataSource
 
IlsListDataSource
Description
The list data source is a bridge class notified by the server for creation, deletion, or update of the list and its elements. Thus, a list data source is also a class of source events which manages listeners. The class IlsListDS2JListAdapter provides a default implementation for all events produced by the table data source to display this list as a swing JList. The class IlsListDS2JComboBoxAdapter provides a default implementation for all events produced by the table data source to display this list as a swing JComboBox.
Listeners
*DataSourceListener: is notified when an event (creation or update) occurs on the origin of the view, or the list model.
*BatchListener: is notified when the beginning or the end of a set of events occurs. Note that the listening of these events is not mandatory, but useful to optimize the operations following changes in the data source.
*ListDSListener: is notified when the list model is created, or an element is added, removed or updated.
Adapter
Two adapters (IlsListDS2JListAdapter and IlsListDS2JComboBoxAdapter) are provided to implement all listeners managed by the list data source. These adapters also interface respectively a DefaultListModel and a DefaultComboBoxModel to synchronize the data source and this data model, according to Rogue Wave Server notifications and data model modification events.

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