Scrolling and Panning the List Region or the Chart Region

Using ADF Gantt Chart Components 28-11

28.4.2 Data for a Resource Utilization Gantt Chart

The data model for a resource utilization 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. ■ timeBuckets: A collection of time bucket objects for this resource. Optionally, the object could implement the oracle.adf.view.faces.bi.model.Resource interface to ensure it provides the correct properties to the Gantt chart. The collection of objects returned by the timeBuckets property must also have the following properties: ■ time: The date represented by the time bucket. ■ values: A list of metrics for this resource. When binding the data to an ADF data control, the following node definitions are available in a Resource Utilization Gantt chart: ■ Resource node: Represents a collection of resources. The resource node definition has an optional subResources accessor that returns a collection of subresources for the current resource. ■ Time bucket node: Represents a collection of time slots with metrics defined. Table 28–3 shows a complete list of data object keys for the resource utilization Gantt chart. startTime required Date. The starting time for all tasks. Subtasks node An optional list of subtasks for all tasks. taskId required String. The unique identifier for all tasks. type Sting. The type of the tasks for all tasks. Table 28–3 Data Object Keys for the Resource Utilization Gantt Chart Data Object Key Data Type and Description label String. The label associated with the task bar. labelAlign String. The alignment of the label in the task bar. Valid values are top default and inside. resourceId required String. The unique identifier of a resource. timeBuckets required List. The list of tasks associated with a resource. time required Date. The start time of the time bucket. values required Double. The values of the metrics. Table 28–2 Cont. Data Object Keys for Project Gantt Chart Data Object Key Data Type and Description