|
||||||||||
| 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.widget.wizard.util.LinkUploadWizardStep<C>
C - the type of configuration data associated with a linkpublic class LinkUploadWizardStep<C extends EntityConfig>
Generic wizard step that can be used by wizards that create links to attachments.
| Field Summary |
|---|
| Fields inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep |
|---|
FIELD_ERROR_STYLE |
| Constructor Summary | |
|---|---|
LinkUploadWizardStep(WikiServiceAsync wikiService)
Creates a new upload wizard step that uses the given service to access the attachments. |
|
| Method Summary | |
|---|---|
java.lang.String |
getNextStep()
|
java.lang.Object |
getResult()
|
protected WikiPageReference |
getTargetPageReference()
|
void |
init(java.lang.Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
|
protected void |
onAttachmentUploaded(Attachment attachment,
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. |
void |
setNextStep(java.lang.String nextStep)
Sets the next step. |
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep |
|---|
display, displayError, extractFileName, getDirectionName, getFileHelpLabel, getFileLabel, getFileUploadInput, getFileUploadInputName, getMainPanel, getStepTitle, getUploadURL, getValidDirections, getWikiService, hideError, 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 LinkUploadWizardStep(WikiServiceAsync wikiService)
wikiService - the service used to access the attachments| Method Detail |
|---|
public void init(java.lang.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<java.lang.Boolean> async)
onAttachmentUploaded in class AbstractFileUploadWizardStepattachment - 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.AbstractFileUploadWizardStep.onAttachmentUploaded(Attachment, AsyncCallback)public java.lang.Object getResult()
WizardStep.getResult()public java.lang.String getNextStep()
WizardStep.getNextStep()public void setNextStep(java.lang.String nextStep)
nextStep - the new next step
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||