Example usage for Java com.vaadin.ui TextField fields, constructors, methods, implement or subclass
The text is from its open source code.
TextField() Constructs an empty TextField with no caption. | |
TextField(String caption) Constructs an empty TextField with given caption. | |
TextField(ValueChangeListener Constructs a new TextField with a value change listener. | |
TextField(String caption, String value) Constructs a new TextField with the given caption and initial text contents. | |
TextField(String caption, ValueChangeListener Constructs a new TextField with the given caption and a value change listener. |
Registration | addBlurListener(BlurListener listener) Adds a BlurListener to this component, which gets fired when this component loses keyboard focus. |
Registration | addFocusListener(FocusListener listener) Adds a FocusListener to this component, which gets fired when this component receives keyboard focus. |
String | getValue() |
void | selectAll() Selects all text in the field. |
void | setCursorPosition(int pos) Sets the cursor position in the field. |
void | setMaxLength(int maxLength) Sets the maximum number of characters in the field. |
void | setPlaceholder(String placeholder) Sets the placeholder text. |
void | setValue(String value) Sets the value of this text field. |
void | setValueChangeMode(ValueChangeMode mode) |