public class LinkPlugin extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin implements WizardListener
| Constructor and Description |
|---|
LinkPlugin(WikiServiceAsync wikiService)
Creates a new link plugin that will use the specified wiki service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init(RichTextArea textArea,
Config config) |
void |
onCancel(Wizard sender) |
void |
onFinish(Wizard sender,
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.
|
getConfig, getTextArea, getUIExtensionList, getUIExtensions, saveRegistration, saveRegistrationspublic LinkPlugin(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.AbstractPluginAbstractPlugin.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()
public void onUnlink()
public void onFinish(Wizard sender, 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)Copyright © 2004–2015 XWiki. All rights reserved.