@Override public void markDuplicates(Collection<String> duplicates) { if ((duplicates != null) && !duplicates.isEmpty()) { for (String id : duplicates) { destResourceMap.get(id).markInvalid(I18N.ERROR.fileExist()); } } else { for (IPCFileUploadField field : destResourceMap.values()) { int index = fufList.indexOf(field); statList.get(index).setBusy(""); FormPanel form = formList.get(index); form.addSubmitHandler( new SubmitHandler() { @Override public void onSubmit(SubmitEvent event) { getOkButton().disable(); } }); form.submit(); submittedForms.add(form); } } }
@Override public String getItem(String key) { return map.get(getStorageKey(key)); }
@Override public void onSuccess(FastMap<DiskResource> result) { eventBus.fireEvent( new ShowFilePreviewEvent((File) result.get(value.getDisplayValue()), null)); }