/** Create new instance of this uploader */ private void createInstance() { embedded = null; statusBar = null; embedded = new Uploader(); embedded.addOnFinishUploadHandler(this); embedded.addOnStartUploadHandler(this); statusBar = new BaseUploadStatus(); statusBar.addCancelHandler(this); embedded.setStatusWidget(statusBar); }
@Override public void onCancel() { value = null; uploading = false; if (embedded.getStatus().equals(Status.SUCCESS)) { setNew(); } }
private void properties() { embedded.setFileInputSize(20); embedded.setAutoSubmit(true); }