class GenerateRibbonFile.Menu extends Object implements GenerateRibbonFile.RibbonElement
Modifier and Type | Field and Description |
---|---|
private String |
_id |
private List<String> |
_items |
private I18nizableText |
_label |
private Map<String,GenerateRibbonFile.Menu> |
_menus |
Constructor and Description |
---|
Menu(String id,
I18nizableText label) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addItem(String id) |
(package private) void |
addMenu(GenerateRibbonFile.Menu menu) |
String |
getId() |
(package private) List<String> |
getItems() |
(package private) I18nizableText |
getLabel() |
(package private) GenerateRibbonFile.Menu |
getMenu(String menuId) |
(package private) Collection<GenerateRibbonFile.Menu> |
getMenus() |
(package private) boolean |
hasMenu(String menuId) |
private I18nizableText _label
private Map<String,GenerateRibbonFile.Menu> _menus
public Menu(String id, I18nizableText label)
public String getId()
getId
in interface GenerateRibbonFile.RibbonElement
I18nizableText getLabel()
void addMenu(GenerateRibbonFile.Menu menu)
GenerateRibbonFile.Menu getMenu(String menuId)
Collection<GenerateRibbonFile.Menu> getMenus()