org.xwiki.gwt.wysiwyg.client.plugin.importer
Class ImportPlugin

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
      extended by org.xwiki.gwt.wysiwyg.client.plugin.importer.ImportPlugin
All Implemented Interfaces:
com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.shared.EventHandler, WizardListener, Plugin

public class ImportPlugin
extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
implements WizardListener, com.google.gwt.event.dom.client.ClickHandler

Plugin responsible for importing external content into wysiwyg editor.

Version:
$Id: dd877280125ed1d38448eaba4dbe9d25b8931538 $

Constructor Summary
ImportPlugin(ImportServiceAsync importService, WikiServiceAsync wikiService)
          Creates a new import plug-in that used the given import service.
 
Method Summary
 void destroy()
          
 void init(RichTextArea textArea, Config config)
          
 void onCancel(Wizard sender)
          
 void onClick(com.google.gwt.event.dom.client.ClickEvent event)
          
 void onFinish(Wizard sender, Object result)
          
 void onImportOfficeFile()
          Method invoked by ImportMenuExtension when "Import -> Office File" menu item 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

ImportPlugin

public ImportPlugin(ImportServiceAsync importService,
                    WikiServiceAsync wikiService)
Creates a new import plug-in that used the given import service.

Parameters:
importService - the component used to clean content pasted from office documents and to import office documents
wikiService - the component used to access the import attachments
Method Detail

init

public void init(RichTextArea textArea,
                 Config config)

Specified by:
init in interface Plugin
Overrides:
init in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin

onImportOfficeFile

public void onImportOfficeFile()
Method invoked by ImportMenuExtension when "Import -> Office File" menu item is clicked.


onCancel

public void onCancel(Wizard sender)

Specified by:
onCancel in interface WizardListener

onFinish

public void onFinish(Wizard sender,
                     Object result)

Specified by:
onFinish in interface WizardListener

destroy

public void destroy()

Specified by:
destroy in interface Plugin
Overrides:
destroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin

onClick

public void onClick(com.google.gwt.event.dom.client.ClickEvent event)

Specified by:
onClick in interface com.google.gwt.event.dom.client.ClickHandler
See Also:
ClickHandler.onClick(ClickEvent)


Copyright © 2004–2015 XWiki. All rights reserved.