Package io.codeworth.panelmatic
Enum PanelBuilder.HeaderLevel
- java.lang.Object
-
- java.lang.Enum<PanelBuilder.HeaderLevel>
-
- io.codeworth.panelmatic.PanelBuilder.HeaderLevel
-
- All Implemented Interfaces:
Serializable,Comparable<PanelBuilder.HeaderLevel>
- Enclosing interface:
- PanelBuilder
public static enum PanelBuilder.HeaderLevel extends Enum<PanelBuilder.HeaderLevel>
Describes the title level. This is a direct "rip-off" from HTML.H1is the most important one,H6is the least important.
See http://www.w3.org/TR/html401/struct/global.html#h-7.5.5.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PanelBuilder.HeaderLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static PanelBuilder.HeaderLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
H1
public static final PanelBuilder.HeaderLevel H1
-
H2
public static final PanelBuilder.HeaderLevel H2
-
H3
public static final PanelBuilder.HeaderLevel H3
-
H4
public static final PanelBuilder.HeaderLevel H4
-
H5
public static final PanelBuilder.HeaderLevel H5
-
H6
public static final PanelBuilder.HeaderLevel H6
-
-
Method Detail
-
values
public static PanelBuilder.HeaderLevel[] 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 (PanelBuilder.HeaderLevel c : PanelBuilder.HeaderLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PanelBuilder.HeaderLevel 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
-
-