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 Summary
Constructors Constructor Description QuickMenu()Create 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<QuickMenuItem>getItems()Items in the menu dropdownintgetOrder()Order of the menuStringgetTitle()Title of the menubooleanisShowingSelected()Whether 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 itemsvoidsetTitle(String title)Set title of the menuStringtoString()
-
-
-
Constructor Detail
-
QuickMenu
public QuickMenu()
Create a new instance of theQuickMenu
-
QuickMenu
public QuickMenu(String title, int order, boolean showingSelected, List<QuickMenuItem> items)
Create a new instance of theQuickMenu- Parameters:
title- titleorder- ordershowingSelected- whether to show selected state on itemsitems- list ofQuickMenuItem
-
QuickMenu
public QuickMenu(String title, int order, List<QuickMenuItem> items)
Create a new instance of theQuickMenu- Parameters:
title- titleorder- orderitems- list ofQuickMenuItem
-
QuickMenu
public QuickMenu(String title, int order, boolean showingSelected, QuickMenuItem... items)
Create a new instance of theQuickMenu- Parameters:
title- titleorder- ordershowingSelected- whether to show selected state on itemsitems- items ofQuickMenuItem
-
QuickMenu
public QuickMenu(String title, int order, QuickMenuItem... items)
Create a new instance of theQuickMenu- Parameters:
title- titleorder- orderitems- items ofQuickMenuItem
-
-
Method Detail
-
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 ofQuickMenuItem
-
-