Class sap.gantt.def.SvgDefs

extends Object
known direct subclasses: CalendarDefs

Constructor Summary
Method Summary
sap.gantt.def.SvgDefs.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.def.SvgDefs with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.def.SvgDefs.getMetadata()Returns a metadata object for class sap.gantt.def.SvgDefs.
addDef(oDef)Adds some def to the aggregation defs.
bindDefs(oBindingInfo)Binds aggregation defs to model data.
destroyDefs()Destroys all the defs in the aggregation defs.
getDefs()Gets content of aggregation defs.
indexOfDef(oDef)Checks for the provided sap.gantt.def.DefBase in the aggregation defs.
insertDef(oDef, iIndex)Inserts a def into the aggregation defs.
removeAllDefs()Removes all the controls from the aggregation defs.
removeDef(vDef)Removes a def from the aggregation defs.
unbindDefs()Unbinds aggregation defs from model data.
Constructor Detail
new sap.gantt.def.SvgDefs()
Method Detail
sap.gantt.def.SvgDefs.extend(sClassName, oClassInfo?, FNMetaImpl?): functionModule: sap/gantt/def/SvgDefs
Creates a new subclass of class sap.gantt.def.SvgDefs 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.base.ManagedObject.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.def.SvgDefs.getMetadata(): sap.ui.base.MetadataModule: sap/gantt/def/SvgDefs
Returns a metadata object for class sap.gantt.def.SvgDefs.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
Adds some def to the aggregation defs.
Parameters:
{sap.gantt.def.DefBase}oDef the def to add; if empty, nothing is inserted
Returns:
{sap.gantt.def.SvgDefs} Reference to this in order to allow method chaining
bindDefs(oBindingInfo): sap.gantt.def.SvgDefsModule: sap/gantt/def/SvgDefs
Binds aggregation defs to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

Parameters:
{object}oBindingInfo The binding information
Returns:
{sap.gantt.def.SvgDefs} Reference to this in order to allow method chaining
Destroys all the defs in the aggregation defs.
Returns:
{sap.gantt.def.SvgDefs} Reference to this in order to allow method chaining
Gets content of aggregation defs.

SVG definition instances.

Returns:
{sap.gantt.def.DefBase[]}
indexOfDef(oDef): intModule: sap/gantt/def/SvgDefs
Checks for the provided sap.gantt.def.DefBase in the aggregation defs. and returns its index if found or -1 otherwise.
Parameters:
{sap.gantt.def.DefBase}oDef The def whose index is looked for
Returns:
{int} The index of the provided control in the aggregation if found, or -1 otherwise
insertDef(oDef, iIndex): sap.gantt.def.SvgDefsModule: sap/gantt/def/SvgDefs
Inserts a def into the aggregation defs.
Parameters:
{sap.gantt.def.DefBase}oDef the def to insert; if empty, nothing is inserted
{int}iIndex the 0-based index the def should be inserted at; for a negative value of iIndex, the def is inserted at position 0; for a value greater than the current size of the aggregation, the def is inserted at the last position
Returns:
{sap.gantt.def.SvgDefs} Reference to this in order to allow method chaining
removeAllDefs(): sap.gantt.def.DefBase[]Module: sap/gantt/def/SvgDefs
Removes all the controls from the aggregation defs.

Additionally, it unregisters them from the hosting UIArea.

Returns:
{sap.gantt.def.DefBase[]} An array of the removed elements (might be empty)
Removes a def from the aggregation defs.
Parameters:
{int|string|sap.gantt.def.DefBase}vDef The defto remove or its index or id
Returns:
{sap.gantt.def.DefBase} The removed def or null
Unbinds aggregation defs from model data.
Returns:
{sap.gantt.def.SvgDefs} Reference to this in order to allow method chaining