|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro MenuActionItem API. 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.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
| Field Summary | |
static boolean |
DEFAULT_ENABLED
Default value of property enabled. |
static java.lang.String |
DEFAULT_IMAGE_SOURCE
Default value of property imageSource. |
static java.lang.String |
DEFAULT_TEXT
Default value of property text. |
static WDTextDirection |
DEFAULT_TEXT_DIRECTION
Default value of property textDirection. |
| Method Summary | |
void |
bindEnabled(IWDAttributeInfo attributeInfo)
Binds property enabled to the context attribute
specified by the given attribute info. |
void |
bindEnabled(java.lang.String path)
Binds property enabled to the context attribute
specified by path. |
void |
bindImageSource(IWDAttributeInfo attributeInfo)
Binds property imageSource to the context attribute
specified by the given attribute info. |
void |
bindImageSource(java.lang.String path)
Binds property imageSource to the context attribute
specified by path. |
java.lang.String |
bindingOfEnabled()
Binding path of property enabled. |
java.lang.String |
bindingOfImageSource()
Binding path of property imageSource. |
java.lang.String |
bindingOfText()
Binding path of property text. |
java.lang.String |
bindingOfTextDirection()
Binding path of property textDirection. |
void |
bindText(IWDAttributeInfo attributeInfo)
Binds property text to the context attribute
specified by the given attribute info. |
void |
bindText(java.lang.String path)
Binds property text to the context attribute
specified by path. |
void |
bindTextDirection(IWDAttributeInfo attributeInfo)
Binds property textDirection to the context attribute
specified by the given attribute info. |
void |
bindTextDirection(java.lang.String path)
Binds property textDirection to the context attribute
specified by path. |
boolean |
getEnabled()
Returns the value of the enabled property. |
java.lang.String |
getImageSource()
Returns the value of the imageSource property. |
IWDAction |
getOnAction()
Returns the action to which the event onAction is mapped. |
java.lang.String |
getText()
Returns the value of the text property. |
WDTextDirection |
getTextDirection()
Returns the value of the textDirection property. |
IWDParameterMapping |
mappingOfOnAction()
Returns the parameter mapping of event onAction. |
void |
setEnabled(boolean value)
Sets property enabled to the new value. |
void |
setImageSource(java.lang.String value)
Sets property imageSource to the new value. |
void |
setOnAction(IWDAction action)
Maps the event onAction to the given action. |
void |
setText(java.lang.String value)
Sets property text to the new value. |
void |
setTextDirection(WDTextDirection value)
Sets property textDirection to the new value. |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
getId, getView, requestFocus |
| Field Detail |
public static final boolean DEFAULT_ENABLED
enabled.public static final java.lang.String DEFAULT_IMAGE_SOURCE
imageSource.public static final java.lang.String DEFAULT_TEXT
text.public static final WDTextDirection DEFAULT_TEXT_DIRECTION
textDirection.| Method Detail |
public IWDAction getOnAction()
onAction is mapped.
This property contains the action that is executed when the user selects MenuActionItem element.mappingOfOnAction()public void setOnAction(IWDAction action)
onAction to the given action.action - the action for the eventgetOnAction()public IWDParameterMapping mappingOfOnAction()
onAction.
To be accessible in a view controller, a UI element event parameter has to be mapped to a controller event handler parameter. This is done by defining a parameter mapping.
Event parameters:getOnAction()public void bindEnabled(java.lang.String path)
enabled to the context attribute
specified by path.path - the path of the context attribute to which the enabled
property is boundpublic void bindEnabled(IWDAttributeInfo attributeInfo)
enabled to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
enabled property is boundpublic java.lang.String bindingOfEnabled()
enabled.public boolean getEnabled()
enabled property.
The initial value is true.
Specifies whether the menu item is selectable.setEnabled(boolean)public void setEnabled(boolean value)
enabled to the new value.value - the new value of the enabled propertygetEnabled()public void bindImageSource(java.lang.String path)
imageSource to the context attribute
specified by path.path - the path of the context attribute to which the imageSource
property is boundpublic void bindImageSource(IWDAttributeInfo attributeInfo)
imageSource to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
imageSource property is boundpublic java.lang.String bindingOfImageSource()
imageSource.public java.lang.String getImageSource()
imageSource property.
The initial value is "".
Specifies the Web address (URL) of the graphic to be displayed.setImageSource(String)public void setImageSource(java.lang.String value)
imageSource to the new value.value - the new value of the imageSource propertygetImageSource()public void bindText(java.lang.String path)
text to the context attribute
specified by path.path - the path of the context attribute to which the text
property is boundpublic void bindText(IWDAttributeInfo attributeInfo)
text to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
text property is boundpublic java.lang.String bindingOfText()
text.public java.lang.String getText()
text property.
The initial value is "".
Describes the text to be displayed.setText(String)public void setText(java.lang.String value)
text to the new value.value - the new value of the text propertygetText()public void bindTextDirection(java.lang.String path)
textDirection to the context attribute
specified by path.path - the path of the context attribute to which the textDirection
property is boundpublic void bindTextDirection(IWDAttributeInfo attributeInfo)
textDirection to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
textDirection property is boundpublic java.lang.String bindingOfTextDirection()
textDirection.public WDTextDirection getTextDirection()
textDirection property.
The initial value is WDTextDirection.INHERIT.
Determines the direction of displayed text.setTextDirection(WDTextDirection)public void setTextDirection(WDTextDirection value)
textDirection to the new value.value - the new value of the textDirection propertygetTextDirection()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||