TextField
with no caption.
*/
public TextField() {
clear();
}
/**
* Constructs an empty TextField
with given caption.
*
* @param caption
* the caption String
for the editor.
*/
public TextField(String caption) {
this();
setCaption(caption);
}
/**
* Constructs a new TextField
with the given caption and
* initial text contents.
*
* @param caption
* the caption String
for the editor.
* @param value
* the initial text content of the editor, not {@code null}
*/
public TextField(String caption, String value) {
setValue(value);
setCaption(caption);
}
/**
* Constructs a new {@code TextField} with a value change listener. The
* listener is called when the value of this {@code TextField} is changed
* either by the user or programmatically.
*
* @param valueChangeListener
* the value change listener, not {@code null}
*/
public TextField(ValueChangeListener
* The listener is called when the value of this {@code TextField} is
* changed either by the user or programmatically.
*
* @param caption
* the caption {@code String} for the editor.
* @param valueChangeListener
* the value change listener, not {@code null}
*/
public TextField(String caption,
ValueChangeListener
* The listener is called when the value of this {@code TextField} is
* changed either by the user or programmatically.
*
* @param caption
* the caption {@code String} for the editor.
* @param value
* the initial text content of the editor, not {@code null}
* @param valueChangeListener
* the value change listener, not {@code null}
*/
public TextField(String caption, String value,
ValueChangeListener