Ejemplo n.º 1
0
 public boolean exists(String name) throws RemoteException {
   if (treeItem == null) {
     return tree.getTextOfItems().contains(name);
   } else {
     return treeItem.getTextOfItems().contains(name);
   }
 }
Ejemplo n.º 2
0
 public List<String> getTextOfTreeItems() throws RemoteException {
   if (treeItem == null) {
     return tree.getTextOfItems();
   } else {
     return treeItem.getTextOfItems();
   }
 }
Ejemplo n.º 3
0
 public boolean existsWithRegex(String name) throws RemoteException {
   if (treeItem == null) {
     for (String item : tree.getTextOfItems()) {
       if (item.matches(name + ".*")) return true;
     }
     return false;
   } else {
     for (String item : treeItem.getTextOfItems()) {
       if (item.matches(name + ".*")) return true;
     }
     return false;
   }
 }