public enum TypeMode extends Enum<TypeMode>
Enumeration of possible type modes. Surprisingly, there are many ways to insert a text into a HTML input on a page. They differ in speed, reliability and events raised by the browser. Every element in the framework capable of inserting a text into it should document its default type mode and optionally expose methods for different type modes.
NOTE: use this facility sparingly, most of the time you should be relying on the default type mode of any element. Implementations are not obliged to honour this setting.
| Enum Constant and Description |
|---|
DEFAULT
The type target decides itself about the type mode.
|
INSERT
Simply set the value of a HTML element.
|
INSERT_WITH_EVENT
Insert all characters and invoke all events for the last typed key.
|
TYPE
Type into the component invoking all associated key events for each stroke.
|
| Modifier and Type | Method and Description |
|---|---|
static TypeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeMode DEFAULT
public static final TypeMode INSERT
public static final TypeMode INSERT_WITH_EVENT
public static final TypeMode TYPE
public static TypeMode[] values()
for (TypeMode c : TypeMode.values()) System.out.println(c);
public static TypeMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015 Atlassian. All rights reserved.