com.ephox.editlive.ephoxaction.toolbar
Interface ToolbarFactory


public interface ToolbarFactory

Factory for creating toolbars. Instance available via ELJBean.getToolbarFactory().

Currently only supports Inline Toolbars.

Since:
7.5

Method Summary
 InlineToolbar createInlineToolbar(EphoxAction toolbarAction, boolean stickToTop)
          Creates an inline toolbar and populates it with buttons that use the supplied actions.
 

Method Detail

createInlineToolbar

InlineToolbar createInlineToolbar(EphoxAction toolbarAction,
                                  boolean stickToTop)
Creates an inline toolbar and populates it with buttons that use the supplied actions.

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).

Parameters:
toolbarAction - Action that contains subItems defining the toolbar
stickToTop - Whether the toolbar should stick to the top of the screen. See InlineToolbar.repositionAtCurrentPoint() for a description of how this works.
Returns:
inline toolbar instance

Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.