|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin org.xwiki.gwt.wysiwyg.client.plugin.symbol.SymbolPlugin
public class SymbolPlugin
Allows the user to insert a special symbol chosen with a symbol picker in place of the current selection.
Constructor Summary | |
---|---|
SymbolPlugin()
|
Method Summary | |
---|---|
void |
destroy()
Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor. |
void |
init(RichTextArea textArea,
Config config)
Initialize the plug-in. |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event)
|
void |
onClose(com.google.gwt.event.logical.shared.CloseEvent<CompositeDialogBox> event)
|
void |
onSymbols(boolean show)
Either shows the symbol picker dialog or inserts the chosen symbol depending in the given flag. |
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 |
Constructor Detail |
---|
public SymbolPlugin()
Method Detail |
---|
public void init(RichTextArea textArea, Config config)
init
in interface Plugin
init
in class AbstractPlugin
textArea
- the text area of the editorconfig
- the configuration objectAbstractPlugin.init(RichTextArea, Config)
public void destroy()
destroy
in interface Plugin
destroy
in class AbstractPlugin
AbstractPlugin.destroy()
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick
in interface com.google.gwt.event.dom.client.ClickHandler
ClickHandler.onClick(ClickEvent)
public void onClose(com.google.gwt.event.logical.shared.CloseEvent<CompositeDialogBox> event)
onClose
in interface com.google.gwt.event.logical.shared.CloseHandler<CompositeDialogBox>
CloseHandler.onClose(CloseEvent)
public void onSymbols(boolean show)
show
- whether to show the symbol picker or insert the chosen symbol.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |