Package org.zkoss.zul

Examples of org.zkoss.zul.ListModelList.indexOf()


    SecTyp typ = getSecurityService().getTypById(right.getRigType().intValue());

    if (right.isNew()) {
      rigType.setSelectedIndex(-1);
    } else {
      rigType.setSelectedIndex(lml.indexOf(typ));
    }

    // set Field Properties
    doSetFieldProperties();
View Full Code Here


        final ListModelList lml = (ListModelList) listBoxSecRights.getListModel();

        // Check if the object is new or updated
        // -1 means that the obj is not in the list, so it's
        // new..
        if (lml.indexOf(aRight) == -1) {
        } else {
          lml.remove(lml.indexOf(aRight));
        }

        secRightDialogWindow.onClose(); // close
View Full Code Here

        // Check if the object is new or updated
        // -1 means that the obj is not in the list, so it's
        // new..
        if (lml.indexOf(aRight) == -1) {
        } else {
          lml.remove(lml.indexOf(aRight));
        }

        secRightDialogWindow.onClose(); // close
      }
    }
View Full Code Here

    // now synchronize the listBox
    ListModelList lml = (ListModelList) this.listBoxSecRights.getListModel();

    // Check if the object is new or updated
    // -1 means that the obj is not in the list, so it's new.
    if (lml.indexOf(aRight) == -1) {
      lml.add(aRight);
    } else {
      lml.set(lml.indexOf(aRight), aRight);
    }
View Full Code Here

    // Check if the object is new or updated
    // -1 means that the obj is not in the list, so it's new.
    if (lml.indexOf(aRight) == -1) {
      lml.add(aRight);
    } else {
      lml.set(lml.indexOf(aRight), aRight);
    }

    doReadOnly();
    btnCtrl.setBtnStatus_Save();
    // init the old values vars new
View Full Code Here

      listBoxDetails_UserRoles.setModel(new ListModelList(getUserService().getRolesByUser(getUser())));
      listBoxDetails_UserRoles.setItemRenderer(new UserRolesListModelItemRenderer());

      if (!StringUtils.isEmpty(user.getUsrLocale())) {
        Language lang = getUserService().getLanguageByLocale(user.getUsrLocale());
        lbox_usrLocale.setSelectedIndex(lml.indexOf(lang));
      }
    }

    doShowDialog(getUser());
  }
View Full Code Here

            // Check if the object is new or updated
            // -1 means that the obj is not in the list, so
            // it's
            // new..
            if (lml.indexOf(anUser) == -1) {
            } else {
              lml.remove(lml.indexOf(anUser));
            }
          }
        } catch (final Exception e) {
View Full Code Here

            // -1 means that the obj is not in the list, so
            // it's
            // new..
            if (lml.indexOf(anUser) == -1) {
            } else {
              lml.remove(lml.indexOf(anUser));
            }
          }
        } catch (final Exception e) {
          // TODO: handle exception
        }
View Full Code Here

    // now synchronize the listBox
    ListModelList lml = (ListModelList) listBoxUser.getListModel();

    // Check if the object is new or updated
    // -1 means that the obj is not in the list, so it's new.
    if (lml.indexOf(anUser) == -1) {
      lml.add(anUser);
    } else {
      lml.set(lml.indexOf(anUser), anUser);
    }
View Full Code Here

    // Check if the object is new or updated
    // -1 means that the obj is not in the list, so it's new.
    if (lml.indexOf(anUser) == -1) {
      lml.add(anUser);
    } else {
      lml.set(lml.indexOf(anUser), anUser);
    }

    doReadOnly();
    btnCtrl.setBtnStatus_Save();
    // init the old values vars new
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.