Java Data Sources > Working with the Server/Java Mapping > Gantt Charts > IlsGanttDataSource
 
IlsGanttDataSource
Description
The Gantt data source is a bridge class that is notified by the server for creation, deletion, or update in the Gantt model. Thus, a Gantt-chart data source is also a class of source events which manages listeners. The class IlsGanttDS2IlvHierarchyChartAdapter provides a default implementation for all events produced by the Gantt data source.
Listeners
*DataSourceListener: is notified when an event (creation or update) occurs on the origin of the view, that is, the Gantt model.
*BatchListener: is notified when the beginning or the end of a set of events occurs. Note that listening for these events is not mandatory, although it is useful to optimize the operations that result from changes in the data source.
*GanttDSListener: is notified when an activity, a resource, a constraint, or a reservation is added, removed, or updated.
Adapter
An adapter (IlsGanttDS2IlvHierarchyChartAdapter) is provided to implement all the listeners managed by the Gantt data source. This adapter also interfaces IlvGanttChart or IlvScheduleChart instances to synchronize the data source and the Gantt model, according to Rogue Wave Server notifications and IlvGanttModel modification events.

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