Esempio n. 1
0
  @Listen("onClick = #addBtn")
  public void add() throws InterruptedException {
    Node node = nodeList.getSelectedItem().getValue();
    node = nodeDao.loadById(node.getId());
    AbstractQuestionRelation p = (AbstractQuestionRelation) getParent();
    node.getGroups().addAll((p.getQuestion().getAvailableGroups()));
    nodeDao.save(node);

    // update interface
    p.refreshWholePage();
  }
Esempio n. 2
0
    public void onEvent(Event event) throws UiException, SQLException {
      Listbox thelb = (Listbox) division_holder.getFellowIfAny(division_lbid);
      String iwhat = thelb.getSelectedItem().getLabel();
      String iname = luhand.matchLookup_ReturnStr("TP_DIVISIONS", iwhat, 2); // get name by disptext
      populateSectionColumn(iname);

      // remove prev tests lb if any
      if (tests_holder.getFellowIfAny(tests_lbid) != null) {
        Listbox prevlb = (Listbox) tests_holder.getFellowIfAny(tests_lbid);
        prevlb.setParent(null);
      }
    }
Esempio n. 3
0
 public void onEvent(Event event) throws UiException, SQLException {
   Listbox thelb = (Listbox) section_holder.getFellowIfAny(section_lbid);
   String iwhat = thelb.getSelectedItem().getLabel();
   selected_groupcode = iwhat; // save for later usage
   populateTestParametersColumn(selected_category, iwhat);
 }