private List<Long> getCheckedParticipantKeys() { List<Long> selected = new ArrayList<Long>(); for (GroupWrapper wrapper : tableDataModel.getObjects()) { if (wrapper.getParticipant().isSelected(0)) { selected.add(wrapper.getGroupKey()); } } return selected; }
@Override public Object getValueAt(int row, int col) { GroupWrapper option = getObject(row); switch (Cols.values()[col]) { case groupName: return option.getGroupName(); case description: return option.getDescription(); case courses: return option.getCourses(); case tutor: return option.getTutor(); case participant: return option.getParticipant(); default: return option; } }