|
||||||||||
| 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.TextField
public class TextField
The class TextField is the GWT wrapper
for the Phoenix control: sap.ui.commons.TextField.
Control is used to enter text.
| Constructor Summary | |
|---|---|
protected |
TextField()
constructs the class TextFieldhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
TextField |
attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the text in the field has changed AND the focus leaves the TextField or the Enter key is pressed. |
TextField |
bindValue(String path)
Binder for property value. |
TextField |
bindValue(String path,
com.sap.ui.core.client.Formatter formatter)
Binder for property value. |
static TextField |
create()
creates a new instance of the class TextField |
static TextField |
create(String idOrConfig)
creates a new instance of the class TextField |
static TextField |
create(String id,
String config)
creates a new instance of the class TextField |
TextField |
detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the text in the field has changed AND the focus leaves the TextField or the Enter key is pressed. |
void |
focus()
Puts the focus to this control. |
String |
getAccessibleDescription()
Getter for property accessibleDescription
Accessibility description for the text field. |
String |
getAccessibleName()
Getter for property accessibleName
Accessibility name for the text field. |
com.sap.ui.core.client.AccessibleRole |
getAccessibleRole()
Getter for property accessibleRole
Accessibility role for the text field. |
com.sap.ui.core.client.Design |
getDesign()
Getter for property design
Font type. |
String |
getHelpId()
Getter for property helpId
Unique identifier used for help service. |
com.sap.ui.core.client.ImeMode |
getImeMode()
Getter for property imeMode
State of the Input Method Editor (IME). |
int |
getMaxLength()
Getter for property maxLength
Maximum number of characters. |
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
Direction of the text. |
String |
getValue()
Getter for property value
Text inside the textfield |
com.sap.ui.core.client.ValueState |
getValueState()
Getter for property valueState
Visualizes warnings or errors related to the text field. |
String |
getWidth()
Getter for property width
Width of text field. |
boolean |
isEditable()
Getter for property editable
Switches edit state of the control. |
boolean |
isEnabled()
Getter for property enabled
Switches enabled state of the control. |
boolean |
isRequired()
Getter for property required
Depending on theme the TextField is shown as required. |
boolean |
isVisible()
Getter for property visible
Invisible controls are not rendered. |
TextField |
setAccessibleDescription(String value)
Setter for property accessibleDescriptionDefault value is: '' |
TextField |
setAccessibleName(String value)
Setter for property accessibleNameDefault value is: '' |
TextField |
setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
Setter for property accessibleRoleDefault value is: Textbox |
TextField |
setDesign(com.sap.ui.core.client.Design value)
Setter for property designDefault value is: Standard |
TextField |
setEditable(boolean value)
Setter for property editableDefault value is: true |
TextField |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
TextField |
setHelpId(String value)
Setter for property helpIdDefault value is: '' |
TextField |
setImeMode(com.sap.ui.core.client.ImeMode value)
Setter for property imeModeDefault value is: Auto |
TextField |
setMaxLength(int value)
Setter for property maxLengthDefault value is: 0 |
TextField |
setRequired(boolean value)
Setter for property requiredDefault value is: false |
TextField |
setTextAlign(com.sap.ui.core.client.TextAlign value)
Setter for property textAlignDefault value is: Begin |
TextField |
setTextDirection(com.sap.ui.core.client.TextDirection value)
Setter for property textDirectionDefault value is: Inherit |
TextField |
setValue(String value)
Setter for property valueDefault value is: '' |
TextField |
setValueState(com.sap.ui.core.client.ValueState value)
Setter for property valueStateDefault value is: None |
TextField |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
TextField |
setWidth(String value)
Setter for property width |
TextField |
unbindValue()
Unbinder for property value. |
| 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 TextField()
TextFieldJavaScriptObject restriction
| Method Detail |
|---|
public static TextField create()
TextField
public static TextField create(String idOrConfig)
TextField
id - id of the TextField or configuration JSON string
public static TextField create(String id,
String config)
TextField
id - id of the TextFieldconfig - configuration JSON stringpublic final String getValue()
value
Text inside the textfield
public final TextField setValue(String value)
value''
value - String
this to allow method chainingpublic final TextField bindValue(String path)
value.
path - path to a property in the model
this to allow method chaining
public final TextField bindValue(String path,
com.sap.ui.core.client.Formatter formatter)
value.
path - path to a property in the modelformatter - an optional Formatter function for the value
this to allow method chainingpublic final TextField unbindValue()
value.
this to allow method chainingpublic final com.sap.ui.core.client.TextDirection getTextDirection()
textDirection
Direction of the text. Possible values: rtl, ltr.
public final TextField setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionInherit
value - com.sap.ui.core.client.TextDirection
this to allow method chainingpublic final boolean isEnabled()
enabled
Switches enabled state of the control. Disabled fields have different colors, and can not be focused.
public final TextField setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isEditable()
editable
Switches edit state of the control. Read-only fields have different colors, depending on customer setting.
public final TextField setEditable(boolean value)
editabletrue
value - boolean
this to allow method chainingpublic final boolean isVisible()
visible
Invisible controls are not rendered.
public final TextField setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final boolean isRequired()
required
Depending on theme the TextField is shown as required.
public final TextField setRequired(boolean value)
requiredfalse
value - boolean
this to allow method chainingpublic final String getWidth()
width
Width of text field. When it is set (CSS-size such as % or px), this is the exact size. When left blank, the text field length defines the width.
public final TextField setWidth(String value)
width
value - String
this to allow method chainingpublic final int getMaxLength()
maxLength
Maximum number of characters. Value '0' means the feature is switched off.
public final TextField setMaxLength(int value)
maxLength0
value - int
this to allow method chainingpublic final com.sap.ui.core.client.ValueState getValueState()
valueState
Visualizes warnings or errors related to the text field. Possible values: Warning, Error, Success.
public final TextField setValueState(com.sap.ui.core.client.ValueState value)
valueStateNone
value - com.sap.ui.core.client.ValueState
this to allow method chainingpublic final com.sap.ui.core.client.TextAlign getTextAlign()
textAlign
Sets the horizontal alignment of the text.
public final TextField setTextAlign(com.sap.ui.core.client.TextAlign value)
textAlignBegin
value - com.sap.ui.core.client.TextAlign
this to allow method chainingpublic final com.sap.ui.core.client.ImeMode getImeMode()
imeMode
State of the Input Method Editor (IME).
public final TextField setImeMode(com.sap.ui.core.client.ImeMode value)
imeModeAuto
value - com.sap.ui.core.client.ImeMode
this to allow method chainingpublic final com.sap.ui.core.client.Design getDesign()
design
Font type. Standard, Monospace
public final TextField setDesign(com.sap.ui.core.client.Design value)
designStandard
value - com.sap.ui.core.client.Design
this to allow method chainingpublic final String getHelpId()
helpId
Unique identifier used for help service.
public final TextField setHelpId(String value)
helpId''
value - String
this to allow method chainingpublic final com.sap.ui.core.client.AccessibleRole getAccessibleRole()
accessibleRole
Accessibility role for the text field.
public final TextField setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
accessibleRoleTextbox
value - com.sap.ui.core.client.AccessibleRole
this to allow method chainingpublic final String getAccessibleDescription()
accessibleDescription
Accessibility description for the text field.
public final TextField setAccessibleDescription(String value)
accessibleDescription''
value - String
this to allow method chainingpublic final String getAccessibleName()
accessibleName
Accessibility name for the text field.
public final TextField setAccessibleName(String value)
accessibleName''
value - String
this to allow method chainingpublic final TextField attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the text in the field has changed AND the focus leaves the TextField or the Enter key is pressed.
listener - reference to the EventListener
this to allow method chainingpublic final TextField detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the text in the field has changed AND the focus leaves the TextField or the Enter key is pressed.
listener - reference to the EventListener
this to allow method chainingpublic final void focus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||