Package org.zkoss.zul

Examples of org.zkoss.zul.Listitem$ExtraCtrl


    public void selectSub() {
        if (subListbox == null) {
            subListbox = (Listbox) this.getFellow("subObjListbox");
        }
        Listitem item = subListbox.getSelectedItem();

        sub = (DutyForm) item.getValue();
    }
View Full Code Here


        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);
            }
        }
View Full Code Here

   * @throws Exception
   */
  public void onSelect$listBoxSecUser(Event event) throws Exception {

    // get the selected object
    Listitem item = listBoxSecUser.getSelectedItem();

    // Casting
    SecUser anUser = (SecUser) item.getAttribute("data");
    setSelectedUser(anUser);

    // ++ create the searchObject and init sorting ++//
    HibernateSearchObject<SecRole> soSecRole = new HibernateSearchObject<SecRole>(SecRole.class, getCountRowsSecRole());
    soSecRole.addSort("rolShortdescription", false);
View Full Code Here

    // fill the object with the components data
    doWriteComponentsToBean(aRight);

    // get the selected object from the listbox
    Listitem item = this.rigType.getSelectedItem();

    if (item == null) {
      try {
        Messagebox.show("Please select a right type !");
      } catch (final InterruptedException e) {
        throw new RuntimeException(e);
      }
      return;
    }
    ListModelList lml1 = (ListModelList) rigType.getListModel();
    SecTyp typ = (SecTyp) lml1.get(item.getIndex());
    aRight.setRigType(Integer.valueOf(typ.getStpId()));

    // save it to database
    try {
      getSecurityService().saveOrUpdate(aRight);
View Full Code Here

    // if (!workspace.isAllowed("UserList_listBoxUser.onDoubleClick")) {
    // return;
    // }

    // get the selected object
    Listitem item = listBoxUser.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      SecUser anUser = (SecUser) item.getAttribute("data");

      showDetailView(anUser);
    }
  }
View Full Code Here

   * @throws Exception
   */
  public void onDoubleClickedRightItem(Event event) throws Exception {

    // get the selected object
    Listitem item = this.listBoxSecRights.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      SecRight aRight = (SecRight) item.getAttribute("data");

      showDetailView(aRight);
    }
  }
View Full Code Here

      soSecRight.addSort("rigName", false);

      soSecRight.addFilter(new Filter("rigName", "%" + tb_SecRightList_rigName.getValue() + "%", Filter.OP_ILIKE));

      // check if we must include a selected RightType item
      Listitem item = lb_secRight_RightType.getSelectedItem();

      if (item != null) {

        // casting to the needed object
        SecTyp type = (SecTyp) item.getAttribute("data");

        if (type.getStpId() > -1) {
          soSecRight.addFilter(new Filter("rigType", type.getStpId(), Filter.OP_EQUAL));
        }
View Full Code Here

    // ++ create the searchObject and init sorting ++//
    HibernateSearchObject<SecRight> soSecRight = null;

    // get the selected item
    Listitem item = lb_secRight_RightType.getSelectedItem();

    if (item != null) {
      checkbox_SecRightList_ShowAll.setChecked(false); // clear
      // casting to the needed object
      SecTyp type = (SecTyp) item.getAttribute("data");

      if (type.getStpId() > -1) {

        soSecRight = new HibernateSearchObject<SecRight>(SecRight.class, getCountRows());
        soSecRight.addSort("rigName", false);
View Full Code Here

  }

  public void onSelect$listBoxSecRole(Event event) throws Exception {

    // get the selected object
    Listitem item = this.listBoxSecRole.getSelectedItem();

    // Casting
    SecRole aRole = (SecRole) item.getAttribute("data");
    setSelectedRole(aRole);

    // ++ create the searchObject and init sorting ++//
    HibernateSearchObject<SecGroup> soSecRolegroup = new HibernateSearchObject<SecGroup>(SecGroup.class, getCountRowsSecRolegroup());
    soSecRolegroup.addSort("grpShortdescription", false);
View Full Code Here

   * @throws Exception
   */
  public void onDoubleClicked(Event event) throws Exception {

    // get the selected object
    Listitem item = listBoxSecGroups.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      SecGroup aGroup = (SecGroup) item.getAttribute("data");

      showDetailView(aGroup);
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Listitem$ExtraCtrl

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.