Enum Class NavigationType.Horizontal

java.lang.Object
java.lang.Enum<NavigationType.Horizontal>
org.patternfly.component.navigation.NavigationType.Horizontal
All Implemented Interfaces:
Serializable, Comparable<NavigationType.Horizontal>, Constable, NavigationType
Enclosing interface:
NavigationType

public static enum NavigationType.Horizontal extends Enum<NavigationType.Horizontal> implements NavigationType
No groups, only one level of NavigationItems allowed.

navigation(primary)
        .addItem(navigationItem("itm-1", "Item 1", "#itm-1"))
        .addItem(navigationItem("itm-2", "Item 2", "#itm-2"))
        .addItem(navigationItem("itm-3", "Item 3", "#itm-3"));
  • Enum Constant Details

  • Method Details

    • values

      public static NavigationType.Horizontal[] 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

      public static NavigationType.Horizontal valueOf(String name)
      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 name
      NullPointerException - if the argument is null