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 theQuickMenuQuickMenu(String title, int order, boolean showingSelected, QuickMenuItem... items) Create a new instance of theQuickMenuQuickMenu(String title, int order, boolean showingSelected, List<QuickMenuItem> items) Create a new instance of theQuickMenuQuickMenu(String title, int order, QuickMenuItem... items) Create a new instance of theQuickMenuQuickMenu(String title, int order, List<QuickMenuItem> items) Create a new instance of theQuickMenu -
Method Summary
Modifier and TypeMethodDescriptiongetItems()Items in the menu dropdownintgetOrder()Order of the menugetTitle()Title of the menubooleanWhether to show selected state on itemsvoidsetItems(List<QuickMenuItem> items) Set items in the menu dropdownvoidsetOrder(int order) Set the order of the menuvoidsetShowingSelected(boolean showingSelected) Whether to show selected state on itemsvoidSet 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
-