Package org.zkoss.zul

Examples of org.zkoss.zul.Listbox


    public void objToView(Object obj) {

        BomForm form = (BomForm) obj;

        Listbox buildingListbox = (Listbox) getFellow("buildingListbox");
        Textbox floorTB = (Textbox) getFellow("floor");
        Textbox regionTB = (Textbox) getFellow("region");
        Combobox systemCB = (Combobox) getFellow("system");
        Combobox equipmentCB = (Combobox) getFellow("equipment");
View Full Code Here


            } catch (Exception iae) {
                iae.printStackTrace();
            }
        }

        Listbox buildingListbox = (Listbox) getFellow("buildingListbox");
        Combobox equipmentCB = (Combobox) getFellow("equipment");

        Textbox floorTB = (Textbox) getFellow("floor");
        Textbox regionTB = (Textbox) getFellow("region");
        Combobox priorityCB = (Combobox) getFellow("priority");
        Textbox propertyCodeTB = (Textbox) getFellow("propertyCode");
        Textbox descriptionTB = (Textbox) getFellow("description");

        Building building = (Building) buildingListbox.getSelectedItem().getValue();
        var.setBuilding(building);

        Equipment equ = (Equipment) equipmentCB.getSelectedItem().getValue();
        var.setEquipment(equ);
View Full Code Here

        }

    }

    private void initAuthListbox() {
        Listbox authListbox = (Listbox) getFellow("auth");

        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List authList = sess.selectList("Auth.getAll");
        sess = null;

        ListModel authModel = new ListModelList(authList, true);
        authListbox.setModel(authModel);
        authListbox.setItemRenderer(authListRenderer);
    }
View Full Code Here

        DutyForm obj = form;

        Label userNameLB = (Label) getFellow("userName");
        userNameLB.setValue(user.getUserName());

        Listbox authListbox = (Listbox) getFellow("auth");
        Iterator authItr = authListbox.getItems().iterator();
        while (authItr.hasNext()) {
            Listitem item = (Listitem) authItr.next();
            AuthForm authForm = (AuthForm) item.getValue();
            if (authForm.getAuthId().toString().equals(obj.getAuthId().toString())) {
                authListbox.setSelectedItem(item);
            }
        }

        Datebox validAfterDate = (Datebox) getFellow("validAfterDate");
        Timebox validAfterTime = (Timebox) getFellow("validAfterTime");
View Full Code Here

            }
        }
        var.setOperateBy(operateBy);

        var.setUser(user);
        Listbox authListbox = (Listbox) getFellow("auth");
        var.setAuth((Auth) (authListbox.getSelectedItem()).getValue());

        Datebox validAfterDate = (Datebox) getFellow("validAfterDate");
        Timebox validAfterTime = (Timebox) getFellow("validAfterTime");
        if (validAfterDate.getValue() != null
                && validAfterTime.getValue() != null) {
View Full Code Here

  }

  public void onClick$btn_javaListbox(Event event) throws InterruptedException {
    logger.info(event.getName());

    final Listbox listbox = new Listbox();
    listbox.setWidth("300px");
    listbox.setHeight("300px");
    listbox.setVisible(true);

    final Listhead lHead = new Listhead();
    lHead.setParent(listbox);
    final Listheader lHeader1 = new Listheader();
    lHeader1.setWidth("30%");
    lHeader1.setLabel("Column 1");
    lHeader1.setParent(lHead);
    lHeader1.setVisible(true);
    final Listheader lHeader2 = new Listheader();
    lHeader2.setWidth("30%");
    lHeader2.setLabel("Column 2");
    lHeader2.setParent(lHead);
    final Listheader lHeader3 = new Listheader();
    lHeader3.setWidth("40%");
    lHeader3.setLabel("Column 3");
    lHeader3.setParent(lHead);

    // set the parent where should hold the listbox.
    // ZK do the rendering
    listbox.setParent(this.panelChildJavaListbox);
  }
View Full Code Here

    btnOK.setLabel("OK");
    btnOK.addEventListener("onClick", new OnCloseListener());
    btnOK.setParent(south);

    // Listbox
    listbox = new Listbox();
    listbox.setStyle("border: none;");
    listbox.setHeight("100%");
    listbox.setVisible(true);
    listbox.setParent(center);
    listbox.setItemRenderer(new SearchBoxItemRenderer());
View Full Code Here

    }

    // store the searchObject for reReading
    customerCtrl.setSearchObj(so);

    Listbox listBox = customerCtrl.listBoxCustomer;
    Paging paging = customerCtrl.pagingCustomerList;
    int ps = customerCtrl.pagingCustomerList.getPageSize();

    // set the model to the listbox with the initial resultset get by the
    // DAO method.
    ((PagedListWrapper<Customer>) listBox.getModel()).init(so, listBox, paging);

    labelCustomerSearchResult.setValue(Labels.getLabel("labelCustomerSearchResult.value") + " " + String.valueOf(paging.getTotalSize()));
  }
View Full Code Here

      South south = new South();
      south.setHeight("52px");
      south.setParent(bl);

      // Listbox
      listbox = new Listbox();
      listbox.setStyle("border: none;");
      listbox.setHeight("100%");
      listbox.setVisible(true);
      listbox.setParent(center);
      // listbox.setParent(vbox);
View Full Code Here

    South south = new South();
    south.setBorder("none");
    south.setParent(bl);

    // Listbox
    listbox = new Listbox();
    // listbox.setStyle("border: none;");
    listbox.setStyle("border-top-width: 0px; border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px;");
    listbox.setHeight("100%");
    listbox.setVflex("1");
    listbox.setVisible(true);
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Listbox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.