Class sap.ui.vbm.SpotsModule: sap/ui/vbm/Spots


Type specific Visual Object aggregation for Spot elements.
Spots support GeoMap internal drag'n drop with fine grained control on matching drag sources and drop targets. A drag'n drop operation is possible if any type in the drag source aggregation of the dragged visual object matches a type in the drop target aggregation of the target vo. If drag source and drop target types are defined on aggregation level they apply for all aggregated elements.

Constructor Summary
new sap.ui.vbm.Spots(sId?, mSettings?)Constructor for a new Spots.
Method Summary
sap.ui.vbm.Spots.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.vbm.Spots with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.vbm.Spots.getMetadata()Returns a metadata object for class sap.ui.vbm.Spots.
addDragSource(oDragSource)Adds some dragSource to the aggregation dragSource.
addDropTarget(oDropTarget)Adds some dropTarget to the aggregation dropTarget.
addItem(oItem)Adds some item to the aggregation items.
destroyDragSource()Destroys all the dragSource in the aggregation dragSource.
destroyDropTarget()Destroys all the dropTarget in the aggregation dropTarget.
destroyItems()Destroys all the items in the aggregation items.
getDragSource()Gets content of aggregation dragSource.
getDropTarget()Gets content of aggregation dropTarget.
getItems()Gets content of aggregation items.
getPosChangeable()Gets current value of property posChangeable.
getScaleChangeable()Gets current value of property scaleChangeable.
indexOfDragSource(oDragSource)Checks for the provided sap.ui.vbm.DragSource in the aggregation dragSource.
indexOfDropTarget(oDropTarget)Checks for the provided sap.ui.vbm.DropTarget in the aggregation dropTarget.
indexOfItem(oItem)Checks for the provided sap.ui.vbm.Spot in the aggregation items.
insertDragSource(oDragSource, iIndex)Inserts a dragSource into the aggregation dragSource.
insertDropTarget(oDropTarget, iIndex)Inserts a dropTarget into the aggregation dropTarget.
insertItem(oItem, iIndex)Inserts a item into the aggregation items.
removeAllDragSource()Removes all the controls from the aggregation dragSource.
removeAllDropTarget()Removes all the controls from the aggregation dropTarget.
removeAllItems()Removes all the controls from the aggregation items.
removeDragSource(vDragSource)Removes a dragSource from the aggregation dragSource.
removeDropTarget(vDropTarget)Removes a dropTarget from the aggregation dropTarget.
removeItem(vItem)Removes a item from the aggregation items.
setPosChangeable(bPosChangeable)Sets a new value for property posChangeable.
setScaleChangeable(bScaleChangeable)Sets a new value for property scaleChangeable.
Methods borrowed from class sap.ui.vbm.VoAbstract
Constructor Detail
new sap.ui.vbm.Spots(sId?, mSettings?)
Constructor for a new Spots.

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.vbm.VoAggregation can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Method Detail
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
sap.ui.vbm.Spots.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.vbm.Spots.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
addDragSource(oDragSource): sap.ui.vbm.Spots
Adds some dragSource to the aggregation dragSource.
Parameters:
{sap.ui.vbm.DragSource}oDragSource the dragSource to add; if empty, nothing is inserted
Returns:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
addDropTarget(oDropTarget): sap.ui.vbm.Spots
Adds some dropTarget to the aggregation dropTarget.
Parameters:
{sap.ui.vbm.DropTarget}oDropTarget the dropTarget to add; if empty, nothing is inserted
Returns:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
addItem(oItem): sap.ui.vbm.Spots
Adds some item to the aggregation items.
Parameters:
{sap.ui.vbm.Spot}oItem the item to add; if empty, nothing is inserted
Returns:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
destroyDragSource(): sap.ui.vbm.Spots
Destroys all the dragSource in the aggregation dragSource.
Returns:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
destroyDropTarget(): sap.ui.vbm.Spots
Destroys all the dropTarget in the aggregation dropTarget.
Returns:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
destroyItems(): sap.ui.vbm.Spots
Destroys all the items in the aggregation items.
Returns:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
getDragSource(): sap.ui.vbm.DragSource[]
Gets content of aggregation dragSource.

DragSource aggregation

Returns:
{sap.ui.vbm.DragSource[]}
getDropTarget(): sap.ui.vbm.DropTarget[]
Gets content of aggregation dropTarget.

DropTarget aggregation

Returns:
{sap.ui.vbm.DropTarget[]}
getItems(): sap.ui.vbm.Spot[]
Gets content of aggregation items.

spot object aggregation

Returns:
{sap.ui.vbm.Spot[]}
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:
{sap.ui.vbm.DragSource}oDragSource The dragSource whose index is looked for
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:
{sap.ui.vbm.DropTarget}oDropTarget The dropTarget whose index is looked for
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:
{sap.ui.vbm.Spot}oItem The item whose index is looked for
Returns:
{int} The index of the provided control in the aggregation if found, or -1 otherwise
insertDragSource(oDragSource, iIndex): sap.ui.vbm.Spots
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:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
insertDropTarget(oDropTarget, iIndex): sap.ui.vbm.Spots
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:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
insertItem(oItem, iIndex): sap.ui.vbm.Spots
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:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
removeAllDragSource(): sap.ui.vbm.DragSource[]
Removes all the controls from the aggregation dragSource.

Additionally, it unregisters them from the hosting UIArea.

Returns:
{sap.ui.vbm.DragSource[]} An array of the removed elements (might be empty)
removeAllDropTarget(): sap.ui.vbm.DropTarget[]
Removes all the controls from the aggregation dropTarget.

Additionally, it unregisters them from the hosting UIArea.

Returns:
{sap.ui.vbm.DropTarget[]} An array of the removed elements (might be empty)
removeAllItems(): sap.ui.vbm.Spot[]
Removes all the controls from the aggregation items.

Additionally, it unregisters them from the hosting UIArea.

Returns:
{sap.ui.vbm.Spot[]} An array of the removed elements (might be empty)
removeDragSource(vDragSource): sap.ui.vbm.DragSource
Removes a dragSource from the aggregation dragSource.
Parameters:
{int|string|sap.ui.vbm.DragSource}vDragSource The dragSourceto remove or its index or id
Returns:
{sap.ui.vbm.DragSource} The removed dragSource or null
removeDropTarget(vDropTarget): sap.ui.vbm.DropTarget
Removes a dropTarget from the aggregation dropTarget.
Parameters:
{int|string|sap.ui.vbm.DropTarget}vDropTarget The dropTargetto remove or its index or id
Returns:
{sap.ui.vbm.DropTarget} The removed dropTarget or null
removeItem(vItem): sap.ui.vbm.Spot
Removes a item from the aggregation items.
Parameters:
{int|string|sap.ui.vbm.Spot}vItem The itemto remove or its index or id
Returns:
{sap.ui.vbm.Spot} The removed item or null
setPosChangeable(bPosChangeable): sap.ui.vbm.Spots
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:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining
setScaleChangeable(bScaleChangeable): sap.ui.vbm.Spots
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:
{sap.ui.vbm.Spots} Reference to this in order to allow method chaining