예제 #1
0
 public CanUpload canUpload() {
   final CanUpload canUpload;
   if (treeComponent.getMultiSelection().isEmpty()) {
     canUpload = CanUpload.cannotUpload("No files selected");
   } else {
     canUpload = CanUpload.canUpload();
   }
   return canUpload;
 }
예제 #2
0
 public int getNumSelectedFiles() {
   return treeComponent.getMultiSelection().size();
 }
예제 #3
0
 private Collection<TreeItem> getTreeItems() {
   return treeComponent.getMultiSelection();
 }