public class TextEntryDialog
extends java.lang.Object
setValidator(Predicate\)
to provide a validating
function, which will allow the dialog to call setError
on the underlying text view if the entered text is invalid. The default
validator returns true
for every non-null string.
Use setInputType(int)
with Android's InputType constants
to dictate what type of soft keyboard gets shown when the text view gains focus.
Use subscribe(TextEntryEventListener)
to listen for the
event emitted by this dialog.Modifier and Type | Class and Description |
---|---|
static interface |
TextEntryDialog.Predicate<T>
A Predicate can determine a true or false value for any input of its
parameterized type.
|
static class |
TextEntryDialog.TextEntryEvent |
static interface |
TextEntryDialog.TextEntryEventListener |
Constructor and Description |
---|
TextEntryDialog(java.lang.String initialValue) |
Modifier and Type | Method and Description |
---|---|
TextEntryDialog |
setErrorMessage(java.lang.String message) |
TextEntryDialog |
setHint(java.lang.String hint) |
TextEntryDialog |
setInputFilter(android.text.InputFilter[] filters) |
TextEntryDialog |
setInputType(int inputType) |
TextEntryDialog |
setMessage(java.lang.String message) |
TextEntryDialog |
setTitle(java.lang.String title) |
TextEntryDialog |
setValidator(TextEntryDialog.Predicate<java.lang.String> validator) |
void |
show() |
TextEntryDialog |
subscribe(TextEntryDialog.TextEntryEventListener observer) |
public TextEntryDialog setTitle(java.lang.String title)
public TextEntryDialog setMessage(java.lang.String message)
public TextEntryDialog setErrorMessage(java.lang.String message)
public TextEntryDialog setHint(java.lang.String hint)
public TextEntryDialog setValidator(TextEntryDialog.Predicate<java.lang.String> validator)
public TextEntryDialog subscribe(TextEntryDialog.TextEntryEventListener observer)
public TextEntryDialog setInputType(int inputType)
public TextEntryDialog setInputFilter(android.text.InputFilter[] filters)
public void show()