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()); }
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()); }
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()); }
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()); }
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()); }
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$avaliacao(Event event) { border.getCenter().getChildren().clear(); Window winAvaliacao; if (user.getPrivilegio() == 3) { winAvaliacao = (Window) CtrlAula.getInstance().abrirEventosAvaliacao(prof); } else { winAvaliacao = (Window) CtrlAula.getInstance().abrirEventosAvaliacao(); } winAvaliacao.setWidth("100%"); winAvaliacao.setHeight("100%"); winAvaliacao.setParent(border.getCenter()); }
public void onClick$chamada(Event event) { border.getCenter().getChildren().clear(); Window winChamada; if (user.getPrivilegio() == 3) { winChamada = (Window) CtrlAula.getInstance().abrirEventosChamada(prof); } else { winChamada = (Window) CtrlAula.getInstance().abrirEventosChamada(); } winChamada.setWidth("100%"); winChamada.setHeight("100%"); winChamada.setParent(border.getCenter()); }
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()); } }
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()); } }
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$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()); }
private Component createDialog(Component content, String title) { Window dialog = new Window(); dialog.appendChild(content); dialog.setTitle(title); dialog.setClosable(true); dialog.setSizable(true); dialog.setWidth("50%"); dialog.setHeight("50%"); dialog.setBorder(true); dialog.setParent(view); dialog.setMode(Window.MODAL); return dialog; }
/** Creates the components..<br> */ private void createComponents() { /** * !! Windows as NameSpaceContainer to prevent not unique id's error from other dashboard module * buttons or other used components. */ Window win = new Window(); win.setBorder("none"); win.setParent(this); Groupbox gb = new Groupbox(); gb.setMold("3d"); gb.setClosable(false); gb.setParent(win); Caption cap = new Caption(); cap.setImage("/images/icons/new_icons_10.gif"); cap.setLabel(Labels.getLabel("common.Application.History")); cap.setStyle("padding: 0px;"); cap.setParent(gb); // Buttons Toolbar/Timer Div div = new Div(); div.setSclass("z-toolbar"); div.setStyle("padding: 0px"); div.setParent(cap); Hbox hbox = new Hbox(); hbox.setPack("stretch"); hbox.setSclass("hboxRemoveWhiteStrips"); hbox.setWidth("100%"); hbox.setParent(div); Toolbar toolbarRight = new Toolbar(); toolbarRight.setAlign("end"); toolbarRight.setStyle("float:right; border-style: none;"); toolbarRight.setParent(hbox); Hbox hboxBtn = new Hbox(); hboxBtn.setSclass("hboxRemoveWhiteStrips"); hboxBtn.setWidth("100%"); hboxBtn.setParent(toolbarRight); // Paging paging = new Paging(); // paging.setParent(hboxBtn); // paging.setDetailed(true); if (isTimerControl()) { Button btnTimer = new Button(); btnTimer.setId("btnTimer"); btnTimer.setHeight("22px"); btnTimer.setImage("/images/icons/clock1_16x16.gif"); // convert to seconds int seconds = (int) Math.round(getDelay() / 1000); if (seconds > 60) { // convert to minutes and set localization to minutes int minutes = (int) Math.round((getDelay() / 1000) / 60); btnTimer.setTooltiptext( Labels.getLabel("btnTimer.tooltiptext") + " " + minutes + " " + Labels.getLabel("common.Minutes")); } else // set localization to seconds btnTimer.setTooltiptext( Labels.getLabel("btnTimer.tooltiptext") + " " + seconds + " " + Labels.getLabel("common.Seconds")); btnTimer.addEventListener("onClick", new BtnClickListener()); btnTimer.setParent(hboxBtn); } Button btnRefresh = new Button(); btnRefresh.setId("btnRefresh"); btnRefresh.setHeight("22px"); btnRefresh.setLabel("!"); btnRefresh.setTooltiptext(Labels.getLabel("btnRefresh.tooltiptext")); btnRefresh.addEventListener("onClick", new BtnClickListener()); btnRefresh.setParent(hboxBtn); // END Buttons Toolbar/Timer // body Borderlayout bl = new Borderlayout(); bl.setHeight(getModulHeight() + "px"); bl.setParent(gb); Center ct = new Center(); ct.setSclass("FDCenterNoBorder"); ct.setStyle("background-color: white"); ct.setFlex(true); ct.setParent(bl); // Listbox listbox = new Listbox(); listbox.setStyle("border: none;"); listbox.setHeight("100%"); listbox.setVisible(true); listbox.setParent(ct); listbox.setItemRenderer(new ItemRenderer()); Listhead listhead = new Listhead(); listhead.setParent(listbox); Listheader listheader1 = new Listheader(); listheader1.setWidth("100px"); listheader1.setHeight("0px"); listheader1.setParent(listhead); Listheader listheader2 = new Listheader(); listheader2.setWidth("100%"); listheader1.setHeight("0px"); listheader2.setParent(listhead); doReadData(); }