예제 #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;
 }
예제 #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);
   }
 }
예제 #3
0
 public int getRowCount() {
   if (timeList != null) return timeList.size();
   return 0;
 }