org.xwiki.gwt.wysiwyg.client.plugin.importer.ui
Class ImportOfficeFileWizardStep
java.lang.Object
org.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep
org.xwiki.gwt.user.client.ui.wizard.AbstractInteractiveWizardStep
org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep
org.xwiki.gwt.wysiwyg.client.plugin.importer.ui.ImportOfficeFileWizardStep
- All Implemented Interfaces:
- WizardStep
public class ImportOfficeFileWizardStep
- extends AbstractFileUploadWizardStep
Wizard step responsible for importing the content of an office document into the wysiwyg editor.
- Since:
- 2.0.1
- Version:
- $Id$
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep |
displayError, extractFileName, getFileHelpLabel, getFileLabel, getFileUploadInput, getFileUploadInputName, getUploadURL, hideError, init, onCancel, onSubmit, onSubmitComplete, setFileHelpLabel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportOfficeFileWizardStep
public ImportOfficeFileWizardStep(Config config,
WikiServiceAsync wikiService,
ImportServiceAsync importService)
- Instantiates the office document import wizard step.
- Parameters:
config - the object used to configure this wizard stepwikiService - the component used to upload office documentsimportService - the component used to import office documents
onAttachmentUploaded
protected void onAttachmentUploaded(Attachment attach,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
- Notifies the successful completion of a file upload, to be overridden by subclasses to provide specific behavior.
- Specified by:
onAttachmentUploaded in class AbstractFileUploadWizardStep
- Parameters:
attach - the successfully uploaded attachmentasync - the call-back used to indicate the completion of this method. It's required that the sub-classes
invoke async.onSuccess(true); method once they are done with processing the attachment. Without this
method being invoked, the submission of this wizard step will not complete.
getResult
public Object getResult()
-
getHTMLCleaningParams
protected Map<String,String> getHTMLCleaningParams()
- Prepares the cleaning parameters map.
- Returns:
- a
Map with cleaning parameters for office importer.
getTargetPageReference
protected WikiPageReference getTargetPageReference()
-
- Specified by:
getTargetPageReference in class AbstractFileUploadWizardStep
- Returns:
- a reference to the page where the attachment will be uploaded
- See Also:
AbstractFileUploadWizardStep.getTargetPageReference()
Copyright © 2004-2012 XWiki. All Rights Reserved.