@Listen("onClick = image#downBtn") public void downBtnClick(MouseEvent event) { if (logger.isDebugEnabled()) logger.debug(" downBtn button event = " + event); if (selectedCharts.getSelectedItem() != null) { int pos = selectedCharts.getSelectedIndex(); // dont go past the bottom! if (pos == selectedChartsModel.size() - 1) return; String item = selectedChartsModel.remove(selectedCharts.getSelectedIndex()); selectedChartsModel.add(pos + 1, item); } }
@Listen("onClick = image#bottomBtn") public void bottomBtnClick(MouseEvent event) { if (logger.isDebugEnabled()) logger.debug(" bottomBtn button event = " + event); if (selectedCharts.getSelectedItem() != null) { String item = selectedChartsModel.remove(selectedCharts.getSelectedIndex()); selectedChartsModel.add(item); } }
@Listen("onClick = image#removeBtn") public void removeBtnClick(MouseEvent event) { if (logger.isDebugEnabled()) logger.debug(" removeBtn button event = " + event); // drop it if (selectedCharts.getSelectedItem() != null) { selectedChartsModel.remove(selectedCharts.getSelectedIndex()); } }
public void onClick$query() { isQuery = true; nameSearch = null; auditStateSearch = null; indicatorId = null; nameSearch = name.getValue(); if (auditState.getSelectedItem().getValue().equals("")) { auditStateSearch = null; } else if (auditState.getSelectedItem().getValue().equals("待审核")) { auditStateSearch = 0; } else if (auditState.getSelectedItem().getValue().equals("部门通过")) { auditStateSearch = 1; } else if (auditState.getSelectedItem().getValue().equals("主部门审核中")) { auditStateSearch = 2; } else if (auditState.getSelectedItem().getValue().equals("部门不通过")) { auditStateSearch = 3; } else if (auditState.getSelectedItem().getValue().equals("业务办通过")) { auditStateSearch = 4; } else if (auditState.getSelectedItem().getValue().equals("业务办不通过")) { auditStateSearch = 5; } else if (auditState.getSelectedItem().getValue().equals("归档")) { auditStateSearch = 6; } if (rank.getSelectedIndex() != 0) { Jxkh_BusinessIndicator qkType = (Jxkh_BusinessIndicator) rank.getSelectedItem().getValue(); indicatorId = qkType.getKbId(); } zxPaging.addEventListener( "onPaging", new EventListener() { public void onEvent(Event arg0) throws Exception { meetingList = jxkhQklwService.findMeetingByConditionAndPages( nameSearch, auditStateSearch, indicatorId, user.getDept().getKdNumber(), zxPaging.getActivePage(), zxPaging.getPageSize()); qklwListbox.setModel(new ListModelList(meetingList)); } }); int totalNum = jxkhQklwService.findMeetingByConditions( nameSearch, auditStateSearch, indicatorId, user.getDept().getKdNumber()); zxPaging.setTotalSize(totalNum); meetingList = jxkhQklwService.findMeetingByConditionAndPages( nameSearch, auditStateSearch, indicatorId, user.getDept().getKdNumber(), zxPaging.getActivePage(), zxPaging.getPageSize()); qklwListbox.setModel(new ListModelList(meetingList)); }
public void onSelect$ListagemDisciplina() { di = (RegistroDeDisciplina) ListagemDisciplina.getModel().getElementAt(ListagemDisciplina.getSelectedIndex()); disciplina.setValue(di.getDisciplina().getNome()); professor.setValue(di.getProfessor().getNome()); id.setValue(String.valueOf(di.getDisciplina().getId())); cargaHoraria.setValue(String.valueOf(di.getDisciplina().getCargaHoraria())); JanelaFiltroParaListarDisciplina.setVisible(false); janelaDisciplinaAluno.setVisible(true); janelaDisciplina.setVisible(false); nomeTurma.setValue(turmav.getNome()); turno.setValue(turmav.getTurno()); modalidade.setValue(turmav.getModalidade()); qtdAluno.setValue(String.valueOf(turmav.getQtdAluno())); anoLetivo.setValue(String.valueOf(turmav.getAnoLetivo().getAno())); sala.setValue(turmav.getSala().getDescricao()); serie.setValue(turmav.getSerie().getDescricao()); nivelEscolar.setValue(turmav.getSerie().getNivelEscolar().getNivel()); Row rows = new Row(); rows.setAlign("center"); new Label(di.getDisciplina().getNome() + " | " + di.getProfessor().getNome()).setParent(rows); new Label("Carga Horária - " + di.getDisciplina().getCargaHoraria()).setParent(rows); rows.setParent(rowFrequencias); rowss.add(rows); for (Aluno a : Facade.getInstance().listarAlunoTurma(turmav.getId())) { Listitem li = new Listitem(); for (Matricula m1 : a.getMatricula()) { if (turmav.getId() == m1.getTurma().getId()) { new Listcell(m1.getNumero()).setParent(li); Row row = new Row(); new Label(m1.getNumero() + " | " + a.getNome()).setParent(row); Intbox t = new Intbox(); t.setConstraint(c); t.setId(String.valueOf(a.getId())); intbox.add(t); t.setParent(row); t.setConstraint("no empty, no zero, no negative"); row.setParent(rowFrequencias); rowss.add(row); } } new Listcell(a.getNome()).setParent(li); li.setParent(ListagemAluno); } binder.loadComponent(indexFrequencia); binder.loadComponent(rowFrequencias); }