protected void handleVisitsQuery() { LightVisits lightVisits = jC.getVisits(); dateSlider.setData(lightVisits.getExercisesInfo()); tableWithMarks.createTable(lightVisits, jC.getStudents(selectedGroup)); studentList.setStudents(jC.getStudents(selectedGroup)); if (groupSelectorSeparateLine.getVisibility() == View.INVISIBLE) { groupSelectorSeparateLine.setVisibility(View.VISIBLE); } }
protected void restoreLessonStudents() { if (jC.getVisits() != null) lessonsSelector.setLessonTitle(selectedLesson); if (!selectedGroup.isEmpty() && selectedLesson != null) { lessonsSelector.restoreState(jC.getLessons(selectedGroup, selectedSemester)); studentList.restoreState(jC.getStudents(selectedGroup)); } else { groupSelectorSeparateLine.setVisibility(View.INVISIBLE); } }
protected void restoreTable(LightVisits lightVisits) { if (lightVisits != null && selectedLesson != null) { try { tableWithMarks.restoreState(lightVisits, jC.getStudents(selectedGroup)); dateSlider.restoreState(lightVisits.getExercisesInfo()); } catch (NullPointerException ex) { Logger.printError(ex, getClass()); } } }