Package com.vaadin.flow.component.html
Enum Class NativeButton.Type
- All Implemented Interfaces:
Serializable,Comparable<NativeButton.Type>,Constable
- Enclosing class:
NativeButton
What the button does when it is activated inside a
NativeForm.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the attribute value as it appears in the rendered HTML.static NativeButton.TypeReturns the enum constant of this class with the specified name.static NativeButton.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUBMIT
Submits the form. This is what the browser does when no type is set. -
RESET
Resets the fields of the form to their initial values. -
BUTTON
Does nothing in the form, so that only click listeners run.
-
-
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
Returns the attribute value as it appears in the rendered HTML.- Returns:
- the
typeattribute value
-