} else {
} else if (timetable.getGroup() != null) { ActionsList.getAction("ModifyGroup").setEnabled(true); ActionsList.getAction("RemoveGroup").setEnabled(true); } if (timetable.getRoom() == null && timetable.getMaterial() == null) {
		public void refreshAll(BoTEvent e) {		    Timetable timetable = e.getTimetable();		    ActionsList.getAction("CloseTimetable").setEnabled(true);		    ActionsList.getAction("PrintTimetable").setEnabled(true);		    ActionsList.getAction("ExportTimetable").setEnabled(true);		    ActionsList.getAction("ShowTimetableVertical").setEnabled(true);		    ActionsList.getAction("ShowTimetableHorizontal").setEnabled(true);		    //ActionsList.getAction("ShowTimetableByWeek").setEnabled(true);		    //ActionsList.getAction("ShowTimetableBySixMonthPeriod").setEnabled(true);		    if (timetable.getRoom() != null) {		        ActionsList.getAction("ModifyRoom").setEnabled(true);		        ActionsList.getAction("RemoveRoom").setEnabled(true);		    } else if (timetable.getMaterial() != null) {		        ActionsList.getAction("ModifyMaterial").setEnabled(true);		        ActionsList.getAction("RemoveMaterial").setEnabled(true);		    } else {			    ActionsList.getAction("AddSubject").setEnabled(true);			    ActionsList.getAction("ManageSubjects").setEnabled(true);			    ActionsList.getAction("AddGroup").setEnabled(true);			    ActionsList.getAction("ManageGroups").setEnabled(true);			    ActionsList.getAction("GenerateGroups").setEnabled(true);		    }		}