Package com.helger.html.hc.html.forms
Enum EHCInputType
- java.lang.Object
-
- java.lang.Enum<EHCInputType>
-
- com.helger.html.hc.html.forms.EHCInputType
-
- All Implemented Interfaces:
IHCHasHTMLAttributeValue,com.helger.xml.microdom.IHasAttributeValue,Serializable,Comparable<EHCInputType>
public enum EHCInputType extends Enum<EHCInputType> implements IHCHasHTMLAttributeValue
The type of anAbstractHCInputelement.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttrValue()static EHCInputTypegetFromAttrValueOrNull(String sAttrValue)booleanhasPlaceholder()static EHCInputTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EHCInputType[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.helger.html.hc.html.IHCHasHTMLAttributeValue
hasAttrValue
-
-
-
-
Enum Constant Detail
-
HIDDEN
public static final EHCInputType HIDDEN
-
TEXT
public static final EHCInputType TEXT
-
SEARCH
public static final EHCInputType SEARCH
-
TEL
public static final EHCInputType TEL
-
URL
public static final EHCInputType URL
-
EMAIL
public static final EHCInputType EMAIL
-
PASSWORD
public static final EHCInputType PASSWORD
-
DATE
public static final EHCInputType DATE
-
TIME
public static final EHCInputType TIME
-
NUMBER
public static final EHCInputType NUMBER
-
RANGE
public static final EHCInputType RANGE
-
COLOR
public static final EHCInputType COLOR
-
CHECKBOX
public static final EHCInputType CHECKBOX
-
RADIO
public static final EHCInputType RADIO
-
FILE
public static final EHCInputType FILE
-
SUBMIT
public static final EHCInputType SUBMIT
-
IMAGE
public static final EHCInputType IMAGE
-
RESET
public static final EHCInputType RESET
-
BUTTON
public static final EHCInputType BUTTON
-
-
Method Detail
-
values
public static EHCInputType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EHCInputType c : EHCInputType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EHCInputType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getAttrValue
@Nonnull @Nonempty public String getAttrValue()
- Specified by:
getAttrValuein interfacecom.helger.xml.microdom.IHasAttributeValue
-
hasPlaceholder
public boolean hasPlaceholder()
-
getFromAttrValueOrNull
@Nullable public static EHCInputType getFromAttrValueOrNull(@Nullable String sAttrValue)
-
-