return list.get(row);
}
@Override
public Object getValueAt(int row, int col) {
DirectoryPacketTemplateItem item = list.get(row);
switch (col) {
case COL_ID : return item.getID();
case COL_TITLE : return item;
case COL_TYPE :
try {
return item.getmedexamType();
} catch (ClipsException ex) {
return new ErrorValue(ex);
}
case COL_DIRTY : return item.getDirty();
case COL_ITEMS : {
try {
String s = "";
int count = item.getPacketItemCount();
for (int i = 0; i < count; i++) {
s += item.getPacketItem(i).toString() + (i == count - 1 ? "" : "; ");
}
return s;
} catch (ClipsException ex) {
return new ErrorValue(ex);
}