Description of Gantt Chart Tasks

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

3. Click OK.

The display of the chart region of the Gantt chart begins at the date you requested.

28.3.1.3 How to Control the Visibility of Columns in the Table Region

By default, all the columns that you define when you create a databound Gantt chart are visible in the table region. You can selectively cause one or more of these columns to be hidden. To control the display of columns in the table region of a Gantt chart: 1. From the View menu, select List Pane. 2. From the context menu, select Columns. 3. In the Columns menu, deselect any column that you want to be hidden in the table region of the Gantt chart. You can also select any column that you want to make visible in the table region.

28.3.2 How to Display Data in a Hierarchical List or a Flat List

If a Gantt chart is using a hierarchical data model, then you have the option of displaying all the Gantt chart data in a collapsed form or in an expanded form. To control the display of Gantt chart data in a list: 1. From the View menu, select List Pane. 2. From the ensuing menu, select either Show As List, for an expanded list, or Show As Hierarchy , for a collapsed list.

28.3.3 How to Change the Gantt Chart Time Scale

You can change the time scale display in a Gantt chart and you can zoom in and out on a time axis to display the chart region in different time units. You can also use a specialized zoom-to-fit feature in which you select the amount of time that you want to display in the chart region without a need to scroll the chart. To change the settings of a time axis: 1. From the View menu, select Time Scale. 2. In the ensuing Time Scale dialog, in the Time Unit column, select a new unit value for either the major axis, the minor axis, or both axes. A sample box displays sample settings for the time unit that you select. Figure 28–7 shows the Time Scale dialog. Note: You must keep at least one column visible in the table region. 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: