public enum EditTextStateUpdatePolicy extends java.lang.Enum<EditTextStateUpdatePolicy>
| Enum Constant and Description |
|---|
NO_UPDATES
No updates are performed
|
ONLY_LAZY_UPDATES
lazyUpdateInput() is called every time text changes, thus allowing to preserve input
state during layout recalculations |
UPDATE_ON_LINE_COUNT_CHANGE
Expands ONLY_LAZY_UPDATES by calling
updateInput() when line count changes, which
triggers re-layout |
UPDATE_ON_TEXT_CHANGE
updateInput() is called every time text changes, thus every change leads to
recalculating layout |
| Modifier and Type | Method and Description |
|---|---|
static EditTextStateUpdatePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EditTextStateUpdatePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EditTextStateUpdatePolicy NO_UPDATES
public static final EditTextStateUpdatePolicy ONLY_LAZY_UPDATES
lazyUpdateInput() is called every time text changes, thus allowing to preserve input
state during layout recalculationspublic static final EditTextStateUpdatePolicy UPDATE_ON_LINE_COUNT_CHANGE
updateInput() when line count changes, which
triggers re-layoutpublic static final EditTextStateUpdatePolicy UPDATE_ON_TEXT_CHANGE
updateInput() is called every time text changes, thus every change leads to
recalculating layoutpublic static EditTextStateUpdatePolicy[] values()
for (EditTextStateUpdatePolicy c : EditTextStateUpdatePolicy.values()) System.out.println(c);
public static EditTextStateUpdatePolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null