C
- the type of the category detailsS
- the type of the sub-itemspublic class CategoryEntry<C extends MenuEntry,S extends MenuEntry> extends Object implements MenuItem<S>
Constructor and Description |
---|
CategoryEntry(C categoryDetails)
Create a new category entry with an empty collection of children
|
Modifier and Type | Method and Description |
---|---|
C |
getCategoryDetails() |
List<S> |
getChildren() |
String |
getId() |
String |
getLabel() |
String |
getLocalizedLabel(Locale locale,
Object... arguments)
Return the localized label of the menu item.
|
boolean |
hasChildren() |
void |
setChildren(List<S> children)
set the children of this menu item
|
public CategoryEntry(C categoryDetails)
categoryDetails
- the details describing the categorypublic C getCategoryDetails()
public List<S> getChildren()
getChildren
in interface MenuItem<S extends MenuEntry>
MenuItem.hasChildren()
returns falsepublic String getId()
public String getLabel()
public String getLocalizedLabel(Locale locale, Object... arguments)
MenuEntry
MenuEntry.getLabel()
if localization is not supported.getLocalizedLabel
in interface MenuEntry
locale
- the locale to usearguments
- any arguments to pass to the i18n functionpublic boolean hasChildren()
hasChildren
in interface MenuItem<S extends MenuEntry>
Copyright © 2019 Communote team. All rights reserved.