|
||||||||||
| 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.image.ImagePlugin
public class ImagePlugin
Rich text editor plug-in for inserting images, using a dialog to get image data settings from the user. It installs one button in the toolbar, to be used for both insert and edit image actions.
| Constructor Summary | |
|---|---|
ImagePlugin(WikiServiceAsync wikiService)
Create a new image plugin that used the specified wiki service. |
|
| 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 |
onCancel(Wizard sender)
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event)
|
void |
onFinish(Wizard sender,
java.lang.Object result)
|
void |
onImage()
Function to handle the image event, when the tool bar button is clicked or the menu command is issued: either create a new image, or edit an existing image. |
void |
onImageRemove()
Removes the selection if the insert image command is executed. |
| 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 ImagePlugin(WikiServiceAsync wikiService)
wikiService - the service used to access the wiki| 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(XRichTextArea, 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 onImage()
public void onImageRemove()
public void onFinish(Wizard sender,
java.lang.Object result)
onFinish in interface WizardListenerpublic void onCancel(Wizard sender)
onCancel in interface WizardListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||