|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.TextView
public class TextView
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.
| Constructor Summary | |
|---|---|
protected |
TextView()
constructs the class TextViewhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
TextView |
bindText(String path)
Binder for property text. |
TextView |
bindText(String path,
com.sap.ui.core.client.Formatter formatter)
Binder for property text. |
static TextView |
create()
creates a new instance of the class TextView |
static TextView |
create(String idOrConfig)
creates a new instance of the class TextView |
static TextView |
create(String id,
String config)
creates a new instance of the class TextView |
com.sap.ui.core.client.AccessibleRole |
getAccessibleRole()
Getter for property accessibleRole
The ARIA role for the 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. |
TextView |
setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
Setter for property accessibleRoleDefault value is: Document |
TextView |
setDesign(TextViewDesign value)
Setter for property designDefault value is: Standard |
TextView |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
TextView |
setHelpId(String value)
Setter for property helpIdDefault value is: '' |
TextView |
setSemanticColor(TextViewColor value)
Setter for property semanticColorDefault value is: Default |
TextView |
setText(String value)
Setter for property textDefault value is: '' |
TextView |
setTextAlign(com.sap.ui.core.client.TextAlign value)
Setter for property textAlignDefault value is: Begin |
TextView |
setTextDirection(com.sap.ui.core.client.TextDirection value)
Setter for property textDirectionDefault value is: Inherit |
TextView |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
TextView |
setWidth(String value)
Setter for property width |
TextView |
setWrapping(boolean value)
Setter for property wrappingDefault value is: true |
TextView |
unbindText()
Unbinder for property text. |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected TextView()
TextViewJavaScriptObject restriction
| Method Detail |
|---|
public static TextView create()
TextView
public static TextView create(String idOrConfig)
TextView
id - id of the TextView or configuration JSON string
public static TextView create(String id,
String config)
TextView
id - id of the TextViewconfig - configuration JSON stringpublic final String getText()
text
Text to be displayed.
public final TextView setText(String value)
text''
value - String
this to allow method chainingpublic final TextView bindText(String path)
text.
path - path to a property in the model
this to allow method chaining
public final TextView 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 value
this to allow method chainingpublic final TextView unbindText()
text.
this to allow method chainingpublic final 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 final TextView setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionInherit
value - com.sap.ui.core.client.TextDirection
this to allow method chainingpublic final boolean isVisible()
visible
Invisible text views are not rendered.
public final TextView setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final boolean isEnabled()
enabled
When the control is disabled, it is greyed out and no longer focusable.
public final TextView setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final String getHelpId()
helpId
Unique identifier used for help services.
public final TextView setHelpId(String value)
helpId''
value - String
this to allow method chainingpublic final com.sap.ui.core.client.AccessibleRole getAccessibleRole()
accessibleRole
The ARIA role for the control.
public final TextView setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
accessibleRoleDocument
value - com.sap.ui.core.client.AccessibleRole
this to allow method chainingpublic final TextViewDesign getDesign()
design
Defines the visual appearance of the control.
public final TextView setDesign(TextViewDesign value)
designStandard
value - com.sap.ui.commons.client.TextViewDesign
this to allow method chainingpublic final boolean isWrapping()
wrapping
Disabled automatic wrapping of the text.
public final TextView setWrapping(boolean value)
wrappingtrue
value - boolean
this to allow method chainingpublic final TextViewColor getSemanticColor()
semanticColor
Semantic color of the text View
public final TextView setSemanticColor(TextViewColor value)
semanticColorDefault
value - com.sap.ui.commons.client.TextViewColor
this to allow method chainingpublic final com.sap.ui.core.client.TextAlign getTextAlign()
textAlign
Sets the horizontal alignment of the text.
public final TextView setTextAlign(com.sap.ui.core.client.TextAlign value)
textAlignBegin
value - com.sap.ui.core.client.TextAlign
this to allow method chainingpublic final String getWidth()
width
Width of the TextView
public final TextView setWidth(String value)
width
value - String
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||