org.xwiki.gwt.wysiwyg.client.plugin.importer.ui
Class ImportOfficeFileWizardStep

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep
      extended by 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: ImportOfficeFileWizardStep.java 31743 2010-10-13 01:20:32Z mflorea $

Field Summary
 
Fields inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep
FIELD_ERROR_STYLE
 
Constructor Summary
ImportOfficeFileWizardStep(Config config, WikiServiceAsync wikiService, ImportServiceAsync importService)
          Instantiates the office document import wizard step.
 
Method Summary
 com.google.gwt.user.client.ui.Widget display()
          
 java.lang.String getDirectionName(NavigationListener.NavigationDirection direction)
          
protected  java.util.Map<java.lang.String,java.lang.String> getHTMLCleaningParams()
          Prepares the cleaning parameters map.
 java.lang.String getNextStep()
          
 java.lang.Object getResult()
          
 java.lang.String getStepTitle()
          
protected  WikiPageReference getTargetPageReference()
          
 java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()
          
protected  void onAttachmentUploaded(Attachment attach, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
          Notifies the successful completion of a file upload, to be overridden by subclasses to provide specific behavior.
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep
displayError, extractFileName, getFileHelpLabel, getFileLabel, getFileUploadInput, getFileUploadInputName, getMainPanel, getUploadURL, getWikiService, hideError, init, onCancel, onSubmit, onSubmitComplete, setFileHelpLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 step
wikiService - the component used to upload office documents
importService - the component used to import office documents
Method Detail

display

public com.google.gwt.user.client.ui.Widget display()

Specified by:
display in interface WizardStep
Overrides:
display in class AbstractFileUploadWizardStep

onAttachmentUploaded

protected void onAttachmentUploaded(Attachment attach,
                                    com.google.gwt.user.client.rpc.AsyncCallback<java.lang.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 attachment
async - 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 java.lang.Object getResult()


getNextStep

public java.lang.String getNextStep()


getDirectionName

public java.lang.String getDirectionName(NavigationListener.NavigationDirection direction)

Specified by:
getDirectionName in interface WizardStep
Overrides:
getDirectionName in class AbstractFileUploadWizardStep

getStepTitle

public java.lang.String getStepTitle()

Specified by:
getStepTitle in interface WizardStep
Overrides:
getStepTitle in class AbstractFileUploadWizardStep

getValidDirections

public java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()

Specified by:
getValidDirections in interface WizardStep
Overrides:
getValidDirections in class AbstractFileUploadWizardStep

getHTMLCleaningParams

protected java.util.Map<java.lang.String,java.lang.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-2010 XWiki. All Rights Reserved.