public void setObject(Object obj) {
        if(obj instanceof Turma){
            this.turma = (obj != null ? (Turma)obj : new Turma());
            
            if(turma.getDisciplina() != null){
                setDisciplina(turma.getDisciplina());
            }
            else{
                this.cmbDisciplinas.setSelectedIndex(-1);
            }
            
            this.txtPeriodo.setText(turma.getPeriodoLetivo());
            this.txtNumTurma.setText(Integer.toString(turma.getNumeroTurma()));
            this.txtHorario.setText(turma.getCodHorarioDeAula());
            this.txtLocalDeAula.setText(turma.getLocalDeAula());
            this.cmbStatus.setSelectedItem(turma.getStatus());
            //set Docentes
            if(turma.getDocentes() != null){
                this.seletorDeDocentes.setSelectedItems((Collection<? extends Object>) turma.getDocentes());
            }
        }
    }