|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.plugin.macro.MacroWizard
public class MacroWizard
A wizard that can be used to cast macro spells on a rich text area.
| Field Summary | |
|---|---|
static Command |
INSERT
Rich text area command for inserting a macro in place of the current selection. |
| Constructor Summary | |
|---|---|
MacroWizard(MacroDisplayer displayer,
Config config,
MacroServiceAsync macroService)
Creates a new macro wizard. |
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy this wizard. |
void |
edit()
Casts the edit macro spell on the underlying rich text area, allowing the user to edit the parameters and the content of the currently selected macro. |
void |
insert()
Casts the insert macro spell on the underlying rich text area, allowing the user to insert a new macro in place of the current selection or at the current caret position. |
void |
insert(java.lang.String macroId)
Casts the insert macro spell on the underlying rich text area, allowing the user to insert the specified macro in place of the current selection or at the current caret position. |
void |
onCancel(Wizard sender)
|
void |
onFinish(Wizard sender,
java.lang.Object result)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Command INSERT
| Constructor Detail |
|---|
public MacroWizard(MacroDisplayer displayer,
Config config,
MacroServiceAsync macroService)
displayer - the object used to get information about the displayed macros and to access the rich text area
on which the spells are castconfig - the object used to configure this wizardmacroService - the macro service used to retrieve macro descriptors| Method Detail |
|---|
public void edit()
public void insert()
public void insert(java.lang.String macroId)
macroId - a macro identifierpublic void onCancel(Wizard sender)
onCancel in interface WizardListenerWizardListener.onCancel(Wizard)
public void onFinish(Wizard sender,
java.lang.Object result)
onFinish in interface WizardListenerWizardListener.onFinish(Wizard, Object)public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||