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(List<List<EphoxAction>> toolbarAction, boolean stickToTop)
           Creates an inline toolbar and populates it with buttons that use the supplied EphoxAction instances.
 

Method Detail

createInlineToolbar

InlineToolbar createInlineToolbar(List<List<EphoxAction>> toolbarAction,
                                  boolean stickToTop)

Creates an inline toolbar and populates it with buttons that use the supplied EphoxAction instances.

Toolbar groups are represented by nested lists; A toolbar separator is inserted between each List.

The easiest way to provide this is using ActionController.getToolbarFromConfigItem(ConfigItem) which reads a complete toolbar from the configuration XML.

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
Since:
9.0 - toolbarAction parameter type changed to match ActionController API change.

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