C - type of the categoriesS - type of the sub-itemspublic class SimpleMenu<C extends MenuEntry,S extends MenuEntry> extends Object
| Constructor and Description |
|---|
SimpleMenu()
Create an menu with an empty set of categories
|
SimpleMenu(List<CategoryEntry<C,S>> categories)
Create a menu with the given set of categories
|
| Modifier and Type | Method and Description |
|---|---|
List<CategoryEntry<C,S>> |
getCategories() |
boolean |
hasCategories() |
void |
setItems(List<CategoryEntry<C,S>> categories)
Set the category items of the menu
|
public SimpleMenu()
public SimpleMenu(List<CategoryEntry<C,S>> categories)
categories - the categories of the menupublic List<CategoryEntry<C,S>> getCategories()
public boolean hasCategories()
public void setItems(List<CategoryEntry<C,S>> categories)
categories - the category itemsCopyright © 2019 Communote team. All rights reserved.