skip to main content
Gantt > Programmer's documentation > Developing with the JViews Gantt SDK > Introducing the main classes > Binding the Gantt chart components to the data model
 
Binding the Gantt chart components to the data model
As explained in Getting to know the Designer in Using the Designer, the data model is designed with complete model-view separation.
Use the following method to bind an IlvGanttChart, IlvScheduleChart, IlvResourceDataChart, IlvMonthView or IlvDayView object to a data model, as illustrated in Running the samples:
 void setGanttModel(IlvGanttModel ganttModel)
You can obtain the current data model of the chart by using the method:
 IlvGanttModel getGanttModel()
Both methods are members of the IlvHierarchyChart class (the common superclass of IlvGanttChart and IlvScheduleChart), and IlvScheduleDataChart (the superclass of IlvResourceDataChart), IlvMonthView and IlvDayView.

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