|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro AbstractDropDownByKey API. Abstract base class of drop-down list classes with key based context binding. Represents a one-from-many selection visualized by a text field, a button and a drop-down list. The selected value is displayed in the text field, the list of all selectable values is displayed in the drop-down list which appears when the button is pressed.
Data binding:
The set of selectable keys, displayed texts and the selected key are retrieved from a context.
This context must provide an attribute y of a type having a value set.
The selectable keys of the drop-down list are the keys of this value set,
the displayed texts are the corresponding values.
The currently selected key is the current value of the attribute y.
The property selectedKey must be bound to the attribute y.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
ISimpleType,
ISimpleValueSet| Fields inherited from interface com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDAbstractDropDown |
DEFAULT_READ_ONLY, DEFAULT_STATE, DEFAULT_TEXT_DIRECTION, DEFAULT_WIDTH |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
java.lang.String |
bindingOfSelectedKey()
Note: This property must be bound to the context! Binding path of property selectedKey. |
void |
bindSelectedKey(IWDAttributeInfo attributeInfo)
Note: This property must be bound to the context! Binds property selectedKey to the context attribute
specified by the given attribute info. |
void |
bindSelectedKey(java.lang.String path)
Note: This property must be bound to the context! Binds property selectedKey to the context attribute
specified by path. |
IWDAction |
getOnSelect()
Returns the action to which the event onSelect is mapped. |
java.lang.String |
getSelectedKey()
Note: This property must be bound to the context! Returns the value of the selectedKey property. |
IWDParameterMapping |
mappingOfOnSelect()
Returns the parameter mapping of event onSelect. |
void |
setOnSelect(IWDAction action)
Maps the event onSelect to the given action. |
void |
setSelectedKey(java.lang.String value)
Note: This property must be bound to the context! Sets property selectedKey to the new value. |
| Methods inherited from interface com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDAbstractDropDown |
bindingOfReadOnly, bindingOfState, bindingOfTextDirection, bindingOfWidth, bindReadOnly, bindReadOnly, bindState, bindState, bindTextDirection, bindTextDirection, bindWidth, bindWidth, getReadOnly, getState, getTextDirection, getWidth, setReadOnly, setState, setTextDirection, setWidth |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
bindEnabled, bindEnabled, bindingOfEnabled, bindingOfTooltip, bindingOfVisible, bindTooltip, bindTooltip, bindVisible, bindVisible, createLayoutData, getContainer, getEnabled, getLayoutData, getTooltip, getVisible, setEnabled, setTooltip, setVisible |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
getId, getView, requestFocus |
| Method Detail |
public IWDAction getOnSelect()
onSelect is mapped.
The action performed when the selection of this drop-down list box is changed.
Event parameter is the key of the new selected entry.mappingOfOnSelect()public void setOnSelect(IWDAction action)
onSelect to the given action.action - the action for the eventgetOnSelect()public IWDParameterMapping mappingOfOnSelect()
onSelect.
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:getOnSelect()public void bindSelectedKey(java.lang.String path)
selectedKey to the context attribute
specified by path.path - the path of the context attribute to which the selectedKey
property is boundpublic void bindSelectedKey(IWDAttributeInfo attributeInfo)
selectedKey to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
selectedKey property is boundpublic java.lang.String bindingOfSelectedKey()
selectedKey.public java.lang.String getSelectedKey()
selectedKey property.
The initial value is "".
The key from the value set that defines the drop-down list's selection.setSelectedKey(String)public void setSelectedKey(java.lang.String value)
selectedKey to the new value.value - the new value of the selectedKey propertygetSelectedKey()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||