|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.EventValidationComponent
com.sapportals.htmlb.Label
A Label is a label for an input component Copyright (c) SAP AG 2001
| Field Summary | |
static String |
UI_ID
|
| Constructor Summary | |
Label(String text)
|
|
Label(String text,
LabeledComponent field)
|
|
| Method Summary | |
TextViewDesign |
getDesign()
gets the design to be used for rendering this Label. |
String |
getLabeledComponentId()
|
LabeledComponent |
getLabelFor()
|
String |
getLabledComponentClassName()
|
String |
getText()
|
ForcedTextDirection |
getTextDirection()
Gets the text direction for the component |
String |
getTooltip()
gets the Tooltip for this TextView. |
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
String |
getWidth()
get the width of the input field |
boolean |
hasDesignBar()
|
boolean |
isEncode()
check if text should be encoded (default) or treated as native HTML. |
boolean |
isRequired()
checks if this TextView indicates that an input in the labeled field is required. |
boolean |
isValid()
checks if this Label indicates that an input in the labeled field is valid. |
boolean |
isWrapping()
determines if wrapping is allowed for this TextView. |
boolean |
requiresForm()
check if a special component really requires a form around it. |
void |
setDesign(TextViewDesign design)
sets the design to be used for rendering this Label. |
void |
setEncode(boolean encode)
|
void |
setHasDesignBar(boolean hasDesignBar)
|
void |
setLabeledComponentId(String labeledComponent)
required for JSPs. |
void |
setLabelFor(LabeledComponent labeledComponent)
|
void |
setLabledComponentClassName(String className)
|
void |
setRequired(boolean required)
sets if this TextView indicates that an InputField is required. |
void |
setText(String text)
|
void |
setTextDirection(ForcedTextDirection textDirection)
Sets the text direction for the component |
void |
setTooltip(String tooltip)
sets the Tooltip for this TextView. |
void |
setValid(boolean valid)
sets if this Label indicates that an InputField is valid. |
void |
setWidth(String width)
set the width of the input field |
void |
setWrapping(boolean wrapping)
sets if wrapping is allowed for this TextView. |
String |
toString()
|
| Methods inherited from class com.sapportals.htmlb.EventValidationComponent |
getAllValidators, getClientEvent, getClientEventMap, getErrorText, getServerEvent, getServerEventMap, getValidator, isDisabled, isEnabled, isRequiresValidation, renderJavascriptInterface, setClientEvent, setDisabled, setEnabled, setErrorText, setRequiresValidation, setServerEvent, setValidator |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String UI_ID
| Constructor Detail |
public Label(String text)
public Label(String text,
LabeledComponent field)
| Method Detail |
public String getUI()
Component
getUI in class Componentpublic String getText()
public void setText(String text)
public boolean isEncode()
public void setEncode(boolean encode)
public String getTooltip()
public void setTooltip(String tooltip)
tooltip - the tooltip textpublic TextViewDesign getDesign()
public void setDesign(TextViewDesign design)
design - the design for this Label.public LabeledComponent getLabelFor()
public void setLabelFor(LabeledComponent labeledComponent)
public void setLabeledComponentId(String labeledComponent)
public String getLabeledComponentId()
public boolean isRequired()
public void setRequired(boolean required)
required - true, if the TextView should indicate a required field.public boolean isValid()
public void setValid(boolean valid)
valid - true, if the Label should indicate a valid field.public void setHasDesignBar(boolean hasDesignBar)
public boolean hasDesignBar()
public String getWidth()
public void setWidth(String width)
width - the width of the input fieldpublic boolean isWrapping()
public void setWrapping(boolean wrapping)
wrapping - true is this TextView may wrappublic boolean requiresForm()
requiresForm in class Componentpublic String toString()
public void setLabledComponentClassName(String className)
public String getLabledComponentClassName()
public ForcedTextDirection getTextDirection()
public void setTextDirection(ForcedTextDirection textDirection)
textDirection - com.sapportals.htmlb.enum.ForcedTextDirection
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||