Example #1
0
 /* (non-Javadoc)
  * @see gwtupload.client.IUploader#setI18Constants(gwtupload.client.I18nUploadConstants)
  */
 public void setI18Constants(UploaderConstants strs) {
   this.i18nStrs = strs;
   fileInput.setText(
       fileInput instanceof IDragAndDropFileInput
           ? i18nStrs.uploaderDrop()
           : i18nStrs.uploaderBrowse());
   statusWidget.setI18Constants(strs);
 }
Example #2
0
 public void setFileInput(IFileInput input) {
   if (fileInput != null) {
     fileInput.asWidget().removeFromParent();
   }
   fileInput = input;
   fileInput.addChangeHandler(onFileInputChanged);
   fileInput.setText(
       fileInput instanceof IDragAndDropFileInput
           ? i18nStrs.uploaderDrop()
           : i18nStrs.uploaderBrowse());
   fileInput.setEnabled(enabled);
   setFileInputSize(DEFAULT_FILEINPUT_SIZE);
   assignNewNameToFileInput();
   uploadForm.add(fileInput.asWidget());
 }