public interface IToolBarTemplate
Modifier and Type | Method and Description |
---|---|
void |
addToolBarItem(String id,
String container,
String insertAt,
int seek)
Adds a new toolbar item with the given id to the template.
|
IExtendedToolBar |
createToolBar(int instance)
Creates a concrete instance of the template.
|
IExtendedToolBar |
createToolBar(int instance,
IActionFilter filter) |
IExtendedToolBar |
createToolBar(int instance,
IActionFilter filter,
IActionPostProcessor postProcessor) |
String |
getId()
Returns the id of the template.
|
Component |
getToolBarItem(String id)
Returns the toolbar item with the given id.
|
void |
removeToolBarItem(String id)
Removes the toolbar item with the given id from the toolbar.
|
void |
setParent(IToolBarTemplate parent)
Sets the given template as parent.
|
void addToolBarItem(String id, String container, String insertAt, int seek)
id
- the id of the toolbar item that has to be addedcontainer
- the container in which the toolbar item should be addedinsertAt
- the id of the element to which the seek parameter refersseek
- a value that determines the position of the new toolbar item.
See above for possible values.void removeToolBarItem(String id)
id
- the id of the element to be removed.void setParent(IToolBarTemplate parent)
parent
- the parent template. This template will inherit from the given
parent.Component getToolBarItem(String id)
id
- the id of the element to be returnedString getId()
IExtendedToolBar createToolBar(int instance)
instance
- an unique instance id for further access to the same toolbarIExtendedToolBar createToolBar(int instance, IActionFilter filter)
IExtendedToolBar createToolBar(int instance, IActionFilter filter, IActionPostProcessor postProcessor)