Esempio n. 1
0
 /** 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);
 }
Esempio n. 2
0
 @Override
 public void onCancel() {
   value = null;
   uploading = false;
   if (embedded.getStatus().equals(Status.SUCCESS)) {
     setNew();
   }
 }
Esempio n. 3
0
 private void properties() {
   embedded.setFileInputSize(20);
   embedded.setAutoSubmit(true);
 }