Enum Class InputElement.InputType
- All Implemented Interfaces:
Serializable
,Comparable<InputElement.InputType>
,Constable
- Enclosing interface:
InputElement
Input element type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNumber input, validated beforehand when entered by a player, however calling theInputElement.setValue(String)
method can skip validation.Password text, when rendered, all characters will be replaced with the*
character.Regular text input -
Method Summary
Modifier and TypeMethodDescriptionGet the keyword used to represent the input typestatic InputElement.InputType
Returns the enum constant of this class with the specified name.static InputElement.InputType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT
Regular text input -
PASSWORD
Password text, when rendered, all characters will be replaced with the*
character. -
NUMBER
Number input, validated beforehand when entered by a player, however calling theInputElement.setValue(String)
method can skip validation.
-
-
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
-
getKeyword
Get the keyword used to represent the input type- Returns:
- Input type keyword
-