Package com.vaadin.flow.component
Enum Class InputMode
- All Implemented Interfaces:
Serializable,Comparable<InputMode>,Constable
Virtual keyboard hints for the
inputmode attribute. They tell the
browser which type of virtual keyboard to display when the user interacts
with the field on a mobile device.- Since:
- 25.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFractional numeric input keyboard that includes the digits and the decimal separator for the user's locale.Virtual keyboard optimized for entering email addresses.No virtual keyboard.Numeric input keyboard that only requires the digits 0–9.Virtual keyboard optimized for search input.Telephone keypad input, including the digits 0–9, the asterisk (*), and the pound (#) key.Standard text input keyboard for the user's current locale.Virtual keyboard optimized for entering URLs. -
Method Summary
-
Enum Constant Details
-
NONE
No virtual keyboard. Useful when the field implements its own keyboard input control. -
TEXT
Standard text input keyboard for the user's current locale. -
DECIMAL
Fractional numeric input keyboard that includes the digits and the decimal separator for the user's locale. -
NUMERIC
Numeric input keyboard that only requires the digits 0–9. -
TEL
Telephone keypad input, including the digits 0–9, the asterisk (*), and the pound (#) key. -
SEARCH
Virtual keyboard optimized for search input. -
EMAIL
Virtual keyboard optimized for entering email addresses. -
URL
Virtual keyboard optimized for entering URLs.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Gets theinputmodeattribute value.- Returns:
- the
inputmodeattribute value
-