public final class TextFieldBuilder
extends java.lang.Object
| Constructor and Description | 
|---|
TextFieldBuilder()  | 
| Modifier and Type | Method and Description | 
|---|---|
BuiltTextField | 
build()
Construct a text field according to the previously given specifications 
 | 
void | 
setColumns(int columns)
Set the number of characters wide the text field should be 
 | 
void | 
setCompletion(java.util.Collection<java.lang.String> completions)
Supply strings that will be used to populate a helper popup to aid the user
 to complete the text field entry 
 | 
void | 
setCompletion(CompletionProvider completionProvider)
Supply a completion provider to populate a popup that helps the user
 complete the text field entry 
 | 
void | 
setEditable(boolean editable)
Set whether the text field is editable 
 | 
void | 
setEnabled(boolean enabled)
set whether the text field is enabled 
 | 
void | 
setExpands(boolean expands)
Set whether the field will expand when it has focus to display text that is
 too large for its regular size. 
 | 
void | 
setHint(java.lang.String hint)
Set a hint that appears below the text field 
 | 
void | 
setLabel(java.lang.String label)
Tell the builder to build a label for the text field with the given string
 This is more useful that constructing a label separately as the label should
 enable and disable in sync with the field. 
 | 
void | 
setPrompt(java.lang.String prompt)
Set a prompt that appears in the field when it is empty as an indicator
 of what to enter, or the purpose of the field (e.g. 
 | 
void | 
setText(java.lang.String text)  | 
public BuiltTextField build()
public void setText(java.lang.String text)
text - the initial text in the fieldpublic void setLabel(java.lang.String label)
If building a form type layout then the label can be extracted via builtComponent.getLabel() and added to the form in the correctly aligned position.
label - the label for the fieldpublic void setHint(java.lang.String hint)
hint - public void setPrompt(java.lang.String prompt)
prompt - public void setExpands(boolean expands)
expands - public void setEditable(boolean editable)
editable - public void setEnabled(boolean enabled)
enabled - public void setColumns(int columns)
columns - public void setCompletion(CompletionProvider completionProvider)
completionProvider - public void setCompletion(java.util.Collection<java.lang.String> completions)
completions - a collection of completions for the popup