Class sap.gantt.config.TimeHorizonModule: sap/gantt/config/TimeHorizon

extends Element

Defines the Time horizon

Constructor Summary
new sap.gantt.config.TimeHorizon(sId?, mSettings?)Creates and initializes a new Time horizon

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

Method Summary
sap.gantt.config.TimeHorizon.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.config.TimeHorizon with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.config.TimeHorizon.getMetadata()Returns a metadata object for class sap.gantt.config.TimeHorizon.
getEndTime()Gets current value of property endTime.
getStartTime()Gets current value of property startTime.
setEndTime(sEndTime)Sets a new value for property endTime.
setStartTime(sStartTime)Sets a new value for property startTime.
Constructor Detail
new sap.gantt.config.TimeHorizon(sId?, mSettings?)
Creates and initializes a new Time horizon

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:

  • Properties

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.TimeHorizon.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.config.TimeHorizon 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.TimeHorizon.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.config.TimeHorizon.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getEndTime(): string
Gets current value of property endTime.

End time of the time horizon in this format: YYYYMMDDHHMMSS. If the type of endTime is object, the value is converted to string.

Default value is undefined.

Returns:
{string} Value of property endTime
getStartTime(): string
Gets current value of property startTime.

Start time of the time horizon in this format: YYYYMMDDHHMMSS. If the type of startTime is object, the value is converted to string.

Default value is undefined.

Returns:
{string} Value of property startTime
setEndTime(sEndTime): sap.gantt.config.TimeHorizon
Sets a new value for property endTime.

End time of the time horizon in this format: YYYYMMDDHHMMSS. If the type of endTime is object, the value is converted to string.

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

Default value is undefined.

Parameters:
{string}sEndTime New value for property endTime
Returns:
{sap.gantt.config.TimeHorizon} Reference to this in order to allow method chaining
setStartTime(sStartTime): sap.gantt.config.TimeHorizon
Sets a new value for property startTime.

Start time of the time horizon in this format: YYYYMMDDHHMMSS. If the type of startTime is object, the value is converted to string.

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

Default value is undefined.

Parameters:
{string}sStartTime New value for property startTime
Returns:
{sap.gantt.config.TimeHorizon} Reference to this in order to allow method chaining