Esempio n. 1
0
  public void onClick$visualizarTurmas(Event event) {
    border.getCenter().getChildren().clear();
    Window winVisualizarTurmas;
    if (user.getPrivilegio() == 3) {
      winVisualizarTurmas = (Window) CtrlLetivo.getInstance().abrirVisualizarTurmas(prof);
    } else {
      winVisualizarTurmas = (Window) CtrlLetivo.getInstance().abrirVisualizarTurmas();
    }

    winVisualizarTurmas.setWidth("100%");
    winVisualizarTurmas.setHeight("100%");
    winVisualizarTurmas.setParent(border.getCenter());
  }
Esempio n. 2
0
 public void onClick$alocarProfessor(Event event) {
   border.getCenter().getChildren().clear();
   Window winAlocarProfessor = (Window) CtrlLetivo.getInstance().abrirEventosAlocarProfessor(2);
   winAlocarProfessor.setWidth("100%");
   winAlocarProfessor.setHeight("100%");
   winAlocarProfessor.setParent(border.getCenter());
 }
Esempio n. 3
0
 public void onClick$calendario(Event event) {
   border.getCenter().getChildren().clear();
   Window winCalendario = (Window) CtrlLetivo.getInstance().abrirEventosCalendario();
   winCalendario.setWidth("100%");
   winCalendario.setHeight("100%");
   winCalendario.setParent(border.getCenter());
 }
Esempio n. 4
0
 public void onClick$turma(Event event) {
   border.getCenter().getChildren().clear();
   Window winTurma = (Window) CtrlLetivo.getInstance().abrirEventosTurma(1);
   winTurma.setWidth("100%");
   winTurma.setHeight("100%");
   winTurma.setParent(border.getCenter());
 }
Esempio n. 5
0
 public void onClick$sala(Event event) {
   border.getCenter().getChildren().clear();
   Window winDisciplina = (Window) CtrlLetivo.getInstance().abrirEventosSala();
   winDisciplina.setWidth("100%");
   winDisciplina.setHeight("100%");
   winDisciplina.setParent(border.getCenter());
 }