Java com.vaadin.ui TextField fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.ui TextField fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.ui TextField.

The text is from its open source code.

Subclass

com.vaadin.ui.TextField has subclasses.
Click this link to see all its subclasses.

Constructor

TextField()
Constructs an empty TextField with no caption.
TextField(String caption)
Constructs an empty TextField with given caption.
TextField(ValueChangeListener 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 valueChangeListener)
Constructs a new TextField with the given caption and a value change listener.

Method

RegistrationaddBlurListener(BlurListener listener)
Adds a BlurListener to this component, which gets fired when this component loses keyboard focus.
RegistrationaddFocusListener(FocusListener listener)
Adds a FocusListener to this component, which gets fired when this component receives keyboard focus.
StringgetValue()
voidselectAll()
Selects all text in the field.
voidsetCursorPosition(int pos)
Sets the cursor position in the field.
voidsetMaxLength(int maxLength)
Sets the maximum number of characters in the field.
voidsetPlaceholder(String placeholder)
Sets the placeholder text.
voidsetValue(String value)
Sets the value of this text field.
voidsetValueChangeMode(ValueChangeMode mode)