Package com.axelor.ui
Class QuickMenu
java.lang.Object
com.axelor.ui.QuickMenu
A quick menu displayed on default page
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of theQuickMenu
QuickMenu
(String title, int order, boolean showingSelected, QuickMenuItem... items) Create a new instance of theQuickMenu
QuickMenu
(String title, int order, boolean showingSelected, List<QuickMenuItem> items) Create a new instance of theQuickMenu
QuickMenu
(String title, int order, QuickMenuItem... items) Create a new instance of theQuickMenu
QuickMenu
(String title, int order, List<QuickMenuItem> items) Create a new instance of theQuickMenu
-
Method Summary
Modifier and TypeMethodDescriptiongetItems()
Items in the menu dropdownint
getOrder()
Order of the menugetTitle()
Title of the menuboolean
Whether to show selected state on itemsvoid
setItems
(List<QuickMenuItem> items) Set items in the menu dropdownvoid
setOrder
(int order) Set the order of the menuvoid
setShowingSelected
(boolean showingSelected) Whether to show selected state on itemsvoid
Set title of the menutoString()
-
Constructor Details
-
QuickMenu
public QuickMenu()Create a new instance of theQuickMenu
-
QuickMenu
Create a new instance of theQuickMenu
- Parameters:
title
- titleorder
- ordershowingSelected
- whether to show selected state on itemsitems
- list ofQuickMenuItem
-
QuickMenu
Create a new instance of theQuickMenu
- Parameters:
title
- titleorder
- orderitems
- list ofQuickMenuItem
-
QuickMenu
Create a new instance of theQuickMenu
- Parameters:
title
- titleorder
- ordershowingSelected
- whether to show selected state on itemsitems
- items ofQuickMenuItem
-
QuickMenu
Create a new instance of theQuickMenu
- Parameters:
title
- titleorder
- orderitems
- items ofQuickMenuItem
-
-
Method Details
-
getTitle
Title of the menu- Returns:
- menu title
-
setTitle
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
Items in the menu dropdown- Returns:
- list of
QuickMenuItem
-
setItems
Set items in the menu dropdown- Parameters:
items
- list ofQuickMenuItem
-
toString
-