|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro CheckBox API.
CheckBox displays a boolean value together with a text. By checking the box the boolean value is set to true.
The property checked contains the value, text
contains the displayed text.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
| Field Summary | |
static boolean |
DEFAULT_READ_ONLY
Default value of property readOnly. |
static WDState |
DEFAULT_STATE
Default value of property state. |
static java.lang.String |
DEFAULT_TEXT
Default value of property text. |
static WDTextDirection |
DEFAULT_TEXT_DIRECTION
Default value of property textDirection. |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
bindChecked(IWDAttributeInfo attributeInfo)
Note: This property must be bound to the context! Binds property checked to the context attribute
specified by the given attribute info. |
void |
bindChecked(java.lang.String path)
Note: This property must be bound to the context! Binds property checked to the context attribute
specified by path. |
java.lang.String |
bindingOfChecked()
Note: This property must be bound to the context! Binding path of property checked. |
java.lang.String |
bindingOfReadOnly()
Binding path of property readOnly. |
java.lang.String |
bindingOfState()
Binding path of property state. |
java.lang.String |
bindingOfText()
Binding path of property text. |
java.lang.String |
bindingOfTextDirection()
Binding path of property textDirection. |
void |
bindReadOnly(IWDAttributeInfo attributeInfo)
Binds property readOnly to the context attribute
specified by the given attribute info. |
void |
bindReadOnly(java.lang.String path)
Binds property readOnly to the context attribute
specified by path. |
void |
bindState(IWDAttributeInfo attributeInfo)
Binds property state to the context attribute
specified by the given attribute info. |
void |
bindState(java.lang.String path)
Binds property state to the context attribute
specified by path. |
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 |
getChecked()
Note: This property must be bound to the context! Returns the value of the checked property. |
IWDAction |
getOnToggle()
Returns the action to which the event onToggle is mapped. |
boolean |
getReadOnly()
Returns the value of the readOnly property. |
WDState |
getState()
Returns the value of the state property. |
java.lang.String |
getText()
Returns the value of the text property. |
WDTextDirection |
getTextDirection()
Returns the value of the textDirection property. |
IWDParameterMapping |
mappingOfOnToggle()
Returns the parameter mapping of event onToggle. |
void |
setChecked(boolean value)
Note: This property must be bound to the context! Sets property checked to the new value. |
void |
setOnToggle(IWDAction action)
Maps the event onToggle to the given action. |
void |
setReadOnly(boolean value)
Sets property readOnly to the new value. |
void |
setState(WDState value)
Sets property state to the new value. |
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.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 |
| Field Detail |
public static final boolean DEFAULT_READ_ONLY
readOnly.public static final WDState DEFAULT_STATE
state.public static final java.lang.String DEFAULT_TEXT
text.public static final WDTextDirection DEFAULT_TEXT_DIRECTION
textDirection.| Method Detail |
public IWDAction getOnToggle()
onToggle is mapped.
The action performed when the check box is toggled.
The event parameter is the new checked state.mappingOfOnToggle()public void setOnToggle(IWDAction action)
onToggle to the given action.action - the action for the eventgetOnToggle()public IWDParameterMapping mappingOfOnToggle()
onToggle.
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:getOnToggle()public void bindChecked(java.lang.String path)
checked to the context attribute
specified by path.path - the path of the context attribute to which the checked
property is boundpublic void bindChecked(IWDAttributeInfo attributeInfo)
checked to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
checked property is boundpublic java.lang.String bindingOfChecked()
checked.public boolean getChecked()
checked property.
The initial value is false.
Determines if the check box is checked.setChecked(boolean)public void setChecked(boolean value)
checked to the new value.value - the new value of the checked propertygetChecked()public void bindReadOnly(java.lang.String path)
readOnly to the context attribute
specified by path.path - the path of the context attribute to which the readOnly
property is boundpublic void bindReadOnly(IWDAttributeInfo attributeInfo)
readOnly to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
readOnly property is boundpublic java.lang.String bindingOfReadOnly()
readOnly.public boolean getReadOnly()
readOnly property.
The initial value is false.
Controls whether the check box may be toggled.setReadOnly(boolean)public void setReadOnly(boolean value)
readOnly to the new value.value - the new value of the readOnly propertygetReadOnly()public void bindState(java.lang.String path)
state to the context attribute
specified by path.path - the path of the context attribute to which the state
property is boundpublic void bindState(IWDAttributeInfo attributeInfo)
state to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
state property is boundpublic java.lang.String bindingOfState()
state.public WDState getState()
state property.
The initial value is WDState.NORMAL.
The state of the check box.setState(WDState)public void setState(WDState value)
state to the new value.value - the new value of the state propertygetState()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 "".
The text displayed in the check box.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 | |||||||||