Example #1
0
 public void onClick$professor(Event event) {
   Window winProfessor;
   if (user.getPrivilegio() == 3) {
     Professor p = (Professor) user.getPessoa();
     CtrlPessoa.getInstance().abrirEditarProfessor(p);
   } else {
     border.getCenter().getChildren().clear();
     winProfessor = (Window) CtrlPessoa.getInstance().abrirEventosProfessor();
     winProfessor.setWidth("100%");
     winProfessor.setHeight("100%");
     winProfessor.setParent(border.getCenter());
   }
 }
Example #2
0
 public void onClick$cadastrarAluno(Event event) {
   Window winCadastrarAluno;
   if (user.getPrivilegio() == 4) {
     Aluno a = (Aluno) user.getPessoa();
     CtrlPessoa.getInstance().abrirEditarAluno(a, a.getCurso());
   } else {
     border.getCenter().getChildren().clear();
     winCadastrarAluno = (Window) CtrlPessoa.getInstance().abrirEventosAluno();
     winCadastrarAluno.setWidth("100%");
     winCadastrarAluno.setHeight("100%");
     winCadastrarAluno.setParent(border.getCenter());
   }
 }