public interface IMenuTemplate
| Modifier and Type | Method and Description |
|---|---|
void |
addMenuItem(String id,
String container,
String insertAt,
int seek)
Adds a new menu item with the given id to the template.
|
IExtendedMenu |
createMenu(int instance)
Creates a concrete instance of the template.
|
IExtendedMenu |
createMenu(int instance,
IActionFilter filter) |
IExtendedMenu |
createMenu(int instance,
IActionFilter filter,
IActionPostProcessor postProcessor) |
String |
getId()
Returns the id of the template.
|
Component |
getMenuItem(String id)
Returns the menu item with the given id.
|
void |
removeMenuItem(String id)
Removes the menu item with the given id from the menu.
|
void |
setParent(IMenuTemplate parent)
Sets the given template as parent.
|
void addMenuItem(String id, String container, String insertAt, int seek)
id - the id of the menu item that has to be added.container - the container in which the menu item should be added.insertAt - the id of the element to which the seek parameter refersseek - a value that determines the position of the new menu item. See
above for possible values.void removeMenuItem(String id)
id - the id of the element to be removed.void setParent(IMenuTemplate parent)
parent - the parent template. This template will inherit from the given
parent.Component getMenuItem(String id)
id - the id of the element to be returnedString getId()
IExtendedMenu createMenu(int instance)
instance - an unique instance id for further access to the same menu barIExtendedMenu createMenu(int instance, IActionFilter filter)
IExtendedMenu createMenu(int instance, IActionFilter filter, IActionPostProcessor postProcessor)