|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
org.xwiki.gwt.wysiwyg.client.plugin.color.ColorPlugin
public class ColorPlugin
Plug-in for controlling the text color and the background color. It installs two push buttons on the tool bar, each opening a color picker dialog, which is synchronized with the text area.
| Field Summary | |
|---|---|
static String |
DEFAULT_COLORS
The colors available by default on the color palette. |
static String |
DEFAULT_COLUMN_COUNT
The default number of columns displayed by the color palette. |
| Constructor Summary | |
|---|---|
ColorPlugin()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
protected ColorPicker |
getColorPicker()
Lazy loads the color picker. |
void |
init(RichTextArea textArea,
Config config)
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event)
|
void |
onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event)
|
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin |
|---|
getConfig, getTextArea, getUIExtensionList, getUIExtensions, saveRegistration, saveRegistrations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_COLORS
public static final String DEFAULT_COLUMN_COUNT
| Constructor Detail |
|---|
public ColorPlugin()
| Method Detail |
|---|
public void init(RichTextArea textArea,
Config config)
init in interface Plugininit in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginAbstractPlugin.init(RichTextArea, Config)public void destroy()
destroy in interface Plugindestroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginAbstractPlugin.destroy()public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerClickHandler.onClick(ClickEvent)public void onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event)
onClose in interface com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>CloseHandler.onClose(CloseEvent)protected ColorPicker getColorPicker()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||