|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.ToolBarController
public class ToolBarController
ToolBar controller.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_TOOLBAR_FEATURES
The list of features this controller will attempt to place on the tool bar by default if the configuration doesn't specify the tool bar features. |
static java.lang.String |
TOOLBAR_ROLE
The string used to identify the tool bar extension point. |
| Constructor Summary | |
|---|---|
ToolBarController(ToolBar toolBar)
Creates a new tool bar controller. |
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys this tool bar controller. |
void |
fill(Config config,
PluginManager pluginManager)
Fills the tool bar with the features specified in the configuration. |
java.util.List<java.lang.String> |
split(java.lang.String toolBar,
PluginManager pluginManager)
Splits a string representing the tool bar feature list into its components, i.e. |
void |
update(RichTextArea richTextArea,
SyntaxValidator syntaxValidator)
Updates the tool bar state, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TOOLBAR_ROLE
public static final java.lang.String DEFAULT_TOOLBAR_FEATURES
| Constructor Detail |
|---|
public ToolBarController(ToolBar toolBar)
toolBar - the tool bar to be managed| Method Detail |
|---|
public void fill(Config config,
PluginManager pluginManager)
config - the configuration objectpluginManager - the object used to access the tool bar UIExtensions
public void update(RichTextArea richTextArea,
SyntaxValidator syntaxValidator)
richTextArea - the rich text area whose state is used to determine if a feature must be enabled or disabledsyntaxValidator - the object used to assert if a feature must be enabled or disabled in the current state of
the rich text area
public java.util.List<java.lang.String> split(java.lang.String toolBar,
PluginManager pluginManager)
toolBar - a string listing the tool bar features separated by ToolBarSeparator.VERTICAL_BAR or
ToolBarSeparator.LINE_BREAKpluginManager - the object used to check which tool bar features are available
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||