public class ImportOfficeFileWizardStep extends AbstractFileUploadWizardStep
FIELD_ERROR_STYLE, FIELD_HINT_STYLE, FIELD_LABEL_STYLE| Constructor and Description |
|---|
ImportOfficeFileWizardStep(Config config,
WikiServiceAsync wikiService,
ImportServiceAsync importService)
Instantiates the office document import wizard step.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
getHTMLCleaningParams()
Prepares the cleaning parameters map.
|
Object |
getResult() |
protected WikiPageReference |
getTargetPageReference() |
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.
|
displayError, extractFileName, getFileHelpLabel, getFileLabel, getFileUploadInput, getFileUploadInputName, getUploadURL, hideError, init, onCancel, onSubmit, onSubmitComplete, setFileHelpLabeldisplay, getStepTitle, isAutoSubmit, setStepTitlegetDirectionName, getNextStep, getValidDirections, setDirectionName, setNextStep, setValidDirectionspublic ImportOfficeFileWizardStep(Config config, WikiServiceAsync wikiService, ImportServiceAsync importService)
config - the object used to configure this wizard stepwikiService - the component used to upload office documentsimportService - the component used to import office documentsprotected void onAttachmentUploaded(Attachment attach, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
AbstractFileUploadWizardSteponAttachmentUploaded in class AbstractFileUploadWizardStepattach - 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.public Object getResult()
protected Map<String,String> getHTMLCleaningParams()
Map with cleaning parameters for office importer.protected WikiPageReference getTargetPageReference()
getTargetPageReference in class AbstractFileUploadWizardStepCopyright © 2004–2017 XWiki. All rights reserved.