Understanding Gantt Chart Tags and Facets

Using ADF Gantt Chart Components 28-9 Figure 28–7 Time Scale Dialog

3. Click OK.

To zoom in or out on a time axis: 1. Optionally, on the toolbar, click the Zoom In icon to display the time axis at a lower level time unit.

2. Optionally, on the toolbar, click the Zoom Out icon to display the time axis at a

higher level time unit. 3. Optionally, in the box on the toolbar after the zoom icons, select a time period that represents the amount of time on the chart that you want to display without the need to scroll. 4. Optionally, right-click the time axis for which you wish to change the scale and select an available time unit from the submenu.

28.4 Understanding Data Requirements for the Gantt Chart

The data model for a Gantt chart can be either a tree hierarchical model or a collection model that contains a row set or flat list of objects. For more information, see the Creating Databound ADF Gantt Charts section in the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. When you bind a Gantt chart to a data control, you specify how the collection in the data control maps to the node definitions of the Gantt chart.

28.4.1 Data for a Project Gantt Chart

The data model for a project 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 the TreeModel must have, at a minimum, the following properties: ■ taskId: The ID of the task. ■ startTime: The start time of the task. ■ endTime: The end time of the task. Optionally, the object could implement the oracle.adf.view.faces.bi.model.Task interface to ensure it provides the correct properties to the Gantt chart. When binding the data to an ADF data control, the following node definitions are available in a project Gantt chart: 28-10 Web User Interface Developers Guide for Oracle Application Development Framework ■ Task node: Represents a collection of tasks. The task node definition has the following types of optional accessors: – subTask available only for project Gantt chart – splitTask ■ Split task node: Represents a collection of split tasks. A split task node definition does not have accessors. ■ Dependency node: Represents a collection of dependencies for a task. A dependency node definition does not have accessors. ■ Recurring task node: Represents a collection of recurring tasks. A recurring task node definition does not have accessors. Table 28–2 shows a complete list of data object keys for the project Gantt chart. Table 28–2 Data Object Keys for Project Gantt Chart Data Object Key Data Type and Description actualEnd Date. The actual end time for normal and milestone tasks. actualStart Date. The actual start time for normal and milestone tasks. completedThrough Date. Completed through for normal and summary tasks. critical Boolean. Specifies whether or not the task is critical for all tasks. 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 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 tasks bar for all tasks. icon3 String. The third icon associated with the tasks 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, start, end, innerLeft, innerRight, innerCenter, innerStart, innerEnd. isContainer Boolean. Specifies whether or not a node definition is a container. label String. The label associated with the task bar for all tasks. labelPlacement String. The alignment of the label in the task bar for all tasks. Valid values are left default, right, inside, start, end, innerLeft, innerRight, innerCenter, innerStart, innerEnd. percentComplete Integer. Percentage completed for normal and summary tasks. Recurring tasks node The list of recurring tasks for all tasks. Split tasks node The list of tasks without a continuous time line for all tasks.