sap.gantt.GanttChartContainer.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.GanttChartContainer with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in Object.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.gantt.GanttChartContainer.
Returns:
Adds some customToolbarItem to the aggregation customToolbarItems
.
Parameters:
{sap.ui.core.Control} | oCustomToolbarItem | the customToolbarItem to add; if empty, nothing is inserted |
Returns:
Adds some ganttChart to the aggregation ganttCharts
.
Parameters:
Returns:
Attaches event handler
fnFunction
to the
customSettingChange
event of this
sap.gantt.GanttChartContainer
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.gantt.GanttChartContainer
itself.
Event fired when the custom settings are changed.
The Custom settings are application-injected settings that can be configured in the Settings dialog box. This event allows the application to handle these settings. Only check boxes are supported.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.gantt.GanttChartContainer itself |
Returns:
Attaches event handler
fnFunction
to the
ganttChartChangeRequested
event of this
sap.gantt.GanttChartContainer
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.gantt.GanttChartContainer
itself.
Event fired when any change occurs in the toolbar that requests the application to change aggregation ganttCharts
.
Possible triggers are:
- The source selection group changes in the container toolbar.
- The layout group button is clicked in the container toolbar.
- The source selection group changes in the Gantt chart toolbar.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.gantt.GanttChartContainer itself |
Returns:
Attaches event handler
fnFunction
to the
treeTableToggleEvent
event of this
sap.gantt.GanttChartContainer
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.gantt.GanttChartContainer
itself.
Event fired when toggle node of the tree table.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.gantt.GanttChartContainer itself |
Returns:
Binds aggregation
customToolbarItems
to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo
.
Parameters:
{object} | oBindingInfo | The binding information |
Returns:
Binds aggregation
ganttCharts
to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo
.
Parameters:
{object} | oBindingInfo | The binding information |
Returns:
deselectRelationships(iGanttChartIndex?, aIds?): boolean
Deselects relationships and returns a success code.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing the relationships that you want to deselect |
{array} | aIds? | List of the relationships that you want to deselect |
Returns:
{boolean} | - If any selection change is applied, returns true. |
deselectRows(iGanttChartIndex?, aIds?): boolean
Deselects rows and returns a success code.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing the rows that you want to deselect |
{array} | aIds? | List of the rows that you want to deselect |
Returns:
{boolean} | - If any selection change is applied, returns true. |
deselectShapes(iGanttChartIndex?, aIds?): boolean
Deselects in-row shapes and returns a success code.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing the shapes that you want to deselect |
{array} | aIds? | List of the shapes that you want to deselect |
Returns:
{boolean} | - If any selection change is applied, returns true. |
Destroys all the customToolbarItems in the aggregation customToolbarItems
.
Returns:
Destroys all the ganttCharts in the aggregation ganttCharts
.
Returns:
Destroys the legendContainer in the aggregation legendContainer
.
Returns:
Detaches event handler
fnFunction
from the
customSettingChange
event of this
sap.gantt.GanttChartContainer
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
ganttChartChangeRequested
event of this
sap.gantt.GanttChartContainer
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
treeTableToggleEvent
event of this
sap.gantt.GanttChartContainer
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Fires event
customSettingChange
to attached listeners.
Expects the following event parameters:
id
of type string
ID of the custom settingvalue
of type boolean
The value of the custom setting
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
ganttChartChangeRequested
to attached listeners.
Expects the following event parameters:
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
treeTableToggleEvent
to attached listeners.
Expects the following event parameters:
rowIndex
of type int
The index of the expanded/collapsed row.rowContext
of type object
The binding context of the selected row.expanded
of type boolean
flag whether the node has been expanded or collapsed.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
getAllSelections(iGanttChartIndex?): object
Gets all selected rows and shapes, including relationships.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing that you want to get |
Returns:
{object} | The returned object contains "rows" for all selected rows, "shapes" for all selected shapes, and "relationships" for all selected relationships |
getContainerLayoutKey(): string
Gets current value of property
containerLayoutKey
.
Current container layout key.
This is a key configured in configuration property containerLayouts
.
Default value is sap.gantt.config.DEFAULT_CONTAINER_SINGLE_LAYOUT_KEY
.
Returns:
{string} | Value of property containerLayoutKey |
getContainerLayouts(): array
Gets current value of property
containerLayouts
.
Configuration of container layouts.
This configuration affects the data source selection ComboBox in the Container Toolbar. When the selection changes, the ganttChartChangeRequested
event that is triggered includes the corresponding layout key.
Default value is sap.gantt.config.DEFAULT_CONTAINER_LAYOUTS
.
Returns:
{array} | Value of property containerLayouts |
Gets content of aggregation
customToolbarItems
.
Controls to be placed in the container toolbar.
This aggregation is used only when the custom toolbar item group is configured to be shown in the container toolbar. Different from the built-in buttons that are configured to be shown or hidden, these controls are free controls created by the application, but are only placed in the container toolbar by sap.gantt.GanttChartContainer
.
If the source selection group is enabled and you want your application to use a container layout pre-configured for a specific source, you can implement your custom toolbar items in the event handler of event ganttChartChangeRequested
.
Returns:
getEnableCursorLine(): boolean
Gets current value of property
enableCursorLine
.
Switch to enable and disable the cursor line that follows the cursor.
When this value is set, it overrides the corresponding value on instances of aggregation ganttCharts
.
Default value is true
.
Returns:
{boolean} | Value of property enableCursorLine |
getEnableNowLine(): boolean
Gets current value of property
enableNowLine
.
Switch to enable and disable the present time indicator.
When this value is set, it overrides the corresponding value on instances of aggregation ganttCharts
.
Default value is true
.
Returns:
{boolean} | Value of property enableNowLine |
getEnableTimeScrollSync(): boolean
Gets current value of property
enableTimeScrollSync
.
Switch to enable and disable scroll synchronization by time on instances of aggregation ganttCharts
.
Default value is true
.
Returns:
{boolean} | Value of property enableTimeScrollSync |
getEnableVerticalLine(): boolean
Gets current value of property
enableVerticalLine
.
Switch to enable and disable vertical lines representing intervals along the time axis.
When this value is set, it overrides the corresponding value on instances of aggregation ganttCharts
.
Default value is true
.
Returns:
{boolean} | Value of property enableVerticalLine |
Gets content of aggregation
ganttCharts
.
Gantt chart instances.
If the source selection group is enabled and you want your application to use a container layout pre-configured for a specific source, you can implement your custom toolbar items in the event handler of event ganttChartChangeRequested
.
Provide a Gantt chart in compliance with the container layout setting. GanttChartContainer is designed to support Gantt chart layouts that include multiple views.
Returns:
Gets current value of property
height
.
Height of the control
Default value is 100%
.
Returns:
getHierarchies(): array
Gets current value of property
hierarchies
.
List of available hierarchies. If not provided, a default configuration is provided.
Default value is sap.gantt.config.DEFAULT_HIERARCHYS
.
Returns:
{array} | Value of property hierarchies |
Gets content of aggregation
legendContainer
.
Legend shown when the legend button is clicked.
This aggregation is used only when the Legend button is configured to be shown in the container toolbar.
Returns:
getMaxNumOfGanttCharts(): int
Gets current value of property
maxNumOfGanttCharts
.
Define the maximum number of Gantt charts to be displayed on the same screen. When this number is reached, the "Add Gantt Chart" button is grayed out.
Default value is 3
.
Returns:
{int} | Value of property maxNumOfGanttCharts |
getModes(): array
Gets current value of property
modes
.
List of available modes. To apply modes to the toolbar and shapes, further configuration is needed. (specifically, in property toolbarSchemes
, and properties toolbarSchemes
and shapes
in the GanttChartBase
class)If not provided, a default configuration is provided.
Default value is sap.gantt.config.DEFAULT_MODES
.
Returns:
{array} | Value of property modes |
getSelectedRelationships(iGanttChartIndex?): array
Gets the selected relationships.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing the selected relationships that you want to get |
Returns:
{array} | Returns all selected relationships in the chart |
getSelectedRows(iGanttChartIndex?): array
Gets the selected rows.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing the selected rows that you want to get |
Returns:
{array} | Returns all selected rows |
getSelectedShapes(iGanttChartIndex?): array
Gets the selected in-row shapes.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing the selected shapes that you want to get |
Returns:
{array} | Returns all selected shapes in the chart |
getSliderStep(): int
Gets current value of property
sliderStep
.
Define the amount of units to change the time zoom slider.
See sap.m.Slider#setStep
Default value is 10
.
Returns:
{int} | Value of property sliderStep |
Gets current value of property
svgDefs
.
Definitions of paint servers used for advanced shape features around SVG fill, stroke, and filter attributes.
If this property is provided, the paint server definition of the SVG is rendered. Method getDefString()
should be implemented by all paint server classes that are passed in in this property. It is easier to assign a common paint server definition in this class instead of in separate instances of sap.gantt.GanttChartBase
. Then the definition is rendered only once.
Returns:
getToolbarSchemeKey(): string
Returns the current effective toolbar scheme key.
Returns:
{string} | - Toolbar scheme key. |
getToolbarSchemes(): array
Gets current value of property
toolbarSchemes
.
List of available toolbar schemes. If not provided, a default configuration is provided.
Default value is sap.gantt.config.DEFAULT_CONTAINER_TOOLBAR_SCHEMES
.
Returns:
{array} | Value of property toolbarSchemes |
Gets current value of property
width
.
Width of the control
Default value is 100%
.
Returns:
indexOfCustomToolbarItem(oCustomToolbarItem): int
Checks for the provided sap.ui.core.Control
in the aggregation customToolbarItems
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfGanttChart(oGanttChart): int
Checks for the provided sap.gantt.GanttChartBase
in the aggregation ganttCharts
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a customToolbarItem into the aggregation customToolbarItems
.
Parameters:
{sap.ui.core.Control} | oCustomToolbarItem | the customToolbarItem to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the customToolbarItem should be inserted at; for a negative value of iIndex , the customToolbarItem is inserted at position 0; for a value greater than the current size of the aggregation, the customToolbarItem is inserted at the last position |
Returns:
Inserts a ganttChart into the aggregation ganttCharts
.
Parameters:
{sap.gantt.GanttChartBase} | oGanttChart | the ganttChart to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the ganttChart should be inserted at; for a negative value of iIndex , the ganttChart is inserted at position 0; for a value greater than the current size of the aggregation, the ganttChart is inserted at the last position |
Returns:
Removes all the controls from the aggregation
customToolbarItems
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
ganttCharts
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a customToolbarItem from the aggregation customToolbarItems
.
Parameters:
{int|string|sap.ui.core.Control} | vCustomToolbarItem | The customToolbarItemto remove or its index or id |
Returns:
Removes a ganttChart from the aggregation ganttCharts
.
Parameters:
Returns:
selectRelationships(iGanttChartIndex?, aIds?, isExclusive?): boolean
Selects relationships and returns a success code.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing the relationships that you want to select |
{array} | aIds? | List of the relationships that you want to select |
{boolean} | isExclusive? | Whether all other selected relationships are to be deselected |
Returns:
{boolean} | - If any selection change is applied, returns true. |
selectRows(iGanttChartIndex?, aIds?, isExclusive?): boolean
Selects rows and returns a success code.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing the rows that you want to select |
{array} | aIds? | List of the rows that you want to select |
{boolean} | isExclusive? | Whether all other selected rows are to be deselected |
Returns:
{boolean} | - If any selection change is applied, returns true. |
selectRowsAndShapes(iGanttChartIndex?, aIds?, bIsExclusive?): boolean
Selects rows and all shapes contained in these rows.
Parameters:
{int} | iGanttChartIndex? | Index of the Gantt chart containing the rows and shapes that you want to select |
{array} | aIds? | Row UIDs |
{boolean} | bIsExclusive? | Whether reset all other selected rows and shapes are to be reset |
Returns:
{boolean} | - If any selection change is applied, returns true. |
selectShapes(iGanttChart?, aIds?, isExclusive?): boolean
Selects in-row shapes and returns a success code.
Parameters:
{int} | iGanttChart? | Index of the Gantt chart containing the shapes that you want to select |
{array} | aIds? | L of the shape IDs that you want to select |
{boolean} | isExclusive? | Whether all other selected shapes are to be deselected |
Returns:
{boolean} | - If any selection change is applied, returns true. |
Sets a new value for property
containerLayoutKey
.
Current container layout key.
This is a key configured in configuration property containerLayouts
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.config.DEFAULT_CONTAINER_SINGLE_LAYOUT_KEY
.
Parameters:
{string} | sContainerLayoutKey | New value for property containerLayoutKey |
Returns:
Sets a new value for property
containerLayouts
.
Configuration of container layouts.
This configuration affects the data source selection ComboBox in the Container Toolbar. When the selection changes, the ganttChartChangeRequested
event that is triggered includes the corresponding layout key.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.config.DEFAULT_CONTAINER_LAYOUTS
.
Parameters:
{array} | sContainerLayouts | New value for property containerLayouts |
Returns:
Sets a new value for property
enableCursorLine
.
Switch to enable and disable the cursor line that follows the cursor.
When this value is set, it overrides the corresponding value on instances of aggregation ganttCharts
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableCursorLine | New value for property enableCursorLine |
Returns:
Sets a new value for property
enableNowLine
.
Switch to enable and disable the present time indicator.
When this value is set, it overrides the corresponding value on instances of aggregation ganttCharts
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableNowLine | New value for property enableNowLine |
Returns:
Sets a new value for property
enableTimeScrollSync
.
Switch to enable and disable scroll synchronization by time on instances of aggregation ganttCharts
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableTimeScrollSync | New value for property enableTimeScrollSync |
Returns:
Sets a new value for property
enableVerticalLine
.
Switch to enable and disable vertical lines representing intervals along the time axis.
When this value is set, it overrides the corresponding value on instances of aggregation ganttCharts
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableVerticalLine | New value for property enableVerticalLine |
Returns:
Sets a new value for property
height
.
Height of the control
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
Parameters:
Returns:
Sets a new value for property
hierarchies
.
List of available hierarchies. If not provided, a default configuration is provided.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.config.DEFAULT_HIERARCHYS
.
Parameters:
{array} | sHierarchies | New value for property hierarchies |
Returns:
Sets the aggregated legendContainer
.
Parameters:
Returns:
Sets a new value for property
maxNumOfGanttCharts
.
Define the maximum number of Gantt charts to be displayed on the same screen. When this number is reached, the "Add Gantt Chart" button is grayed out.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 3
.
Parameters:
{int} | iMaxNumOfGanttCharts | New value for property maxNumOfGanttCharts |
Returns:
Sets a new value for property
modes
.
List of available modes. To apply modes to the toolbar and shapes, further configuration is needed. (specifically, in property toolbarSchemes
, and properties toolbarSchemes
and shapes
in the GanttChartBase
class)If not provided, a default configuration is provided.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.config.DEFAULT_MODES
.
Parameters:
{array} | sModes | New value for property modes |
Returns:
Sets a new value for property
sliderStep
.
Define the amount of units to change the time zoom slider.
See sap.m.Slider#setStep
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 10
.
Parameters:
{int} | iSliderStep | New value for property sliderStep |
Returns:
Sets a new value for property
svgDefs
.
Definitions of paint servers used for advanced shape features around SVG fill, stroke, and filter attributes.
If this property is provided, the paint server definition of the SVG is rendered. Method getDefString()
should be implemented by all paint server classes that are passed in in this property. It is easier to assign a common paint server definition in this class instead of in separate instances of sap.gantt.GanttChartBase
. Then the definition is rendered only once.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
Returns:
Sets a new value for property
toolbarSchemes
.
List of available toolbar schemes. If not provided, a default configuration is provided.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.config.DEFAULT_CONTAINER_TOOLBAR_SCHEMES
.
Parameters:
{array} | sToolbarSchemes | New value for property toolbarSchemes |
Returns:
Sets a new value for property
width
.
Width of the control
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
Parameters:
Returns:
switchOrientation(vOrientation?, bReadConfig?): object
Switches the splitter orientation.
Parameters:
{string} | vOrientation? | Target orientation. If not provided, this method inverts the orientation. |
{boolean} | bReadConfig? | If this value is provided, it overrides the target orientation from the current configuration indicated by property containerLayoutKey . |
Returns:
Unbinds aggregation customToolbarItems
from model data.
Returns:
Unbinds aggregation ganttCharts
from model data.
Returns: