|
||||||||||
| 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.link.LinkPlugin
public class LinkPlugin
Rich text editor plug-in for inserting links, using a dialog to get link settings from the user. It installs a menu bar extension, with entries for all its actions.
| Constructor Summary | |
|---|---|
LinkPlugin(WikiServiceAsync wikiService)
Creates a new link plugin that will use the specified wiki service. |
|
| Method Summary | |
|---|---|
void |
destroy()
Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor. |
protected void |
dispatchLinkWizard(LinkConfig linkConfig)
Instantiates and runs the correct wizard for the passed link. |
void |
init(RichTextArea textArea,
Config config)
Initialize the plug-in. |
void |
onCancel(Wizard sender)
|
void |
onFinish(Wizard sender,
java.lang.Object result)
|
void |
onLinkEdit()
Handles the edit of a link: prepares and shows the link wizard. |
void |
onLinkInsert(LinkConfig.LinkType linkType)
Handles the creation of a link of the specified type: prepares and shows the link wizard. |
void |
onUnlink()
Executed when the unlink button is clicked. |
| 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 LinkPlugin(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(RichTextArea, Config)public void destroy()
destroy in interface Plugindestroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPluginAbstractPlugin.destroy()public void onLinkInsert(LinkConfig.LinkType linkType)
linkType - the type of link to insertpublic void onLinkEdit()
protected void dispatchLinkWizard(LinkConfig linkConfig)
linkConfig - the link configuration object to be passed to the wizardpublic void onUnlink()
public void onFinish(Wizard sender,
java.lang.Object result)
Handles wizard finish by creating the link HTML block from the LinkConfig setup through the wizard and
executing the Command.CREATE_LINK with it.
onFinish in interface WizardListenerWizardListener.onFinish(Wizard, Object)public void onCancel(Wizard sender)
onCancel in interface WizardListenerWizardListener.onCancel(Wizard)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||