|
||||||||||
| 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.macro.MacroPlugin
public class MacroPlugin
WYSIWYG editor plug-in for inserting macros and for editing macro parameters.
| Field Summary | |
|---|---|
static Command |
COLLAPSE
Rich text area command for collapsing all the macros. |
static Command |
EXPAND
Rich text area command for expanding all the macros. |
static Command |
INSERT
Rich text area command for inserting a macro in place of the current selection. |
static Command |
REFRESH
Rich text area command for refreshing macro output. |
| Constructor Summary | |
|---|---|
MacroPlugin(MacroServiceAsync macroService)
Creates a new macro plug-in that uses the specified macro service. |
|
| Method Summary | |
|---|---|
void |
destroy()
Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor. |
void |
edit()
Start the edit macro wizard. |
MacroSelector |
getSelector()
|
void |
init(RichTextArea textArea,
Config config)
Initialize the plug-in. |
void |
insert()
Start the insert macro wizard. |
void |
insert(java.lang.String macroId)
Skip the select macro wizard step and go directly to the edit macro wizard step for the specified macro. |
void |
onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent 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 Command REFRESH
public static final Command COLLAPSE
public static final Command EXPAND
public static final Command INSERT
| Constructor Detail |
|---|
public MacroPlugin(MacroServiceAsync macroService)
macroService - the macro service to be used for retrieving the macro descriptors| Method Detail |
|---|
public void init(RichTextArea textArea,
Config config)
init in interface Plugininit in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugintextArea - the text area of the editorconfig - the configuration objectAbstractPlugin.init(RichTextArea, Config)public void destroy()
destroy in interface Plugindestroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginAbstractPlugin.destroy()public MacroSelector getSelector()
public void edit()
public void insert()
public void insert(java.lang.String macroId)
macroId - a macro identifierpublic void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)
onDoubleClick in interface com.google.gwt.event.dom.client.DoubleClickHandlerDoubleClickHandler.onDoubleClick(DoubleClickEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||