Class sap.gantt.config.ObjectTypeModule: sap/gantt/config/ObjectType

extends Element

Define the ObjectType which is used in GanttChart

Constructor Summary
new sap.gantt.config.ObjectType(sId?, mSettings?)Creates and initializes a new object type

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers.

Method Summary
sap.gantt.config.ObjectType.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.config.ObjectType with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.config.ObjectType.getMetadata()Returns a metadata object for class sap.gantt.config.ObjectType.
getDescription()Gets current value of property description.
getExpandedChartSchemeKeys()Gets current value of property expandedChartSchemeKeys.
getKey()Gets current value of property key.
getMainChartSchemeKey()Gets current value of property mainChartSchemeKey.
setDescription(sDescription)Sets a new value for property description.
setExpandedChartSchemeKeys(sExpandedChartSchemeKeys)Sets a new value for property expandedChartSchemeKeys.
setKey(sKey)Sets a new value for property key.
setMainChartSchemeKey(sMainChartSchemeKey)Sets a new value for property mainChartSchemeKey.
Constructor Detail
new sap.gantt.config.ObjectType(sId?, mSettings?)
Creates and initializes a new object type

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.

The supported settings are:

In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.

Parameters:
{string}sId? ID of the new control, generated automatically if no ID is given
{object}mSettings? Initial settings for the new control
Method Detail
sap.gantt.config.ObjectType.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.config.ObjectType with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Element.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
sap.gantt.config.ObjectType.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.config.ObjectType.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getDescription(): string
Gets current value of property description.

Description of the object type

Returns:
{string} Value of property description
getExpandedChartSchemeKeys(): array
Gets current value of property expandedChartSchemeKeys.

Specifies the expanded chart scheme in which the the object type can be shown Array of keys of sap.gantt.config.ChartScheme

Default value is [].

Returns:
{array} Value of property expandedChartSchemeKeys
getKey(): string
Gets current value of property key.

Unique Key of the object type

Returns:
{string} Value of property key
getMainChartSchemeKey(): string
Gets current value of property mainChartSchemeKey.

Specifies the chart scheme in which the the object type can be shown Key of sap.gantt.config.ChartScheme

Default value is sap.gantt.config.DEFAULT_MAIN_CHART_SCHEME_KEY.

Returns:
{string} Value of property mainChartSchemeKey
setDescription(sDescription): sap.gantt.config.ObjectType
Sets a new value for property description.

Description of the object type

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sDescription New value for property description
Returns:
{sap.gantt.config.ObjectType} Reference to this in order to allow method chaining
setExpandedChartSchemeKeys(sExpandedChartSchemeKeys): sap.gantt.config.ObjectType
Sets a new value for property expandedChartSchemeKeys.

Specifies the expanded chart scheme in which the the object type can be shown Array of keys of sap.gantt.config.ChartScheme

When called with a value of null or undefined, the default value of the property will be restored.

Default value is [].

Parameters:
{array}sExpandedChartSchemeKeys New value for property expandedChartSchemeKeys
Returns:
{sap.gantt.config.ObjectType} Reference to this in order to allow method chaining
Sets a new value for property key.

Unique Key of the object type

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sKey New value for property key
Returns:
{sap.gantt.config.ObjectType} Reference to this in order to allow method chaining
setMainChartSchemeKey(sMainChartSchemeKey): sap.gantt.config.ObjectType
Sets a new value for property mainChartSchemeKey.

Specifies the chart scheme in which the the object type can be shown Key of sap.gantt.config.ChartScheme

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_MAIN_CHART_SCHEME_KEY.

Parameters:
{string}sMainChartSchemeKey New value for property mainChartSchemeKey
Returns:
{sap.gantt.config.ObjectType} Reference to this in order to allow method chaining