示例#1
0
 public Object getValueAt(int rowIndex, int columnIndex) {
   HostItem hi = (HostItem) set.getAll().get(rowIndex);
   switch (columnIndex) {
     case 0:
       return hi.getName();
     case 1:
       return hi.getJobsRunning();
     case 2:
       return hi.getJobsAllowed();
     case 3:
       return hi.getOverload();
     case 4:
       return hi.getScore();
     default:
       return "?";
   }
 }
示例#2
0
 public int getRowCount() {
   return set.size();
 }