Abstract Class sap.gantt.def.DefBaseModule: sap/gantt/def/DefBase

extends Element

Base class for all SVG definitions.

SVG uses the 'defs' tag to represent graphic objects that can be reused at a later time. See 'defs' in SVG. Currently sap.gantt provides defs including the following definition tags: 'pattern', 'gradient', and 'filter'. Applications can also extend this base class to support more functionality.

Constructor Summary
new sap.gantt.def.DefBase(sId?, mSettings?)Creates and initializes a new SVG graphic object for reuse.
Method Summary
sap.gantt.def.DefBase.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.def.DefBase with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.def.DefBase.getMetadata()Returns a metadata object for class sap.gantt.def.DefBase.
generateRefId()Provides a referencing ID.
getDefString()Gets current value of property defString.
getRefString()Gets current value of property refString.
setDefString(sDefString)Sets a new value for property defString.
setRefString(sRefString)Sets a new value for property refString.
Constructor Detail
new sap.gantt.def.DefBase(sId?, mSettings?)
Creates and initializes a new SVG graphic object for reuse.

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.def.DefBase.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.def.DefBase 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.def.DefBase.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.def.DefBase.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
generateRefId(): string
Provides a referencing ID. The default implementation is to use control ID as the referencing ID.
Returns:
{string} Referencing ID.
See:
sap.ui.table.Table.getSelectedIndex
getDefString(): string
Gets current value of property defString.

Definition string. Subclasses can implement their own getters of this property to override the one in this class.

Returns:
{string} Value of property defString
getRefString(): string
Gets current value of property refString.

Referencing string. The default implementation is the referencing ID wrapped by 'url(#)'.

Returns:
{string} Value of property refString
setDefString(sDefString): sap.gantt.def.DefBase
Sets a new value for property defString.

Definition string. Subclasses can implement their own getters of this property to override the one in this class.

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

Parameters:
{string}sDefString New value for property defString
Returns:
{sap.gantt.def.DefBase} Reference to this in order to allow method chaining
setRefString(sRefString): sap.gantt.def.DefBase
Sets a new value for property refString.

Referencing string. The default implementation is the referencing ID wrapped by 'url(#)'.

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

Parameters:
{string}sRefString New value for property refString
Returns:
{sap.gantt.def.DefBase} Reference to this in order to allow method chaining