sap.ui.vbm.Spots.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.vbm.Spots 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.vbm.VoAggregation.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.ui.vbm.Spots.
Returns:
Adds some dragSource to the aggregation dragSource
.
Parameters:
Returns:
Adds some dropTarget to the aggregation dropTarget
.
Parameters:
Returns:
Adds some item to the aggregation items
.
Parameters:
Returns:
Destroys all the dragSource in the aggregation dragSource
.
Returns:
Destroys all the dropTarget in the aggregation dropTarget
.
Returns:
Destroys all the items in the aggregation items
.
Returns:
Gets content of aggregation
dragSource
.
DragSource aggregation
Returns:
Gets content of aggregation
dropTarget
.
DropTarget aggregation
Returns:
Gets content of aggregation
items
.
spot object aggregation
Returns:
getPosChangeable(): boolean
Gets current value of property
posChangeable
.
Set to true if position may be changed at runtime. The actual changeability is control on each aggregated element with property changeable.
Default value is true
.
Returns:
{boolean} | Value of property posChangeable |
getScaleChangeable(): boolean
Gets current value of property
scaleChangeable
.
Set to true if scale may be changed at runtime. The actual changeability is control on each aggregated element with property changeable.
Default value is true
.
Returns:
{boolean} | Value of property scaleChangeable |
indexOfDragSource(oDragSource): int
Checks for the provided sap.ui.vbm.DragSource
in the aggregation dragSource
. 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 |
indexOfDropTarget(oDropTarget): int
Checks for the provided sap.ui.vbm.DropTarget
in the aggregation dropTarget
. 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 |
indexOfItem(oItem): int
Checks for the provided sap.ui.vbm.Spot
in the aggregation items
. 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 dragSource into the aggregation dragSource
.
Parameters:
{sap.ui.vbm.DragSource} | oDragSource | the dragSource to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the dragSource should be inserted at; for a negative value of iIndex , the dragSource is inserted at position 0; for a value greater than the current size of the aggregation, the dragSource is inserted at the last position |
Returns:
Inserts a dropTarget into the aggregation dropTarget
.
Parameters:
{sap.ui.vbm.DropTarget} | oDropTarget | the dropTarget to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the dropTarget should be inserted at; for a negative value of iIndex , the dropTarget is inserted at position 0; for a value greater than the current size of the aggregation, the dropTarget is inserted at the last position |
Returns:
Inserts a item into the aggregation items
.
Parameters:
{sap.ui.vbm.Spot} | oItem | the item to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the item should be inserted at; for a negative value of iIndex , the item is inserted at position 0; for a value greater than the current size of the aggregation, the item is inserted at the last position |
Returns:
Removes all the controls from the aggregation
dragSource
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
dropTarget
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
items
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a dragSource from the aggregation dragSource
.
Parameters:
Returns:
Removes a dropTarget from the aggregation dropTarget
.
Parameters:
Returns:
Removes a item from the aggregation items
.
Parameters:
Returns:
Sets a new value for property
posChangeable
.
Set to true if position may be changed at runtime. The actual changeability is control on each aggregated element with property changeable.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bPosChangeable | New value for property posChangeable |
Returns:
Sets a new value for property
scaleChangeable
.
Set to true if scale may be changed at runtime. The actual changeability is control on each aggregated element with property changeable.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bScaleChangeable | New value for property scaleChangeable |
Returns: