Entering content frame

Object documentation Web Dynpro AbstractButton API - IWDAbstractButton Locate the document in its SAP Library structure

Definition

The AbstractButton class which implements the IWDAbstractButton interface, is the abstract base class of buttons. It inherits the ability to display an icon from its base class AbstractCaption and adds the ability to display a text on the pushbutton and trigger an action. A pushbutton is activated when the action bound to it is activated. Subordinate interfaces such as pushbuttons inherit the propertiese of this interface.

Description of UI Element Properties

·        text
Describes the label text of the Button UI element.

Overview of Inherited and Additional Properties

Name

Interface

Type

Initial Value

Bindable

Value Required

enabled

IWDUIElement

boolean

true

bindable

No

imageAlt

IWDAbstractCaption

String

 

bindable

No

imageFirst

IWDAbstractCaption

boolean

true

bindable

No

imageSource

IWDAbstractCaption

String

 

bindable

No

text

IWDAbstractButton

String

 

bindable

No

tooltip

IWDUIElement

String

 

bindable

No

visible

IWDUIElement

WDVisibility

visible

bindable

No

Events

·         onAction
This property can assign the action to be executed when the user presses the button.

Subordinated Interfaces

IWDButton

Methods in the Web Dynpro IWDAbstractButton API

Method Name

Parameter

Return Value

Short Description

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.

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.

setOnAction

(IWDAction action)

 

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

setText

(String text)

 

Sets the value of the text property.

 

Superinterfaces: IWDAbstractCaption, IWDUIElement, IWDViewElement.

  

  

 

Leaving content frame