super(columns);
}
@Override
public Object getValueAt(int row, int col) {
EmployeeAttachment attachment = (EmployeeAttachment) dbObjects.get(row);
switch (col) {
case 0:
return attachment.getId();
case 1 : return attachment.getName();
case 2 : return attachment.getType();
case 3 : return attachment.getFileName();
case 4 : return attachment.getFileType();
case 5 : return FileUtils.byteCountToDisplaySize(attachment.getFileSize());
case 6 : return attachment.getNotes();
default:
return null;
}
}