Package com.axelor.ui

Class QuickMenu

java.lang.Object
com.axelor.ui.QuickMenu

public class QuickMenu extends Object
A quick menu displayed on default page
  • Constructor Details

    • QuickMenu

      public QuickMenu()
      Create a new instance of the QuickMenu
    • QuickMenu

      public QuickMenu(String title, int order, boolean showingSelected, List<QuickMenuItem> items)
      Create a new instance of the QuickMenu
      Parameters:
      title - title
      order - order
      showingSelected - whether to show selected state on items
      items - list of QuickMenuItem
    • QuickMenu

      public QuickMenu(String title, int order, List<QuickMenuItem> items)
      Create a new instance of the QuickMenu
      Parameters:
      title - title
      order - order
      items - list of QuickMenuItem
    • QuickMenu

      public QuickMenu(String title, int order, boolean showingSelected, QuickMenuItem... items)
      Create a new instance of the QuickMenu
      Parameters:
      title - title
      order - order
      showingSelected - whether to show selected state on items
      items - items of QuickMenuItem
    • QuickMenu

      public QuickMenu(String title, int order, QuickMenuItem... items)
      Create a new instance of the QuickMenu
      Parameters:
      title - title
      order - order
      items - items of QuickMenuItem
  • Method Details

    • getTitle

      public String getTitle()
      Title of the menu
      Returns:
      menu title
    • setTitle

      public void setTitle(String title)
      Set title of the menu
      Parameters:
      title - title
    • getOrder

      public int getOrder()
      Order of the menu
      Returns:
      menu order
    • setOrder

      public void setOrder(int order)
      Set the order of the menu
      Parameters:
      order - order
    • isShowingSelected

      public boolean isShowingSelected()
      Whether to show selected state on items
      Returns:
      showing selected
    • setShowingSelected

      public void setShowingSelected(boolean showingSelected)
      Whether to show selected state on items
      Parameters:
      showingSelected - true or false
    • getItems

      public List<QuickMenuItem> getItems()
      Items in the menu dropdown
      Returns:
      list of QuickMenuItem
    • setItems

      public void setItems(List<QuickMenuItem> items)
      Set items in the menu dropdown
      Parameters:
      items - list of QuickMenuItem
    • toString

      public String toString()
      Overrides:
      toString in class Object