jcbSubjectEDT.setSelectedItem(new ComboBoxItem(timetable.getRoom().getName(), timetable.getMaterial().getIdMaterial()));
jcbSubjectEDT.setSelectedItem(new ComboBoxItem(timetable.getMaterial().getName(), timetable.getMaterial().getIdMaterial()));
	    public void refreshAll(BoTEvent e) {	        Timetable timetable = e.getTimetable();	        	        noLoadTimetable = true;	        	        if (timetable.getGroup() != null) {	            jcbTypeEDT.setSelectedItem(TYPE_GROUPE);	            jcbSubjectEDT.setSelectedItem(new ComboBoxItem(timetable.getFormation().getHeading(), timetable.getFormation().getIdFormation()));	            jcbGroupEDT.setSelectedItem(new ComboBoxItem(timetable.getGroup().getHeading(), timetable.getGroup().getIdGroup()));	        } else if (timetable.getFormation() != null) {	            jcbTypeEDT.setSelectedItem(TYPE_FORMATION);	            jcbSubjectEDT.setSelectedItem(new ComboBoxItem(timetable.getFormation().getHeading(), timetable.getFormation().getIdFormation()));	        } else if (timetable.getRoom() != null) {	            jcbTypeEDT.setSelectedItem(TYPE_LOCAL);	            jcbSubjectEDT.setSelectedItem(new ComboBoxItem(timetable.getRoom().getName(), timetable.getRoom().getIdRoom()));	            jcbSubjectEDT.revalidate();	        } else if (timetable.getMaterial() != null) {	            jcbTypeEDT.setSelectedItem(TYPE_MATERIEL);	            jcbSubjectEDT.setSelectedItem(new ComboBoxItem(timetable.getRoom().getName(), timetable.getMaterial().getIdMaterial()));	        } else if (timetable.getTeacher() != null) {	            jcbTypeEDT.setSelectedItem(TYPE_ENSEIGNANT);	            jcbSubjectEDT.setSelectedItem(new ComboBoxItem(timetable.getTeacher().getName() + " " + timetable.getTeacher().getFirstName(), timetable.getTeacher().getIdUser()));	        }	        	        noLoadTimetable = false;	    }