sap.ui.vbm.Routes.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.vbm.Routes 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.Routes.
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:
Attaches event handler
fnFunction
to the
click
event of this
sap.ui.vbm.Routes
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.vbm.Routes
itself.
The event is raised when there is a click action on a Route.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vbm.Routes itself |
Returns:
Attaches event handler
fnFunction
to the
contextMenu
event of this
sap.ui.vbm.Routes
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.vbm.Routes
itself.
The event is raised when there is a right click or a tap and hold action on a Route.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vbm.Routes itself |
Returns:
Attaches event handler
fnFunction
to the
drop
event of this
sap.ui.vbm.Routes
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.vbm.Routes
itself.
The event is raised when something is dropped on a Route.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.vbm.Routes itself |
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:
Detaches event handler
fnFunction
from the
click
event of this
sap.ui.vbm.Routes
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
contextMenu
event of this
sap.ui.vbm.Routes
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
drop
event of this
sap.ui.vbm.Routes
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Fires event click
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event contextMenu
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event drop
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets content of aggregation
dragSource
.
DragSource aggregation
Returns:
Gets content of aggregation
dropTarget
.
DropTarget aggregation
Returns:
Gets content of aggregation
items
.
Route 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 |
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.Route
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.Route} | 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: