示例#1
0
 public void onClick$btnValidar(Event ev) {
   if (cmbCurso.getSelectedItem() != null) {
     Curso curso = cmbCurso.getSelectedItem().getValue();
     List<Grupo> listaGrupo = docGruposOpInt.getGrupoList(curso.getNombre());
     ListModelList model2 = new ListModelList(listaGrupo);
     model2.addSelection(model2.get(0));
     cmbGrupo.setModel(model2);
   }
 }
示例#2
0
  public void onCreate() {
    List<Curso> listaSemCurso = docGruposOpInt.getSemCursoList();
    ListModelList model = new ListModelList(listaSemCurso);
    model.addSelection(model.get(0));
    cmbCurso.setModel(model);

    List<Docente> listaDocente = docGruposOpInt.getDocenteList();
    ListModel model1 = new ListModelList(listaDocente);
    cmbDocente.setModel(model1);
    onSelect$cmbCurso(null);
  }
示例#3
0
 private void doWriteComponentsToBeanVer(TVerifikasi tVerifikasi) {
   if (listbox_NamaPelaksana.getSelectedItem() != null) {
     Listitem itempelaksana = listbox_NamaPelaksana.getSelectedItem();
     ListModelList lml = (ListModelList) listbox_NamaPelaksana.getListModel();
     VHrEmployeePelaksana vHrEmployeePelaksana =
         (VHrEmployeePelaksana) lml.get(itempelaksana.getIndex());
     if (!vHrEmployeePelaksana.getEmployee_name().equalsIgnoreCase("Silakan pilih")) {
       tVerifikasi.setNik_pelaksana(vHrEmployeePelaksana.getEmployee_no());
     }
     if (!vHrEmployeePelaksana.getEmployee_no().equalsIgnoreCase("555")) {
       tVerifikasi.setNik_pelaksana(vHrEmployeePelaksana.getEmployee_no());
     }
   }
 }
  private void removeRow(Row row) {
    try {
      if (row.getGrid().getRows() != null) {
        row.getGrid().renderAll();
        int rowIndex = row.getGrid().getRows().getChildren().indexOf(row);

        ListModelList model = (ListModelList) row.getGrid().getListModel();
        DefaultFormatMapEntries entries = (DefaultFormatMapEntries) model.get(rowIndex);
        model.remove(rowIndex);
        String rateformtname = entries.getRateFormat();
        if (rateformtname.contains("VF_")) rateformtname = rateformtname.replaceAll("VF_", "");
        rateForamatSelected.remove(rateformtname);
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
  }