@Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        Subject subject = subjectService.getSubjects().get(rowIndex);
        switch (columnIndex) {
            case 0:
                return subject.getName();
            case 1:
                return subject.getCode();
            case 2:
                SubjectType type = subject.getType();
                return type == SubjectType.CURRICULUM ? "Alapképzés" : type == SubjectType.OPTIONAL ? "Választható" : "Minden";
            case 3:
                String courses = "";
                for (String course : subject.getCourses()) {
                    courses += " " + course;
                }
                return courses;
            case 4:
                return subject.getPriority();
            default:
                return subject.isRegister();
        }
    }