Specific Visual Object element acting as a container for other controls. A Container is positioned at the given position on the map. It can aggregate other controls, which will then move with the map.
Since a Container is not a real visual object most features borrowed from VoBase will not work. There is no label, no edit mode, and no drop support. Events like click will only be fired if the aggregated control is not handling them.
Method Summary
sap.ui.vbm.Container.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.vbm.Container with name sClassName
and enriches it with the information contained in oClassInfo
. destroyItem()Destroys the item in the aggregation item
. getItem()Gets content of aggregation item
. setAlignment(sAlignment)Sets a new value for property alignment
. setItem(oItem)Sets the aggregated item
. setPosition(sPosition)Sets a new value for property position
. attachClick,
attachContextMenu,
attachDrop,
attachHandleClick,
attachHandleContextMenu,
attachHandleMoved,
detachClick,
detachContextMenu,
detachDrop,
detachHandleClick,
detachHandleContextMenu,
detachHandleMoved,
fireClick,
fireContextMenu,
fireDrop,
fireHandleClick,
fireHandleContextMenu,
fireHandleMoved,
getChangeable,
getDragData,
getEntity,
getFxdir,
getFxsize,
getHotDeltaColor,
getHotScale,
getKey,
getLabelArrow,
getLabelBgColor,
getLabelBorderColor,
getLabelPos,
getLabelText,
getLabelType,
getSelect,
getSelectColor,
openContextMenu,
openDetailWindow,
setChangeable,
setDragData,
setEntity,
setFxdir,
setFxsize,
setHotDeltaColor,
setHotScale,
setKey,
setLabelArrow,
setLabelBgColor,
setLabelBorderColor,
setLabelPos,
setLabelText,
setLabelType,
setSelect,
setSelectColor $,
addCustomData,
addDependent,
addEventDelegate,
applyFocusInfo,
bindElement,
clone,
data,
destroy,
destroyCustomData,
destroyDependents,
destroyLayoutData,
destroyTooltip,
enhanceAccessibilityState,
exit,
findElements,
fireEvent,
focus,
getCustomData,
getDependents,
getDomRef,
getElementBinding,
getFocusDomRef,
getFocusInfo,
getInterface,
getLayoutData,
getMetadata,
getTooltip,
getTooltip_AsString,
getTooltip_Text,
indexOfCustomData,
indexOfDependent,
init,
insertCustomData,
insertDependent,
prop,
removeAllCustomData,
removeAllDependents,
removeCustomData,
removeDependent,
removeEventDelegate,
rerender,
setLayoutData,
setTooltip,
toString,
unbindElement addAggregation,
addAssociation,
applySettings,
attachFormatError,
attachModelContextChange,
attachParseError,
attachValidationError,
attachValidationSuccess,
bindAggregation,
bindContext,
bindObject,
bindProperty,
destroyAggregation,
detachFormatError,
detachModelContextChange,
detachParseError,
detachValidationError,
detachValidationSuccess,
findAggregatedObjects,
fireFormatError,
fireModelContextChange,
fireParseError,
fireValidationError,
fireValidationSuccess,
getAggregation,
getAssociation,
getBinding,
getBindingContext,
getBindingInfo,
getBindingPath,
getEventingParent,
getId,
getModel,
getObjectBinding,
getOriginInfo,
getParent,
getProperty,
hasModel,
indexOfAggregation,
insertAggregation,
invalidate,
isBound,
isInvalidateSuppressed,
isTreeBinding,
propagateMessages,
removeAggregation,
removeAllAggregation,
removeAllAssociation,
removeAssociation,
setAggregation,
setAssociation,
setBindingContext,
setModel,
setProperty,
unbindAggregation,
unbindContext,
unbindObject,
unbindProperty,
validateAggregation,
validateProperty Constructor Detail
new sap.ui.vbm.Container(sId?, mSettings?)
Constructor for a new Container.
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:
- Properties
- Aggregations
- item : sap.ui.core.Control
In addition, all settings applicable to the base type sap.ui.vbm.VoBase 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.Container.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.vbm.Container 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.VoBase.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.Container.
Returns:
Destroys the item in the aggregation item
.
Returns:
getAlignment(): string
Gets current value of property
alignment
.
Alignment of the container to its position:
- 0: center
- 1: top center
- 2: top right
- 3: center right
- 4: bottom right
- 5: bottom center
- 6: bottom left
- 7: center left
- 8: top left
Default value is 0
.
Returns:
{string} | Value of property alignment |
Gets content of aggregation
item
.
The control that should be placed in the container.
Returns:
getPosition(): string
Gets current value of property
position
.
The position for the Container. The format is "lon;lat;0".
Returns:
{string} | Value of property position |
Sets a new value for property
alignment
.
Alignment of the container to its position:
- 0: center
- 1: top center
- 2: top right
- 3: center right
- 4: bottom right
- 5: bottom center
- 6: bottom left
- 7: center left
- 8: top left
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 0
.
Parameters:
{string} | sAlignment | New value for property alignment |
Returns:
Sets the aggregated item
.
Parameters:
Returns:
Sets a new value for property
position
.
The position for the Container. The format is "lon;lat;0".
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sPosition | New value for property position |
Returns: