예제 #1
0
 public Object getValueAt(int rowIndex, int columnIndex) {
   SkeletonProperty sp = (SkeletonProperty) m_props.get(rowIndex);
   switch (columnIndex) {
     case 0:
       return sp.getIdName();
     case 1:
       return sp.getLabel();
     case 2:
       return sp.getDescription();
     case 3:
       return sp.getType();
     case 4:
       return sp.getValue();
     default:
       return "";
   }
 }
예제 #2
0
 public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
   SkeletonProperty sp = (SkeletonProperty) m_props.get(rowIndex);
   switch (columnIndex) {
     case 0:
       sp.setIdName(aValue.toString());
       break;
     case 1:
       sp.setLabel(aValue.toString());
       break;
     case 2:
       sp.setDescription(aValue.toString());
       break;
     case 3:
       sp.setType(aValue.toString());
       break;
     case 4:
       sp.setValue(aValue.toString());
       break;
   }
 }