Enum Class NavigationType.Vertical
- All Implemented Interfaces:
Serializable,Comparable<NavigationType.Vertical>,Constable,NavigationType
- Enclosing interface:
NavigationType
public static enum NavigationType.Vertical
extends Enum<NavigationType.Vertical>
implements NavigationType
Different variations of
NavigationGroups and NavigationItems possible.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.patternfly.component.navigation.NavigationType
NavigationType.Horizontal, NavigationType.Vertical -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMixed content ofNavigationGroups andNavigationItems allowed.No groups, only one level ofNavigationItems allowed.OnlyNavigationGroups with one level ofNavigationItems allowed. -
Method Summary
Modifier and TypeMethodDescriptionstatic NavigationType.VerticalReturns the enum constant of this class with the specified name.static NavigationType.Vertical[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
flat
No groups, only one level ofNavigationItems allowed.navigation(flat) .addItem(navigationItem("itm-1", "Item 1", "#itm-1")) .addItem(navigationItem("itm-2", "Item 2", "#itm-2")) .addDivider() .addItem(navigationItem("itm-3", "Item 3", "#itm-3")); -
grouped
OnlyNavigationGroups with one level ofNavigationItems allowed. No mixed content.navigation(grouped) .addGroup(navigationGroup("grp-1", "Group 1") .addItem(navigationItem("grp-1-itm-1", "Item 1", "#grp-1-itm-1")) .addItem(navigationItem("grp-1-itm-2", "Item 2", "#grp-1-itm-2")) .addItem(navigationItem("grp-1-itm-3", "Item 3", "#grp-1-itm-3"))) .addGroup(navigationGroup("grp-2", "Group 2") .addItem(navigationItem("grp-2-itm-1", "Item 1", "#grp-2-itm-1")) .addItem(navigationItem("grp-2-itm-2", "Item 2", "#grp-2-itm-2")) .addDivider() .addItem(navigationItem("grp-2-itm-3", "Item 3", "#grp-2-itm-3"))); -
expandable
Mixed content ofNavigationGroups andNavigationItems allowed. More than one level of nesting possible.navigation(expandable) .addItem(navigationItem("itm-1", "Item 1", "#itm-1")) .addDivider() .addGroup(expandableNavigationGroup("grp-1", "Group 1") .addItem(navigationItem("grp-1-itm-1", "Item 1", "#grp-1-itm-1")) .addItem(navigationItem("grp-1-itm-2", "Item 2", "#grp-1-itm-2")) .addDivider() .addItem(navigationItem("grp-1-itm-3", "Item 3", "#grp-1-itm-3"))) .addItem(navigationItem("itm-2", "Item 2", "#itm-2")) .addItem(navigationItem("itm-3", "Item 3", "#itm-3")) .addGroup(expandableNavigationGroup("grp-2", "Group 2") .addItem(navigationItem("grp-2-itm-1", "Item 1", "#grp-2-itm-1")) .addItem(navigationItem("grp-2-itm-2", "Item 2", "#grp-2-itm-2")) .addGroup(expandableNavigationGroup("nested-grp-1", "Nested Group") .addItem(navigationItem("nested-grp-1-itm-1", "Item 1", "#nested-grp-1-itm-1")) .addDivider() .addItem(navigationItem("nested-grp-1-itm-2", "Item 2", "#nested-grp-1-itm-2")))); -
flyout
-
drillDown
-
-
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
-