|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro Label API. Label is used to carry the labelling text for another UI element.
Data binding:
The labelFor property must contain the ID of another UI element
in the view. The displayed text is given by the text property or
is automatically derived from the labeled component.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
| Field Summary | |
static WDLabelDesign |
DEFAULT_DESIGN
Default value of property design. |
static java.lang.String |
DEFAULT_LABEL_FOR
Default value of property labelFor. |
static java.lang.String |
DEFAULT_TEXT
Default value of property text. |
static WDTextDirection |
DEFAULT_TEXT_DIRECTION
Default value of property textDirection. |
static java.lang.String |
DEFAULT_WIDTH
Default value of property width. |
static boolean |
DEFAULT_WRAPPING
Default value of property wrapping. |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
bindDesign(IWDAttributeInfo attributeInfo)
Binds property design to the context attribute
specified by the given attribute info. |
void |
bindDesign(java.lang.String path)
Binds property design to the context attribute
specified by path. |
java.lang.String |
bindingOfDesign()
Binding path of property design. |
java.lang.String |
bindingOfText()
Binding path of property text. |
java.lang.String |
bindingOfTextDirection()
Binding path of property textDirection. |
java.lang.String |
bindingOfWidth()
Binding path of property width. |
java.lang.String |
bindingOfWrapping()
Binding path of property wrapping. |
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. |
void |
bindWidth(IWDAttributeInfo attributeInfo)
Binds property width to the context attribute
specified by the given attribute info. |
void |
bindWidth(java.lang.String path)
Binds property width to the context attribute
specified by path. |
void |
bindWrapping(IWDAttributeInfo attributeInfo)
Binds property wrapping to the context attribute
specified by the given attribute info. |
void |
bindWrapping(java.lang.String path)
Binds property wrapping to the context attribute
specified by path. |
WDLabelDesign |
getDesign()
Returns the value of the design property. |
java.lang.String |
getLabelFor()
Returns the value of the labelFor property. |
java.lang.String |
getText()
Returns the value of the text property. |
WDTextDirection |
getTextDirection()
Returns the value of the textDirection property. |
java.lang.String |
getWidth()
Returns the value of the width property. |
boolean |
getWrapping()
Returns the value of the wrapping property. |
void |
setDesign(WDLabelDesign value)
Sets property design to the new value. |
void |
setLabelFor(java.lang.String labelFor)
Sets property labelFor to the given 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. |
void |
setWidth(java.lang.String value)
Sets property width to the new value. |
void |
setWrapping(boolean value)
Sets property wrapping 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 WDLabelDesign DEFAULT_DESIGN
design.public static final java.lang.String DEFAULT_LABEL_FOR
labelFor.public static final java.lang.String DEFAULT_TEXT
text.public static final WDTextDirection DEFAULT_TEXT_DIRECTION
textDirection.public static final java.lang.String DEFAULT_WIDTH
width.public static final boolean DEFAULT_WRAPPING
wrapping.| Method Detail |
public void bindDesign(java.lang.String path)
design to the context attribute
specified by path.path - the path of the context attribute to which the design
property is boundpublic void bindDesign(IWDAttributeInfo attributeInfo)
design to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
design property is boundpublic java.lang.String bindingOfDesign()
design.public WDLabelDesign getDesign()
design property.
The initial value is WDLabelDesign.STANDARD.
Determines the design of the label.setDesign(WDLabelDesign)public void setDesign(WDLabelDesign value)
design to the new value.value - the new value of the design propertygetDesign()public java.lang.String getLabelFor()
labelFor property.
The initial value is "".
Determines the ID of the labelled component.setLabelFor(String)public void setLabelFor(java.lang.String labelFor)
labelFor to the given value.labelFor - the new labelFor valuegetLabelFor()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 null.
Determines the label text. If not set the label retrieves its text from the labelled component.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()public void bindWidth(java.lang.String path)
width to the context attribute
specified by path.path - the path of the context attribute to which the width
property is boundpublic void bindWidth(IWDAttributeInfo attributeInfo)
width to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
width property is boundpublic java.lang.String bindingOfWidth()
width.public java.lang.String getWidth()
width property.
The initial value is "".
The width (CSS size) of the Label.setWidth(String)public void setWidth(java.lang.String value)
width to the new value.value - the new value of the width propertygetWidth()public void bindWrapping(java.lang.String path)
wrapping to the context attribute
specified by path.path - the path of the context attribute to which the wrapping
property is boundpublic void bindWrapping(IWDAttributeInfo attributeInfo)
wrapping to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
wrapping property is boundpublic java.lang.String bindingOfWrapping()
wrapping.public boolean getWrapping()
wrapping property.
The initial value is false.
Determines if the label wraps its text.setWrapping(boolean)public void setWrapping(boolean value)
wrapping to the new value.value - the new value of the wrapping propertygetWrapping()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||