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