return COLCOUNT;
}
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
DirectoryPacketTemplateListItem item = list.get(rowIndex);
switch (columnIndex) {
case COL_ID : return item.getID();
case COL_SERVICE: {
try {
return item.getService();
} catch (ClipsException e) {
MessageBox.showException(e);
return new ErrorValue(e);
}
}
case COL_WEIGHT: return item.getWeight();
case COL_DURATION: return item.getDefaultDuration();
case COL_DISCOUNT: return item.getDiscount();
default: return null;
}
}