コード例 #1
0
 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);
   }
 }
コード例 #2
0
 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);
   }
 }
コード例 #3
0
 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());
     }
   }
 }