public class Nav
extends AbstractUIElement
A pojo representing a nav element
  • Field Details

  • Constructor Details

  • Method Details

    • fromLabelHrefMap

      public static Nav fromLabelHrefMap​(LinkedHashMap<String,​String> labelHref)
      Constructs a Nav from a map where the keys are the inner text of a nav link and the values are the hrefs
      Parameters:
      labelHref - The map mentioned above
      Returns:
      A new Nav instance
    • builder

      public static Nav.NavBuilder builder()
    • addNavLink

      public void addNavLink​(NavLink link)
      Adds a navlink to the nav
      Parameters:
      link - The link to add to the nav