Class sap.landvisz.internal.EntityActionModule: sap/landvisz/internal/EntityAction

extends Control

A control to specify entity actions

Constructor Summary
new sap.landvisz.internal.EntityAction(sId?, mSettings?)Constructor for a new internal/EntityAction.
Event Summary
press(oControlEvent)on click fire press
Events borrowed from class sap.ui.core.Control
Method Summary
sap.landvisz.internal.EntityAction.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.landvisz.internal.EntityAction with name sClassName and enriches it with the information contained in oClassInfo.
sap.landvisz.internal.EntityAction.getMetadata()Returns a metadata object for class sap.landvisz.internal.EntityAction.
attachPress(oData?, fnFunction, oListener?)Attach event handler fnFunction to the 'press' event of this sap.landvisz.internal.EntityAction.
detachPress(fnFunction, oListener)Detach event handler fnFunction from the 'press' event of this sap.landvisz.internal.EntityAction.
firePress(mArguments?)Fire event press to attached listeners.
getActionTooltip()Getter for property actionTooltip.
getIconSrc()Getter for property iconSrc.
getRenderingSize()Getter for property renderingSize.
setActionTooltip(sActionTooltip)Setter for property actionTooltip.
setIconSrc(sIconSrc)Setter for property iconSrc.
setRenderingSize(sRenderingSize)Setter for property renderingSize.
Constructor Detail
new sap.landvisz.internal.EntityAction(sId?, mSettings?)
Constructor for a new internal/EntityAction.

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
  • Aggregations
    • Associations
      • Events
        • press : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
      Parameters:
      {string}sId? id for the new control, generated automatically if no id is given
      {object}mSettings? initial settings for the new control
      Event Detail
      press(oControlEvent)
      on click fire press
      Parameters:
      {sap.ui.base.Event}oControlEvent
      {sap.ui.base.EventProvider}oControlEvent.getSource
      {object}oControlEvent.getParameters
      Method Detail
      sap.landvisz.internal.EntityAction.extend(sClassName, oClassInfo?, FNMetaImpl?): function
      Creates a new subclass of class sap.landvisz.internal.EntityAction with name sClassName and enriches it with the information contained in oClassInfo.

      oClassInfo might contain the same kind of informations as described in Element.extend.

      Parameters:
      {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.
      Returns:
      {function} the created class / constructor function
      sap.landvisz.internal.EntityAction.getMetadata(): sap.ui.base.Metadata
      Returns a metadata object for class sap.landvisz.internal.EntityAction.
      Returns:
      {sap.ui.base.Metadata} Metadata object describing this class
      attachPress(oData?, fnFunction, oListener?): sap.landvisz.internal.EntityAction
      Attach event handler fnFunction to the 'press' event of this sap.landvisz.internal.EntityAction.
      . When called, the context of the event handler (its this) will be bound to oListener if specified otherwise to this sap.landvisz.internal.EntityAction.
      itself.

      on click fire press

      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 call, when the event occurs.
      {object}oListener? Context object to call the event handler with. Defaults to this sap.landvisz.internal.EntityAction.
      itself.
      Returns:
      {sap.landvisz.internal.EntityAction}this to allow method chaining
      detachPress(fnFunction, oListener): sap.landvisz.internal.EntityAction
      Detach event handler fnFunction from the 'press' event of this sap.landvisz.internal.EntityAction.

      The passed function and listener object must match the ones used for event registration.

      Parameters:
      {function}fnFunction The function to call, when the event occurs.
      {object}oListener Context object on which the given function had to be called.
      Returns:
      {sap.landvisz.internal.EntityAction}this to allow method chaining
      firePress(mArguments?): sap.landvisz.internal.EntityAction
      Fire event press to attached listeners.
      Parameters:
      {Map}mArguments? the arguments to pass along with the event.
      Returns:
      {sap.landvisz.internal.EntityAction}this to allow method chaining
      getActionTooltip(): string
      Getter for property actionTooltip. Tooltip for the internal action

      Default value is empty/undefined

      Returns:
      {string} the value of property actionTooltip
      getIconSrc(): sap.ui.core.URI
      Getter for property iconSrc. Source of the icon

      Default value is empty/undefined

      Returns:
      {sap.ui.core.URI} the value of property iconSrc
      getRenderingSize(): string
      Getter for property renderingSize. rendering size of the control

      Default value is empty/undefined

      Returns:
      {string} the value of property renderingSize
      setActionTooltip(sActionTooltip): sap.landvisz.internal.EntityAction
      Setter for property actionTooltip.

      Default value is empty/undefined

      Parameters:
      {string}sActionTooltip new value for property actionTooltip
      Returns:
      {sap.landvisz.internal.EntityAction}this to allow method chaining
      setIconSrc(sIconSrc): sap.landvisz.internal.EntityAction
      Setter for property iconSrc.

      Default value is empty/undefined

      Parameters:
      {sap.ui.core.URI}sIconSrc new value for property iconSrc
      Returns:
      {sap.landvisz.internal.EntityAction}this to allow method chaining
      setRenderingSize(sRenderingSize): sap.landvisz.internal.EntityAction
      Setter for property renderingSize.

      Default value is empty/undefined

      Parameters:
      {string}sRenderingSize new value for property renderingSize
      Returns:
      {sap.landvisz.internal.EntityAction}this to allow method chaining