|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ToolbarFactory
Factory for creating toolbars. Instance available via ELJBean.getToolbarFactory()
.
Currently only supports Inline Toolbars.
Method Summary | |
---|---|
InlineToolbar |
createInlineToolbar(EphoxAction toolbarAction,
boolean stickToTop)
Creates an inline toolbar and populates it with buttons that use the supplied actions. |
Method Detail |
---|
InlineToolbar createInlineToolbar(EphoxAction toolbarAction, boolean stickToTop)
Actions are read using EphoxAction.getSubItems()
. The easiest way to provide these is using EphoxAction.setSubItems(List)
. A null item denotes a toolbar separator.
If you wish to read the action and sub items automatically from the configuration XML, use ActionController.getToolbarFromConfigItem(ConfigItem)
.
toolbarAction
- Action that contains subItems defining the toolbarstickToTop
- Whether the toolbar should stick to the top of the screen. See InlineToolbar.repositionAtCurrentPoint()
for a description of how this works.
|
Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |