public void viewReport() throws Exception {
    try {
      listb.getItems().clear();
      DosenSedangMenempuhStudiDAO dao = new DosenSedangMenempuhStudiDAOImpl();
      datas =
          dao.getData(
              (UKProgramStudi) cmbProgdi.getSelectedItem().getValue(),
              (JenjangStudi) cmbJenjangStudi.getSelectedItem().getValue());

      for (DosenSedangMenempuhStudi o : datas) {
        Listitem li = new Listitem();
        Listcell cell = new Listcell(o.getNama());
        li.appendChild(cell);
        cell = new Listcell(o.getProdi());
        li.appendChild(cell);
        cell = new Listcell(o.getJenjangStudi());
        li.appendChild(cell);
        cell = new Listcell(o.getTempat());
        li.appendChild(cell);
        listb.appendChild(li);
      }
      btnExport.setDisabled(false);

    } catch (Exception ex) {
      ex.printStackTrace();
      Messagebox.show(ex.getMessage());
    }
  }
 public void exportReport() throws Exception {
   try {
     // JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(datas);
     if (cmbExportType.getSelectedItem().getValue().toString().equals("pdf")) {
       Window pdfPreviewWnd =
           (Window) Executions.createComponents("/zul/pdfpreview/PdfPreview.zul", null, null);
       Jasperreport pdfReport = (Jasperreport) pdfPreviewWnd.getFellow("report");
       pdfReport.setType(cmbExportType.getSelectedItem().getValue().toString());
       pdfReport.setSrc("reports/statistikpendidikandosen/StatistikPendidikanDosen.jasper");
       Map parameters = new HashMap();
       parameters.put("chart", chart.createBufferedImage(500, 300));
       pdfReport.setParameters(parameters);
       pdfReport.setDatasource(null);
       pdfPreviewWnd.doModal();
     } else {
       report.setType(cmbExportType.getSelectedItem().getValue().toString());
       report.setSrc("reports/statistikpendidikandosen/StatistikPendidikanDosen.jasper");
       Map parameters = new HashMap();
       parameters.put(
           "chart", chart.createBufferedImage(500, 300, BufferedImage.TRANSLUCENT, null));
       report.setParameters(parameters);
       report.setDatasource(null);
     }
   } catch (Exception ex) {
     Messagebox.show(ex.getMessage());
   }
 }
    private void initializeListboxProgressTypes() {
        if (cbProgressTypes == null) {
            cbProgressTypes = (Combobox) planner.getFellow("cbProgressTypes");
        }
        if (btnShowAdvances == null) {
            btnShowAdvances = (Button) planner.getFellow("showAdvances");
        }

        cbProgressTypes.setModel(new ListModelList(ProgressType.getAll()));
        cbProgressTypes.setItemRenderer(new ProgressTypeRenderer());

        // Update completion of tasks on selecting new progress type
        cbProgressTypes.addEventListener(Events.ON_SELECT, new EventListener() {

            @Override
            public void onEvent(Event event) {
                planner.forcedShowAdvances();
                planner.updateCompletion(getSelectedProgressType().toString());
            }

            private ProgressType getSelectedProgressType() {
                return (ProgressType) cbProgressTypes.getSelectedItem().getValue();
            }

        });

        cbProgressTypes.setVisible(true);

        ProgressType progressType = getProgressTypeFromConfiguration();
        if (progressType != null) {
            planner.updateCompletion(progressType.toString());
        }

    }
  private void setConfigDefaults() {
    try {
      Properties config = Util.getConfig(null);

      for (Comboitem item : portBaudRate.getItems()) {
        if (config.getProperty(Constants.SERIAL_PORT_BAUD).equals(item.getValue())) {
          portBaudRate.setSelectedItem(item);
        }
      }
      portsToScan.setValue(config.getProperty(Constants.SERIAL_PORTS));
      cfgWindOffset.setValue(config.getProperty(Constants.WIND_ZERO_OFFSET));
      String useChoice = config.getProperty(Constants.DNS_USE_CHOICE);
      if (Constants.DNS_USE_BOAT.equals(useChoice)) {
        useHomeGroup.setSelectedItem(useBoatRadio);
      } else {
        useHomeGroup.setSelectedItem(useHomeRadio);
      }
      if (new Boolean(config.getProperty(Constants.PREFER_RMC))) {
        useRmcGroup.setSelectedItem(useRmcRadio);
      } else {
        useRmcGroup.setSelectedItem(useHdgRadio);
      }
    } catch (Exception e) {
      logger.error(e.getMessage(), e);
      Messagebox.show("There has been a problem with loading the configuration:" + e.getMessage());
    }
  }
Esempio n. 5
0
  private void fillAssociationTypeList() {
    // cbRelation
    logger.debug("fillAssociationTypeList()");

    ListConceptAssociationTypesResponse.Return response =
        WebServiceHelper.listConceptAssociationTypes(new ListConceptAssociationTypesRequestType());
    logger.debug("response: " + response.getReturnInfos().getMessage());

    if (response.getReturnInfos().getStatus() == Status.OK) {
      final Combobox cb = (Combobox) getFellow("cbRelation");

      cb.setItemRenderer(
          new ComboitemRenderer<CodeSystemEntity>() {
            public void render(Comboitem item, CodeSystemEntity cse, int i) throws Exception {
              item.setValue(cse);
              CodeSystemEntityVersion csev = cse.getCodeSystemEntityVersions().get(0);
              AssociationType assType = csev.getAssociationTypes().get(0);
              item.setLabel(assType.getForwardName() + " <-> " + assType.getReverseName());

              if (cb.getSelectedItem() == null) cb.setSelectedItem(item);
            }
          });

      ListModelList lml = new ListModelList<CodeSystemEntity>(response.getCodeSystemEntity());
      cb.setModel(lml);

      logger.debug("association count: " + lml.getSize());

      // if(lml.getSize() > 0)
      //  cb.setSelectedIndex(0);
    }
  }
 @Listen("onClick = button#cfgSave")
 public void cfgSaveClick(MouseEvent event) {
   if (logger.isDebugEnabled()) logger.debug(" cfgSave button event = " + event);
   try {
     Properties config = Util.getConfig(null);
     if (isValidPort(portsToScan.getText())) {
       config.setProperty(Constants.SERIAL_PORTS, portsToScan.getValue());
     } else {
       Messagebox.show(
           "Device ports to scan is invalid. In Linux (pi) '/dev/ttyUSB0,/dev/ttyUSB1,etc', in MS Windows 'COM1,COM2,COM3,etc'");
     }
     if (isValidBaudRate(portBaudRate.getValue())) {
       config.setProperty(Constants.SERIAL_PORT_BAUD, portBaudRate.getValue());
       Util.saveConfig();
     } else {
       Messagebox.show("Device baud rate (speed) must be one of 4800,9600,19200,38400,57600");
     }
     if (NumberUtils.isNumber(cfgWindOffset.getValue())) {
       config.setProperty(Constants.WIND_ZERO_OFFSET, cfgWindOffset.getValue());
       Util.saveConfig();
       // notify others
       producer.sendBody(Constants.WIND_ZERO_ADJUST_CMD + ":" + cfgWindOffset.getValue() + ",");
     } else {
       Messagebox.show("Wind offset must be numeric");
     }
     config.setProperty(Constants.PREFER_RMC, (String) useRmcGroup.getSelectedItem().getValue());
     config.setProperty(
         Constants.DNS_USE_CHOICE, (String) useHomeGroup.getSelectedItem().getValue());
     Util.saveConfig();
   } catch (Exception e) {
     logger.error(e.getMessage(), e);
   }
 }
Esempio n. 7
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);
   }
 }
Esempio n. 8
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);
  }
Esempio n. 9
0
 private void loadSemester() throws Exception {
   cmbSemester.getItems().clear();
   Comboitem item1 = new Comboitem();
   item1.setValue(1);
   item1.setLabel("Gasal (1)");
   cmbSemester.appendChild(item1);
   Comboitem item2 = new Comboitem();
   item2.setValue(2);
   item2.setLabel("Genap (2)");
   cmbSemester.appendChild(item2);
 }
Esempio n. 10
0
 private void fillCombo(final Combobox combo, final Locale curLocale) {
   if (combo.getItemCount() == 0) {
     final Locale currentLocale = UISessionUtils.getCurrentSession().getLocale();
     for (final Locale locale : getPlayerFacade().getAllCountries()) {
       final Comboitem item = new Comboitem(locale.getDisplayCountry(currentLocale));
       item.setValue(locale);
       combo.appendChild(item);
       if (curLocale.getCountry().equals(locale.getCountry())) {
         combo.setSelectedItem(item);
       }
     }
   }
 }
Esempio n. 11
0
 public void viewReport() throws Exception {
   try {
     JadwalDosenDAO dao = new JadwalDosenDAOImpl();
     if (cmbNamaDosen.getValue() != null
         && cmbProgdi.getValue() != null
         && !cmbTahun.getSelectedItem().getValue().toString().isEmpty()
         && cmbSemester.getValue() != null) {
       datas =
           dao.getJadwalDosen(
               (Dosen) cmbNamaDosen.getSelectedItem().getValue(),
               (ProgramStudi) cmbProgdi.getSelectedItem().getValue(),
               cmbTahun.getSelectedItem().getValue().toString(),
               Integer.valueOf(cmbSemester.getSelectedItem().getValue().toString()));
       lstData.getItems().clear();
       for (JadwalDosen jd : datas) {
         Listitem item = new Listitem();
         item.setValue(jd);
         item.appendChild(new Listcell(jd.getJam()));
         item.appendChild(new Listcell(jd.getSenin()));
         item.appendChild(new Listcell(jd.getSelasa()));
         item.appendChild(new Listcell(jd.getRabu()));
         item.appendChild(new Listcell(jd.getKamis()));
         item.appendChild(new Listcell(jd.getJumat()));
         item.appendChild(new Listcell(jd.getSabtu()));
         lstData.appendChild(item);
       }
       btnExport.setDisabled(false);
     } else {
       Messagebox.show("Silahkan Input Parameter dengan benar");
       btnExport.setDisabled(true);
     }
   } catch (Exception ex) {
     Messagebox.show("Telah terjadi kesalahan..");
   }
 }
Esempio n. 12
0
  public void onSelect$nivelCombo(Event e) {

    ne1 = ((NivelEscolar) nivelCombo.getSelectedItem().getValue());
    serieCombo.getChildren().clear();
    for (Serie se : Facade.getInstance().listarSerieNivel(ne1.getId())) {
      Comboitem comboitem = new Comboitem();
      comboitem.setLabel(se.getDescricao());
      comboitem.setValue(se);
      serieCombo.appendChild(comboitem);
    }

    serieCombo.setDisabled(false);
    binder.loadComponent(RowSerie);
  }
Esempio n. 13
0
 private void loadTahun() throws Exception {
   int currentYear = new DateTime().getYear();
   cmbTahun.getItems().clear();
   Comboitem item = new Comboitem();
   item.setValue("");
   item.setLabel("-- Pilih Tahun --");
   cmbTahun.appendChild(item);
   for (int x = 2000; x <= currentYear; x++) {
     Comboitem itm = new Comboitem();
     itm.setValue(x);
     itm.setLabel(x + "");
     cmbTahun.appendChild(itm);
   }
 }
Esempio n. 14
0
  public void onSelect$serieCombo() {

    s = ((Serie) serieCombo.getSelectedItem().getValue());
    turmaCombo.getChildren().clear();
    for (Turma t : Facade.getInstance().listarTurmaSerie(s.getId(), anoletivoObj.getId())) {
      Comboitem comboitem = new Comboitem();
      comboitem.setLabel(t.getNome());
      comboitem.setValue(t);
      turmaCombo.appendChild(comboitem);
    }

    turmaCombo.setDisabled(false);
    binder.loadComponent(RowTurma);
  }
 private void renderizarDatosPlanillaDetalle() {
   logger.log(Level.INFO, "[GestionIngresosDescuentosCtrl][renderizarDatosPlanillaDetalle]");
   try {
     planillaDetalleSelected = null;
     if (listaPlanillaDetalles == null) {
       listaPlanillaDetalles = new ArrayList<PlanillaDetalle>();
     }
     cmbEmpleadosPreparaciones.setModel(new ListModelList(listaPlanillaDetalles));
     cmbEmpleadosPreparaciones.setItemRenderer(new VariosComboItemRendered());
     llenarDatosCampos();
     revisarEstadoComponentes();
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
 public void onCreate() throws Exception {
   listb = (Listbox) getFellow("listb");
   cmbProgdi = (Combobox) getFellow("cmbProgdi");
   report = (Jasperreport) getFellow("report");
   cmbJenjangStudi = (Combobox) getFellow("cmbJenjangStudi");
   //        chartImg = (Image) getFellow("chartImg");
   cmbExportType = (Combobox) getFellow("cmbExportType");
   btnExport = (Button) getFellow("btnExport");
   btnExport.setDisabled(true);
   loadProgdi();
   loadJenjangStudi();
   cmbProgdi.setSelectedIndex(0);
   cmbJenjangStudi.setSelectedIndex(0);
   cmbExportType.setSelectedIndex(0);
 }
Esempio n. 17
0
 private void loadProgdi() throws Exception {
   try {
     ProgramStudiDAO dao = new ProgramStudiDAOImpl();
     List<ProgramStudi> progdis = dao.getProgramStudi();
     cmbProgdi.getItems().clear();
     for (ProgramStudi ps : progdis) {
       Comboitem items = new Comboitem();
       items.setValue(ps);
       items.setLabel(ps.getKode() + " " + ps.getNama());
       cmbProgdi.appendChild(items);
     }
   } catch (Exception ex) {
     Messagebox.show(ex.getMessage());
   }
 }
Esempio n. 18
0
 public void onClick$buttonAceptar() {
   buttonImprimir.setVisible(true);
   Calendar c1 = Calendar.getInstance();
   Calendar c2 = new GregorianCalendar();
   if (txtFechaLlegada.getText().isEmpty() || txtFechaSalida.getText().isEmpty()) {
     alert("Seleccione fechas!!");
   } else {
     String fechai =
         ""
             + (txtFechaLlegada.getValue().getYear() + 1900)
             + "-"
             + (txtFechaLlegada.getValue().getMonth() + 1)
             + "-"
             + txtFechaLlegada.getValue().getDate();
     String fechau =
         ""
             + (txtFechaSalida.getValue().getYear() + 1900)
             + "-"
             + (txtFechaSalida.getValue().getMonth() + 1)
             + "-"
             + txtFechaSalida.getValue().getDate();
     if (txtFechaLlegada.getValue().after(txtFechaSalida.getValue())) {
       alert("Fecha de Inicio no debe exceder a la fecha límite!!");
     } else {
       if (txtFechaLlegada.getValue().after(c1.getTime())
           || txtFechaSalida.getValue().after(c1.getTime())) {
         alert("las fechas no pueden exceder a la fecha actual!!");
       } else {
         lista = dbrp.ReportePorFecha(cmb_tipo.getText(), cmb_demanda.getText(), fechai, fechau);
         ListModelList<ReporteProducto> modeloDeDatos = new ListModelList<ReporteProducto>(lista);
         listademanda.setModel(modeloDeDatos);
         gpb_lista.setVisible(true);
         buttonAceptar.setVisible(false);
         txtFechaLlegada.setDisabled(true);
         txtFechaSalida.setDisabled(true);
         if (cmb_tipo.getText().equals("General")) {
           listffinal.setVisible(true);
           listfinicial.setVisible(true);
           liscat.setVisible(true);
         } else {
           listffinal.setVisible(true);
           listfinicial.setVisible(true);
           liscat.setVisible(true);
         }
       }
     }
   }
 }
Esempio n. 19
0
  public void onSelect$anoLetivoCombo(Event e) throws InterruptedException {

    anoletivoObj = (AnoLetivo) anoLetivoCombo.getSelectedItem().getValue();

    nivelCombo.getChildren().clear();
    for (NivelEscolar ne : Facade.getInstance().listarNivelEscolar()) {
      // funciona como um GROUP BY para que não sejam repetidos os mesmos níveis no combobox

      Comboitem comboitem = new Comboitem();
      comboitem.setLabel(ne.getNivel());
      comboitem.setValue(ne);
      nivelCombo.appendChild(comboitem);
    }
    nivelCombo.setDisabled(false);
    binder.loadComponent(RowNivel);
  }
Esempio n. 20
0
  public Comboitem newComboitem(Combobox combobox) {
    // clone from template
    final Comboitem clone = (Comboitem) _template.clone();
    // TODO: see if databinder has this kind of Comboitem, if not, add new CollectionListItem
    // avoid duplicate id error, will set to new id when render()
    // Bug #1962153: Data binding generates duplicate id in some case add "_".
    if (clone.getId().length() > 0) {
      clone.setId(null);
    }

    // link cloned component with template
    // each Comboitem and and it descendants share the same templatemap
    Map<Object, Object> templatemap = new HashMap<Object, Object>(8);
    BindingRendererUtil.linkTemplates(clone, _template, templatemap, _binder);

    // link this template map to parent templatemap (Combobox in Combobox)
    Map parenttemplatemap = (Map) combobox.getAttribute(DataBinder.TEMPLATEMAP);
    if (parenttemplatemap != null) {
      templatemap.put(DataBinder.TEMPLATEMAP, parenttemplatemap);
    }
    // kept clone kids somewhere to avoid create too many components in browser
    final List<Component> kids = new ArrayList<Component>(clone.getChildren());
    clone.setAttribute(KIDS, kids);
    clone.getChildren().clear();
    return clone;
  }
Esempio n. 21
0
 public void loadDosenOnChanging(String nama) throws Exception {
   try {
     DosenDAO dao = new DosenDAOImpl();
     List<Dosen> dosens =
         dao.getsByName(nama, (ProgramStudi) cmbProgdi.getSelectedItem().getValue());
     cmbNamaDosen.getItems().clear();
     for (Dosen d : dosens) {
       Comboitem items = new Comboitem();
       items.setValue(d);
       items.setLabel(d.getNama());
       cmbNamaDosen.appendChild(items);
     }
   } catch (Exception ex) {
     Messagebox.show(ex.getMessage());
   }
 }
Esempio n. 22
0
  /*
   * (non-Javadoc)
   *
   * @see com.hxzy.base.web.window.ActionWindow#onBind()
   */
  @Override
  public void onBind() {

    list = dictService.findByProperty("parent.code", "productCategory");
    binder.loadComponent(combobox);

    if (member != null) {
      companyName.setValue(member.getCompanyName());
      contacts.setValue(member.getContacts());
      joinTime.setValue(member.getJoinTime());
      endTime.setValue(member.getEndTime());

      combobox.setItemRenderer(
          new ComboitemRenderer() {

            public void render(Comboitem item, Object o) throws Exception {
              Dict d = (Dict) o;
              item.setValue(d);
              item.setLabel(d.getName());
              Dict category = member.getCategory();

              if (d.equals(category)) {
                combobox.setSelectedItem(item);
              }
            }
          });
    }
  }
Esempio n. 23
0
 public void onCreate$topNReport(Event event) {
   refreshInifile();
   refreshiControl();
   topNList.getPagingChild().setMold("os");
   topNGenerateTime.getPagingChild().setMold("os");
   String pgsz = Toolkit.getToolkit().getCookie("topNGenerateTimePageSize");
   if (pgsz == null) pgsz = "10";
   genlistboxPageSize.setValue(pgsz);
   int pageSize = Math.abs(Integer.parseInt(pgsz));
   topNGenerateTime.setPageSize(pageSize);
   topNGenerateTime.getPaginal().setPageSize(pageSize);
   //		if (topNList.getItemCount() > 0)
   //		{
   //			topNList.setSelectedIndex(0);
   //			String reportid = this.iniFile.getSectionList().get(0);
   //			IniFile iniGen = new IniFile("reportTopN." + reportid + ".ini");
   //			try
   //			{
   //				iniGen.load();
   //			} catch (Exception e)
   //			{
   //				return;
   //			}
   //			topn_time.setVisible(true);
   //			TopNLogListmodel model1 = new TopNLogListmodel(iniGen, this);
   //			topNGenerateTime.setModel(model1);
   //			topNGenerateTime.setItemRenderer(model1);
   //		}
   SelectableListheader.addPopupmenu(topNList);
   SelectableListheader.addPopupmenu(topNGenerateTime);
 }
  public void onSelect$poste_travail() throws SQLException {
    message.setValue("");

    String poste = (String) map_poste.get((String) poste_travail.getSelectedItem().getLabel());

    CategoryModel catmodel = new SimpleCategoryModel();
    List charts = new ArrayList<CategoryModel>();
    StatMoyFamillePosteBean cpb;
    Iterator it;
    StatCotationEmployeModel cotationMoel = new StatCotationEmployeModel();
    List sect_items = cotationMoel.getListPosteMoyFam(poste);
    it = sect_items.iterator();
    if (sect_items.size() > 0) {
      mychart.setVisible(true);
      while (it.hasNext()) {
        cpb = (StatMoyFamillePosteBean) it.next();

        catmodel.setValue(cpb.getFamille(), "Familles de compétence", cpb.getMoy_famille());
        // catmodel.setValue("IMI","indice de maitrise individuel",3);
        mychart.setModel(catmodel);
      }

      catmodel.setValue("IMG", "Indice de maitrise global", cotationMoel.getIMGParPoste(poste));
      mychart.setModel(catmodel);

      ChartEngine d = mychart.getEngine();
      image = d.drawChart(mychart);
    } else {
      message.setVisible(true);
      message.setValue("Pas de résultat à afficher");
      mychart.setVisible(false);
    }
  }
Esempio n. 25
0
  public void onChange$genlistboxPageSize() {

    if (genlistboxPageSize.getSelectedItem() == null) {
      genlistboxPageSize.setSelectedIndex(0);
    }
    String pgsz = (String) genlistboxPageSize.getSelectedItem().getValue();
    try {
      int pageSize = Math.abs(Integer.parseInt(pgsz));
      Toolkit.getToolkit().setCookie("topNGenerateTimePageSize", pgsz, Integer.MAX_VALUE);
      topNGenerateTime.setPageSize(pageSize);
      topNGenerateTime.getPaginal().setPageSize(pageSize);

    } catch (Exception e) {

    }
  }
Esempio n. 26
0
  public AddNodeWindow(AbstractQuestionRelation p) {
    this.setParent(p);

    // create ui from template
    Executions.createComponents("/WEB-INF/zk/survey/design/AddNodeWindow.zul", this, null);
    Selectors.wireVariables(this, this, Selectors.newVariableResolvers(getClass(), Div.class));
    Selectors.wireComponents(this, this, false);
    Selectors.wireEventListeners(this, this);

    // type box and default selection
    ntds = nodeRO.getNodeTypeDescriptions();
    ListModelList<String> typeModel = new ListModelList<String>();
    for (Map<String, String> ntd : ntds) {
      String nodeTypeLabel = ntd.get("label");
      typeModel.add(nodeTypeLabel);
    }
    String defaultContactType = p.getQuestion().getDefaultNewContactType();
    if (defaultContactType != null) {
      Map<String, String> ntd = GeneralUtil.getNodeDescription(ntds, defaultContactType);
      if (ntd != null) {
        String nodeTypeLabel = ntd.get("label");
        typeModel.addToSelection(nodeTypeLabel);
      }
    }
    typeBox.setModel(typeModel);
    onNodeTypeChanged();

    this.setWidth("200px");
    this.setVflex("1");
    this.setClosable(true);
  }
Esempio n. 27
0
  public void resetCaseStudy() throws ThinklabException {

    storylineViews.clear();
    currentStoryline = null;

    /*
     * reset ROI and all modules
     */
    userModel.clearAnalysis();

    /*
     * ask the user model to give us all the modules we have access to.
     */
    userModel.initializeModules();

    moduleViews.clear();
    sidebar.resetModules();
    createModuleViews();

    /*
     * restore interface
     */
    selectionBar.setVisible(true);
    selectionBar.idle(false);
    gazetteer.setValue("");
    getBanner().setStoryline(null);

    ZK.resetComponent(this.storyline);

    this.storyline.setVisible(false);
    this.mapwindow.setVisible(true);

    browserState = 0;
    sidebar.redisplay();
  }
Esempio n. 28
0
  @Listen("onChange = #typeBox")
  public void onChange$typeBox() {
    // have to do this to make sure model is updated
    typeBox.getSelectedItem();

    onNodeTypeChanged();
  }
Esempio n. 29
0
 public void loadDosen() throws Exception {
   try {
     cmbNamaDosen.setValue("");
     DosenDAO dao = new DosenDAOImpl();
     List<Dosen> dosens = dao.getsByProdi((ProgramStudi) cmbProgdi.getSelectedItem().getValue());
     cmbNamaDosen.getItems().clear();
     for (Dosen d : dosens) {
       Comboitem items = new Comboitem();
       items.setValue(d);
       items.setLabel(d.getNama());
       cmbNamaDosen.appendChild(items);
     }
   } catch (Exception ex) {
     ex.printStackTrace();
     Messagebox.show(ex.getMessage());
   }
 }
  public void onSelect$compagne() throws SQLException {

    poste_travail.getItems().clear();
    poste_travail.setVisible(true);
    String compagne_id = (String) map_compagne.get((String) compagne.getSelectedItem().getLabel());
    StatCotationEmployeModel cotationMoel = new StatCotationEmployeModel();
    map_poste = cotationMoel.getListPostTravailValid(compagne_id);
    Set set = (map_poste).entrySet();
    Iterator i = set.iterator();

    while (i.hasNext()) {
      Map.Entry me = (Map.Entry) i.next();
      poste_travail.appendItem((String) me.getKey());
    }

    poste_travail.setSelectedIndex(0);
  }