Entering content frame

Object documentation Web Dynpro MenuActionItem API – IWDMenuActionItem Locate the document in its SAP Library structure

Definition

The MenuActionItem element is a subelement of the MenuItem element. You can use this subelement to define an action for a menu item (or MenuItem object). You can link this view element to a graphic using the imageSource property.

Property Descriptions

·        enabled
Indicates whether or not the menu item can be selected.

·        imageSource
Specifies the Web address (URL) of the graphic to be displayed.

·        text
Describes the text to be displayed.

Overview of Inherited and Additional Properties

Name

Interface

Type

Initial Value

Bindable

Value Required

enabled

IWDMenuActionItem

boolean

true

bindable

No

imageSource

IWDMenuActionItem

String

 

bindable

No

text

IWDMenuActionItem

String (TranslatableText)

 

bindable

No

Events

·        onAction
This property assigns the action that is executed when the user selects MenuActionItem element.

Methods in the Web Dynpro IWDMenuActionItem API

Method Name

Parameter

Return Value

Short Description

bindEnabled

(String path)

 

Binds the value of the enabled property to the context element specified by the path.

bindImageSource

(String path)

 

Binds the value of the imageSource property to the context element specified by the path.

bindingOfEnabled

 

String

Returns the path of the context element to which the enabled property is bound. Returns NULL if no binding exists.

bindingOfImageSource

 

String

Returns the path of the context element to which the imageSource property is bound. Returns NULL if no binding exists.

bindingOfText

 

String

Returns the path of the context element to which the text property is bound. Returns NULL if no binding exists.

bindText

(String path)

 

Binds the text property to the context node specified by a path.

getEnabled

 

boolean

Returns the value of the enabled property.

getImageSource

 

String

Returns the value of the imageSource property.

getOnAction

 

IWDAction

Returns the action that is executed when the onAction event is triggered.

getText

 

String

Returns the value of the text property.

mappingOfOnAction

 

IWDParameterMapping

Returns the parameter mapping for the onAction action.

setEnabled

(boolean value)

 

Sets the value of the enabled property.

setImageSource

(String value)

 

Sets the value of the imageSource property.

setOnAction

(IWDAction action)

 

Sets the action that is executed if the onAction event is raised.

setText

(String value)

 

Sets the value of the text property.

Additional methods described in the following APIs are available using inheritance: IWDViewElement.

Note

For detailed documentation of all inherited methods, see the documentation for the relevant APIs.

  

  

 

Leaving content frame