Exemplo n.º 1
0
 public void insertToTable(int index, ExtSource object) {
   list.add(index, object);
   oracle.add(object.getName());
   oracle.add(renameContent(object.getType()));
   dataProvider.flush();
   dataProvider.refresh();
 }
Exemplo n.º 2
0
 /**
  * Add object as new row to table
  *
  * @param object ExtSource to be added as new row
  */
 public void addToTable(ExtSource object) {
   list.add(object);
   oracle.add(object.getName());
   oracle.add(renameContent(object.getType()));
   dataProvider.flush();
   dataProvider.refresh();
 }
Exemplo n.º 3
0
 public void setList(ArrayList<ExtSource> list) {
   clearTable();
   this.list.addAll(list);
   for (ExtSource object : list) {
     oracle.add(object.getName());
     oracle.add(renameContent(object.getType()));
   }
   dataProvider.flush();
   dataProvider.refresh();
 }
Exemplo n.º 4
0
 public void insertToTable(int index, Destination object) {
   list.add(index, object);
   oracle.add(object.getDestination());
   if (service == null) {
     oracle.add(object.getService().getName());
   } else {
     oracle.add(object.getFacility().getName());
   }
   dataProvider.flush();
   dataProvider.refresh();
 }
Exemplo n.º 5
0
 public void setList(ArrayList<Destination> list) {
   clearTable();
   this.list.addAll(list);
   for (Destination d : list) {
     oracle.add(d.getDestination());
     if (service == null) {
       oracle.add(d.getService().getName());
     } else {
       oracle.add(d.getFacility().getName());
     }
   }
   dataProvider.flush();
   dataProvider.refresh();
 }
Exemplo n.º 6
0
 /** Clear all table content */
 public void clearTable() {
   loaderImage.loadingStart();
   list.clear();
   fullBackup.clear();
   oracle.clear();
   selectionModel.clear();
   dataProvider.flush();
   dataProvider.refresh();
 }