|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep
com.xpn.xwiki.wysiwyg.client.plugin.link.ui.AttachmentUploadWizardStep
public class AttachmentUploadWizardStep
Specific file upload wizard step to handle upload of a new file attachment in order to create a link to it.
| Field Summary |
|---|
| Fields inherited from class com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep |
|---|
FIELD_ERROR_STYLE |
| Constructor Summary | |
|---|---|
AttachmentUploadWizardStep(ResourceName editedResource)
Builds an attachment upload wizard step for the currently edited resource. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getFileHelpLabel()
|
java.lang.String |
getNextStep()
|
protected java.lang.String |
getPage()
|
java.lang.Object |
getResult()
|
protected java.lang.String |
getSpace()
|
protected java.lang.String |
getWiki()
|
void |
init(java.lang.Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
|
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 com.xpn.xwiki.wysiwyg.client.widget.wizard.util.AbstractFileUploadWizardStep |
|---|
display, displayError, extractFileName, getDirectionName, getFileLabel, getFileUploadInput, getFileUploadInputName, getMainPanel, getStepTitle, getUploadURL, getValidDirections, hideError, onCancel, onSubmit, onSubmitComplete, setWikiService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentUploadWizardStep(ResourceName editedResource)
editedResource - the resource currently edited by this wizard step, i.e. the currently edited wiki document| Method Detail |
|---|
public java.lang.String getNextStep()
public java.lang.Object getResult()
public void init(java.lang.Object data,
com.google.gwt.user.client.rpc.AsyncCallback<?> cb)
init in interface WizardStepinit in class AbstractFileUploadWizardStepprotected java.lang.String getPage()
getPage in class AbstractFileUploadWizardStepprotected java.lang.String getSpace()
getSpace in class AbstractFileUploadWizardStepprotected java.lang.String getWiki()
getWiki in class AbstractFileUploadWizardStepprotected java.lang.String getFileHelpLabel()
getFileHelpLabel 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||