Example #1
0
 public Object getValueAt(int rowIndex, int columnIndex) {
   if (timeList != null) {
     if (rowIndex < timeList.size()) {
       JCTimeObject ctObj = (JCTimeObject) timeList.get(rowIndex);
       if (columnIndex == 0) {
         return ctObj.toString();
       }
     }
   }
   return null;
 }
Example #2
0
 public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
   if (timeList != null) {
     if (rowIndex < timeList.size()) timeList.setElementAt(aValue, rowIndex);
     else timeList.add(aValue);
   }
 }
Example #3
0
 public int getRowCount() {
   if (timeList != null) return timeList.size();
   return 0;
 }