Ejemplo n.º 1
0
 public RETSourceElement[] getAllElements() {
   List<RETSourceElement> result = new LinkedList<RETSourceElement>();
   RETSourceTableModel model = getModel();
   for (int i = 0; i < model.getRowCount(); i++) {
     result.add(model.getRow(i));
   }
   return result.toArray(new RETSourceElement[result.size()]);
 }
Ejemplo n.º 2
0
 public void addVillages(Village[] pVillages) {
   RETSourceTableModel model = getModel();
   for (Village v : pVillages) {
     model.addRow(new RETSourceElement(v), false);
   }
   if (model.getRowCount() > 0) {
     setProblem(null);
     model.fireTableDataChanged();
   }
   jStatusLabel.setText(pVillages.length + " Dorf/Dörfer eingefügt");
   updateOverview(false);
 }