|
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.TextView
A TextView is a simple text that supports several designs.
| Field Summary | |
static String |
UI_ID
|
| Constructor Summary | |
TextView()
|
|
TextView(String text)
|
|
| Method Summary | |
TextViewDesign |
getDesign()
gets the design to be used for rendering this TextView. |
HorizontalTextAlignment |
getHAlign()
gets the alignment to be used for rendering this TextView. |
HoverMenu |
getHoverMenu()
returns the hover menu which should be displayed as mouse moves over the text |
TextViewLayout |
getLayout()
|
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 |
isEncode()
check if text should be encoded (default) or treated as native HTML. |
boolean |
isLabeled()
is labled |
boolean |
isNested()
|
boolean |
isRequired()
check if this TextView indicates that an InputField is required. |
boolean |
isWrapping()
determines if wrapping is allowed for this TextView. |
void |
removerHoverMenu(HoverMenu menu)
|
boolean |
requiresForm()
check if a special component really requires a form around it. |
void |
setDesign(TextViewDesign design)
set the design to be used for rendering this TextView. |
void |
setEncode(boolean encode)
|
void |
setHAlign(HorizontalTextAlignment align)
set the aligment to be used for rendering this TextView. |
void |
setHoverMenu(HoverMenu hoverMenu)
sets the hove menu which should be displayed as mouse moves over the text |
void |
setLabeled(boolean isLabeled)
set labled |
void |
setLayout(TextViewLayout layout)
sets the Layout of the TextView. |
void |
setNested(boolean nested)
|
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 |
setWidth(String width)
set the width of the input field |
void |
setWrapping(boolean wrapping)
sets if wrapping is allowed for this TextView. |
| 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, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
| Constructor Detail |
public TextView()
public TextView(String text)
| Method Detail |
public String getUI()
Component
getUI in class Componentpublic String getText()
public void setText(String text)
public TextViewLayout getLayout()
public boolean isEncode()
public void setEncode(boolean encode)
public String getTooltip()
public void setTooltip(String tooltip)
tooltip - the tooltip textpublic void setLayout(TextViewLayout layout)
layout - public TextViewDesign getDesign()
public void setDesign(TextViewDesign design)
design - the design for this TextView.public boolean isRequired()
Labelpublic void setRequired(boolean required)
required - true, if the TextView should indicate a required field.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 HoverMenu getHoverMenu()
public void setHoverMenu(HoverMenu hoverMenu)
public void setLabeled(boolean isLabeled)
setLabeled in interface LabeledComponentpublic boolean isLabeled()
isLabeled in interface LabeledComponentpublic void removerHoverMenu(HoverMenu menu)
public HorizontalTextAlignment getHAlign()
public void setHAlign(HorizontalTextAlignment align)
align - the design for this TextView.public void setNested(boolean nested)
public boolean isNested()
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 | |||||||||