C - the type of configuration data associated with a linkpublic class LinkUploadWizardStep<C extends EntityConfig> extends AbstractFileUploadWizardStep
FIELD_ERROR_STYLE, FIELD_HINT_STYLE, FIELD_LABEL_STYLE| Constructor and Description |
|---|
LinkUploadWizardStep(WikiServiceAsync wikiService)
Creates a new upload wizard step that uses the given service to access the attachments.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getResult() |
protected WikiPageReference |
getTargetPageReference() |
void |
init(Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb) |
protected void |
onAttachmentUploaded(Attachment attachment,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
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, onCancel, onSubmit, onSubmitComplete, setFileHelpLabeldisplay, getStepTitle, isAutoSubmit, setStepTitlegetDirectionName, getNextStep, getValidDirections, setDirectionName, setNextStep, setValidDirectionspublic LinkUploadWizardStep(WikiServiceAsync wikiService)
wikiService - the service used to access the attachmentspublic void init(Object data, com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
init in interface WizardStepinit in class AbstractFileUploadWizardStepAbstractFileUploadWizardStep.init(Object, AsyncCallback)protected WikiPageReference getTargetPageReference()
getTargetPageReference in class AbstractFileUploadWizardStepAbstractFileUploadWizardStep.getTargetPageReference()protected void onAttachmentUploaded(Attachment attachment, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
onAttachmentUploaded in class AbstractFileUploadWizardStepattachment - the successfully uploaded attachmentcallback - 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.AbstractFileUploadWizardStep.onAttachmentUploaded(Attachment, AsyncCallback)public Object getResult()
WizardStep.getResult()Copyright © 2004–2014 XWiki. All rights reserved.