{@link ToolbarItem}s are grouped into ToolbarButtonGroups, which are then put into the toolbar. Each ToolbarButtonGroup object has a name and a list of ToolbarItems in it.
The ToolbarButtonGroup is populated with ToolbarItems via method chaining with the {@link #item(ToolbarItem)}method. For example, the {@link #DOCUMENT} ToolbarButtonGroup is created like this:
public static final ToolbarButtonGroup DOCUMENT = new ToolbarButtonGroup("document")
.item(SOURCE)
.item(SEPARATOR)
.item(SAVE)
.item(NEW_PAGE)
.item(DOC_PROPS)
.item(PREVIEW)
.item(PRINT)
.item(SEPARATOR)
.item(TEMPLATES);
|
|