|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.TextViewWidget
public class TextViewWidget
The class TextView is the GWT wrapper
for the Phoenix control: sap.ui.commons.TextView.
Is used to display some continous text. The control can inherit the text direction from its parent control.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
TextViewWidget()
constructs the class TextViewWidget |
|
TextViewWidget(String id)
constructs the class TextViewWidget |
protected |
TextViewWidget(TextView control)
constructs the class TextViewWidget |
| Method Summary | |
|---|---|
void |
bindText(String path)
Binder for property text. |
void |
bindText(String path,
com.sap.ui.core.client.Formatter formatter)
Binder for property text. |
com.sap.ui.core.client.AccessibleRole |
getAccessibleRole()
Getter for property accessibleRole
The ARIA role for the control. |
TextView |
getControl()
returns the reference to the Phoenix Control |
TextViewDesign |
getDesign()
Getter for property design
Defines the visual appearance of the control. |
String |
getHelpId()
Getter for property helpId
Unique identifier used for help services. |
TextViewColor |
getSemanticColor()
Getter for property semanticColor
Semantic color of the text View |
String |
getText()
Getter for property text
Text to be displayed. |
com.sap.ui.core.client.TextAlign |
getTextAlign()
Getter for property textAlign
Sets the horizontal alignment of the text. |
com.sap.ui.core.client.TextDirection |
getTextDirection()
Getter for property textDirection
Available options are LTR and RTL. |
String |
getWidth()
Getter for property width
Width of the TextView |
boolean |
isEnabled()
Getter for property enabled
When the control is disabled, it is greyed out and no longer focusable. |
boolean |
isVisible()
Getter for property visible
Invisible text views are not rendered. |
boolean |
isWrapping()
Getter for property wrapping
Disabled automatic wrapping of the text. |
void |
setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
Setter for property accessibleRoleDefault value is: Document |
void |
setDesign(TextViewDesign value)
Setter for property designDefault value is: Standard |
void |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
void |
setHelpId(String value)
Setter for property helpIdDefault value is: '' |
void |
setSemanticColor(TextViewColor value)
Setter for property semanticColorDefault value is: Default |
void |
setText(String value)
Setter for property textDefault value is: '' |
void |
setTextAlign(com.sap.ui.core.client.TextAlign value)
Setter for property textAlignDefault value is: Begin |
void |
setTextDirection(com.sap.ui.core.client.TextDirection value)
Setter for property textDirectionDefault value is: Inherit |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property width |
void |
setWrapping(boolean value)
Setter for property wrappingDefault value is: true |
void |
unbindText()
Unbinder for property text. |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextViewWidget()
TextViewWidget
public TextViewWidget(String id)
TextViewWidget
id - id of the TextViewWidgetprotected TextViewWidget(TextView control)
TextViewWidget
control - reference to an existing TextView| Method Detail |
|---|
public TextView getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getText()
text
Text to be displayed.
public void setText(String value)
text''
value - Stringpublic final void bindText(String path)
text.
path - path to a property in the model
public final void bindText(String path,
com.sap.ui.core.client.Formatter formatter)
text.
path - path to a property in the modelformatter - an optional Formatter function for the valuepublic final void unbindText()
text.
public com.sap.ui.core.client.TextDirection getTextDirection()
textDirection
Available options are LTR and RTL. Alternatively, the control can inherit the text direction from its parent control.
public void setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionInherit
value - com.sap.ui.core.client.TextDirectionpublic boolean isVisible()
visible
Invisible text views are not rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic boolean isEnabled()
enabled
When the control is disabled, it is greyed out and no longer focusable.
public void setEnabled(boolean value)
enabledtrue
value - booleanpublic String getHelpId()
helpId
Unique identifier used for help services.
public void setHelpId(String value)
helpId''
value - Stringpublic com.sap.ui.core.client.AccessibleRole getAccessibleRole()
accessibleRole
The ARIA role for the control.
public void setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
accessibleRoleDocument
value - com.sap.ui.core.client.AccessibleRolepublic TextViewDesign getDesign()
design
Defines the visual appearance of the control.
public void setDesign(TextViewDesign value)
designStandard
value - com.sap.ui.commons.client.TextViewDesignpublic boolean isWrapping()
wrapping
Disabled automatic wrapping of the text.
public void setWrapping(boolean value)
wrappingtrue
value - booleanpublic TextViewColor getSemanticColor()
semanticColor
Semantic color of the text View
public void setSemanticColor(TextViewColor value)
semanticColorDefault
value - com.sap.ui.commons.client.TextViewColorpublic com.sap.ui.core.client.TextAlign getTextAlign()
textAlign
Sets the horizontal alignment of the text.
public void setTextAlign(com.sap.ui.core.client.TextAlign value)
textAlignBegin
value - com.sap.ui.core.client.TextAlignpublic String getWidth()
width
Width of the TextView
public void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||