Klasse UiTopMenu<T>

java.lang.Object
org.obrel.core.RelatedObject
Alle implementierten Schnittstellen:
org.obrel.core.Relatable

public class UiTopMenu<T> extends UiNavMenu<T>
The top menu of a web page.
  • Konstruktordetails

    • UiTopMenu

      public UiTopMenu(UiContainer<?> parent)
      Creates a new instance without preset menu items.
      Parameter:
      parent - The parent container
    • UiTopMenu

      public UiTopMenu(UiContainer<?> parent, Collection<T> menuItems)
      Creates a new instance with preset menu items.
      Parameter:
      parent - The parent container
      menuItems - The initial menu items
  • Methodendetails

    • addBrandLabel

      public void addBrandLabel(String text)
      Adds a label that is displayed prominently to identify the website. It has the style name DefaultStyleNames.TOP_MENU_BRAND_LABEL.
      Parameter:
      text - The text to display as the site label