|
||||||||||
| 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.TextFieldWidget
public class TextFieldWidget
The class TextField is the GWT wrapper
for the Phoenix control: sap.ui.commons.TextField.
Control is used to enter text.
| 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 | |
|---|---|
|
TextFieldWidget()
constructs the class TextFieldWidget |
|
TextFieldWidget(String id)
constructs the class TextFieldWidget |
protected |
TextFieldWidget(TextField control)
constructs the class TextFieldWidget |
| Method Summary | |
|---|---|
void |
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. |
void |
bindValue(String path)
Binder for property value. |
void |
bindValue(String path,
com.sap.ui.core.client.Formatter formatter)
Binder for property value. |
void |
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. |
TextField |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
setAccessibleDescription(String value)
Setter for property accessibleDescriptionDefault value is: '' |
void |
setAccessibleName(String value)
Setter for property accessibleNameDefault value is: '' |
void |
setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
Setter for property accessibleRoleDefault value is: Textbox |
void |
setDesign(com.sap.ui.core.client.Design value)
Setter for property designDefault value is: Standard |
void |
setEditable(boolean value)
Setter for property editableDefault value is: true |
void |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
void |
setHelpId(String value)
Setter for property helpIdDefault value is: '' |
void |
setImeMode(com.sap.ui.core.client.ImeMode value)
Setter for property imeModeDefault value is: Auto |
void |
setMaxLength(int value)
Setter for property maxLengthDefault value is: 0 |
void |
setRequired(boolean value)
Setter for property requiredDefault value is: false |
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 |
setValue(String value)
Setter for property valueDefault value is: '' |
void |
setValueState(com.sap.ui.core.client.ValueState value)
Setter for property valueStateDefault value is: None |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property width |
void |
unbindValue()
Unbinder for property value. |
| 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 TextFieldWidget()
TextFieldWidget
public TextFieldWidget(String id)
TextFieldWidget
id - id of the TextFieldWidgetprotected TextFieldWidget(TextField control)
TextFieldWidget
control - reference to an existing TextField| Method Detail |
|---|
public TextField getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getValue()
value
Text inside the textfield
public void setValue(String value)
value''
value - Stringpublic final void bindValue(String path)
value.
path - path to a property in the model
public final void 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 valuepublic final void unbindValue()
value.
public com.sap.ui.core.client.TextDirection getTextDirection()
textDirection
Direction of the text. Possible values: rtl, ltr.
public void setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionInherit
value - com.sap.ui.core.client.TextDirectionpublic boolean isEnabled()
enabled
Switches enabled state of the control. Disabled fields have different colors, and can not be focused.
public void setEnabled(boolean value)
enabledtrue
value - booleanpublic boolean isEditable()
editable
Switches edit state of the control. Read-only fields have different colors, depending on customer setting.
public void setEditable(boolean value)
editabletrue
value - booleanpublic boolean isVisible()
visible
Invisible controls 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 isRequired()
required
Depending on theme the TextField is shown as required.
public void setRequired(boolean value)
requiredfalse
value - booleanpublic 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 void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic int getMaxLength()
maxLength
Maximum number of characters. Value '0' means the feature is switched off.
public void setMaxLength(int value)
maxLength0
value - intpublic com.sap.ui.core.client.ValueState getValueState()
valueState
Visualizes warnings or errors related to the text field. Possible values: Warning, Error, Success.
public void setValueState(com.sap.ui.core.client.ValueState value)
valueStateNone
value - com.sap.ui.core.client.ValueStatepublic 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 com.sap.ui.core.client.ImeMode getImeMode()
imeMode
State of the Input Method Editor (IME).
public void setImeMode(com.sap.ui.core.client.ImeMode value)
imeModeAuto
value - com.sap.ui.core.client.ImeModepublic com.sap.ui.core.client.Design getDesign()
design
Font type. Standard, Monospace
public void setDesign(com.sap.ui.core.client.Design value)
designStandard
value - com.sap.ui.core.client.Designpublic String getHelpId()
helpId
Unique identifier used for help service.
public void setHelpId(String value)
helpId''
value - Stringpublic com.sap.ui.core.client.AccessibleRole getAccessibleRole()
accessibleRole
Accessibility role for the text field.
public void setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
accessibleRoleTextbox
value - com.sap.ui.core.client.AccessibleRolepublic String getAccessibleDescription()
accessibleDescription
Accessibility description for the text field.
public void setAccessibleDescription(String value)
accessibleDescription''
value - Stringpublic String getAccessibleName()
accessibleName
Accessibility name for the text field.
public void setAccessibleName(String value)
accessibleName''
value - Stringpublic void 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 EventListenerpublic void 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 EventListenerpublic void focus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||