Package com.vaadin.flow.component.html
Enum Class NativeForm.Enctype
- All Implemented Interfaces:
Serializable,Comparable<NativeForm.Enctype>,Constable
- Enclosing class:
NativeForm
The encoding of the form data when the form is submitted with
NativeForm.Method.POST.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEncodes the fields asmultipart/form-data, which is needed to submit the content of an<input type="file">.Encodes the fields astext/plain.Encodes the fields asapplication/x-www-form-urlencoded. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the attribute value as it appears in the rendered HTML.static NativeForm.EnctypeReturns the enum constant of this class with the specified name.static NativeForm.Enctype[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
URLENCODED
Encodes the fields asapplication/x-www-form-urlencoded. This is what the browser does when no encoding is set. -
MULTIPART
Encodes the fields asmultipart/form-data, which is needed to submit the content of an<input type="file">. -
PLAIN
Encodes the fields astext/plain.
-
-
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
enctypeattribute value
-