|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep
org.xwiki.gwt.wysiwyg.client.plugin.importer.ui.ImportOfficeFileWizardStep
public class ImportOfficeFileWizardStep
Wizard step responsible for importing the content of an office document into the wysiwyg editor.
| 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 |
|---|
public 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 documents| Method Detail |
|---|
public com.google.gwt.user.client.ui.Widget display()
display in interface WizardStepdisplay in class AbstractFileUploadWizardStep
protected void onAttachmentUploaded(Attachment attach,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> async)
onAttachmentUploaded 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 java.lang.Object getResult()
public java.lang.String getNextStep()
public java.lang.String getDirectionName(NavigationListener.NavigationDirection direction)
getDirectionName in interface WizardStepgetDirectionName in class AbstractFileUploadWizardSteppublic java.lang.String getStepTitle()
getStepTitle in interface WizardStepgetStepTitle in class AbstractFileUploadWizardSteppublic java.util.EnumSet<NavigationListener.NavigationDirection> getValidDirections()
getValidDirections in interface WizardStepgetValidDirections in class AbstractFileUploadWizardStepprotected java.util.Map<java.lang.String,java.lang.String> getHTMLCleaningParams()
Map with cleaning parameters for office importer.protected WikiPageReference getTargetPageReference()
getTargetPageReference in class AbstractFileUploadWizardStepAbstractFileUploadWizardStep.getTargetPageReference()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||