public class ImagePlugin extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin implements com.google.gwt.event.dom.client.ClickHandler, WizardListener
| Constructor and Description |
|---|
ImagePlugin(WikiServiceAsync wikiService)
Create a new image plugin that used the specified wiki service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init(RichTextArea textArea,
Config config) |
void |
onAttachedImage()
Start the insert attached image wizard.
|
void |
onCancel(Wizard sender) |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
onFinish(Wizard sender,
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 |
onImageEdit()
Start the edit image wizard.
|
void |
onImageRemove()
Removes the selection if the insert image command is executed.
|
void |
onURLImage()
Start the insert external image wizard.
|
getConfig, getTextArea, getUIExtensionList, getUIExtensions, saveRegistration, saveRegistrationspublic ImagePlugin(WikiServiceAsync wikiService)
wikiService - the service used to access the wikipublic void init(RichTextArea textArea, Config config)
init in interface Plugininit in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginpublic void destroy()
destroy in interface Plugindestroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginpublic void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerpublic void onImage()
public void onImageEdit()
public void onAttachedImage()
public void onURLImage()
public void onImageRemove()
public void onFinish(Wizard sender, Object result)
onFinish in interface WizardListenerpublic void onCancel(Wizard sender)
onCancel in interface WizardListenerCopyright © 2004–2017 XWiki. All rights reserved.