public void onClick$boletim(Event event) { border.getCenter().getChildren().clear(); Window winBoletim; if (user.getPrivilegio() == 4) { winBoletim = (Window) CtrlMatricula.getInstance().abrirRelatorioBoletim(aluno); } else { winBoletim = (Window) CtrlMatricula.getInstance().abrirRelatorioBoletim(); } winBoletim.setWidth("100%"); winBoletim.setHeight("100%"); winBoletim.setParent(border.getCenter()); }
public void onClick$matricularAluno(Event event) { Window winMatricularAluno; border.getCenter().getChildren().clear(); if (user.getPrivilegio() == 4) { winMatricularAluno = (Window) CtrlMatricula.getInstance().abrirEventosMatricula(aluno); } else { winMatricularAluno = (Window) CtrlMatricula.getInstance().abrirEventosMatricula(); } winMatricularAluno.setWidth("100%"); winMatricularAluno.setHeight("100%"); winMatricularAluno.setParent(border.getCenter()); }
public void onClick$resultado(Event event) { border.getCenter().getChildren().clear(); Window winResultado = (Window) CtrlMatricula.getInstance().abrirRelatorioResultados(); winResultado.setWidth("100%"); winResultado.setHeight("100%"); winResultado.setParent(border.getCenter()); }