How to Control the Visibility of Columns in the Table Region

28-12 Web User Interface Developers Guide for Oracle Application Development Framework

28.4.3 Data for a Scheduling Gantt Chart

The data model for a scheduling Gantt chart supports hierarchical data and uses TreeModel to access the data in the underlying list. The specific model class is org.apache.myfaces.trinidad.model.TreeModel. The collection of objects returned by TreeModel must have, at a minimum, the following properties: ■ resourceId: The ID of the task. ■ tasks: A collection of task objects for this resource. Optionally, the object could implement the oracle.adf.view.faces.bi.model.ResourceTask interface to ensure it provides the correct properties to the Gantt chart. The collection of objects returned by the tasks property must also have the following properties: ■ taskId: The ID of the task. ■ startTime: The start time of the task. ■ endTime: The end time of the task. When binding the data to an ADF data control, the scheduling Gantt chart has a Resource node definition. The Resource node has the following types of accessors: ■ subResources: Returns a collection of subresources for the current resource. This accessor is optional. ■ tasks: Returns a collection of tasks for the current resource. This accessor is required. Tasks can also include a splitTask accessor. Table 28–4 shows a complete list of data object keys for a scheduling Gantt chart. Table 28–4 Data Object Keys for Scheduling Gantt Charts Data Object Key Data Type and Description Dependency node A list of dependencies for a task. Data object keys for dependencies include: ■ fromId: The ID of the task where the dependency begins. ■ toId: The ID of the task where the dependency ends. ■ type: The type of the dependency. Valid values are start-start, start-finish, finish-finish, finish-start, start-before, start-together, finish-after, and finish-together. endTime required Date. The end time for the all tasks. icon1 String. The first icon associated with the task bar for all tasks. The icon might change depending on other attributes. icon2 String. The second icon associated with the task bar for all tasks. icon3 String. The third icon associated with the task bar for all tasks. iconPlacement String. The alignment of the icon in the task bar for all tasks. Valid values are left default, right, inside, inside_left, inside_right, and inside_center. isContainer Boolean. Specifies whether or not a node definition is a container. label String. The label associated with the task bar for all tasks.