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); } }
public void initElements() { lessonsSelector = new LessonsSelector(this); mainLay = new LinearLayout(this); mainLay.setBackgroundColor(Color.WHITE); groupSelectorSeparateLine = new HorizontalLine(this, Color.BLACK, Config.getJournalEndLineWidth()); groupSelectorSeparateLine.setVisibility( selectedGroup.isEmpty() ? View.INVISIBLE : View.VISIBLE); groupButton = new GroupButton(this); groupDialog = new GroupDialog(); semesterButton = new SemesterButton(this); semesterDialog = new SemesterDialog(); }