Class sap.landvisz.internal.ActionBarModule: sap/landvisz/internal/ActionBar
A control that render actions of a system
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the 'select' event of this sap.landvisz.internal.ActionBar
.fnFunction
from the 'select' event of this sap.landvisz.internal.ActionBar
.sap.ui.commons.Menu
in the aggregation named menu
and returns its index if found or -1 otherwise. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers.
If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).
The supported settings are:
- Properties
- actionLabel : string
- renderingSize : sap.landvisz.EntityCSSSize (default: sap.landvisz.EntityCSSSize.Regular)
- iconSrc : sap.ui.core.URI
- actionType : sap.landvisz.ActionType (default: sap.landvisz.ActionType.NORMAL)
- menuData : object
- actionTooltip : string
- enable : boolean (default: true)
- changeView : boolean (default: false)
- Aggregations
- menu : sap.ui.commons.Menu[]
- Associations
- Events
- select : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of informations as described in Element.extend.
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
{function} | the created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
oMenu
to the aggregation named menu
. {sap.ui.commons.Menu} | oMenu | the menu to add; if empty, nothing is inserted |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
fnFunction
to the 'select' event of this sap.landvisz.internal.ActionBar
.. When called, the context of the event handler (its
this
) will be bound to oListener if specified otherwise to this sap.landvisz.internal.ActionBar
.
itself. click on the action bar
{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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.landvisz.internal.ActionBar .itself. |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
menu
. {sap.landvisz.internal.ActionBar} | this to allow method chaining |
fnFunction
from the 'select' event of this sap.landvisz.internal.ActionBar
.The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
{Map} | mArguments? | the arguments to pass along with the event. |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
actionLabel
. label for action Default value is empty/undefined
{string} | the value of property actionLabel |
actionTooltip
. Tooltip for the action Default value is empty/undefined
{string} | the value of property actionTooltip |
actionType
. type of the action Default value is sap.landvisz.ActionType.NORMAL
{sap.landvisz.ActionType} | the value of property actionType |
changeView
. new type of view is loaded while performing the action. Default value is false
{boolean} | the value of property changeView |
enable
. property to enable/disable actions Default value is true
{boolean} | the value of property enable |
iconSrc
. source for the icon rendered Default value is empty/undefined
{sap.ui.core.URI} | the value of property iconSrc |
menu
.aggregation for menu items
{sap.ui.commons.Menu[]} |
menuData
. data of menu items and sub items Default value is empty/undefined
{object} | the value of property menuData |
renderingSize
. Property that determines the size of the entity rendered Default value is sap.landvisz.EntityCSSSize.Regular
{sap.landvisz.EntityCSSSize} | the value of property renderingSize |
sap.ui.commons.Menu
in the aggregation named menu
and returns its index if found or -1 otherwise. {sap.ui.commons.Menu} | oMenu | the menu whose index is looked for. |
{int} | the index of the provided control in the aggregation if found, or -1 otherwise |
menu
. {sap.ui.commons.Menu} | oMenu | the menu to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the menu should be inserted at; for a negative value of iIndex , the menu is inserted at position 0; for a value greater than the current size of the aggregation, the menu is inserted at the last position |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
menu
.Additionally unregisters them from the hosting UIArea.
{sap.ui.commons.Menu[]} | an array of the removed elements (might be empty) |
menu
. {int|string|sap.ui.commons.Menu} | vMenu | the menu to remove or its index or id |
{sap.ui.commons.Menu} | the removed menu or null |
actionLabel
. Default value is empty/undefined
{string} | sActionLabel | new value for property actionLabel |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
actionTooltip
. Default value is empty/undefined
{string} | sActionTooltip | new value for property actionTooltip |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
actionType
. Default value is sap.landvisz.ActionType.NORMAL
{sap.landvisz.ActionType} | oActionType | new value for property actionType |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
changeView
. Default value is false
{boolean} | bChangeView | new value for property changeView |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
enable
. Default value is true
{boolean} | bEnable | new value for property enable |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
iconSrc
. Default value is empty/undefined
{sap.ui.core.URI} | sIconSrc | new value for property iconSrc |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
menuData
. Default value is empty/undefined
{object} | oMenuData | new value for property menuData |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |
renderingSize
. Default value is sap.landvisz.EntityCSSSize.Regular
{sap.landvisz.EntityCSSSize} | oRenderingSize | new value for property renderingSize |
{sap.landvisz.internal.ActionBar} | this to allow method chaining |