Package org.openqreg.bean

Examples of org.openqreg.bean.AjaxAutocompleteAnswer


            .getUser(userId), 99999, term);

        Collection<AjaxAutocompleteAnswer> col = Collections
            .synchronizedList(new ArrayList<AjaxAutocompleteAnswer>());
        for (CentreBean cb : vc) {
          AjaxAutocompleteAnswer aaa = new AjaxAutocompleteAnswer();
          aaa.setLabel(cb.getCentrename());
          aaa.setValue(cb.getId());
          aaa.setExtra1(cb.getId()+" : "+ cb.getCentrename());
          col.add(aaa);
        }
        for(int i =0; i<100; i++) {
          AjaxAutocompleteAnswer aaa = new AjaxAutocompleteAnswer();
          aaa.setLabel("name");
          aaa.setValue("id");
          aaa.setExtra1("name"+" : "+ "id");
          col.add(aaa);
        }
        return col;
      } catch (SQLException e) {
        // TODO Auto-generated catch block
View Full Code Here


    try {
      Collection<UserBean> uc;
      uc = UserFinder.searchByIdOrFirstnameOrLastname(Dispatcher
          .getInstance().getUser(userId), 999, term, term, term);
      for (UserBean ub : uc) {
        AjaxAutocompleteAnswer aaa = new AjaxAutocompleteAnswer();
        aaa.setLabel(ub.getFirstname() + " " + ub.getLastname());
        aaa.setValue(ub.getId());
        aaa.setExtra1(ub.getId() + " : " + ub.getFirstname() + " "
            + ub.getLastname());
        col.add(aaa);
      }
    } catch (SQLException e) {
      // TODO Auto-generated catch block
View Full Code Here

            }
            if (show) {
              if (grpidforcentre == null) {
                grpidforcentre = UsercentrerelFinder.findGroupidByUseridCentreid(con, user.getId(), cb.getId());
              }
              AjaxAutocompleteAnswer aaa = new AjaxAutocompleteAnswer();
              aaa.setLabel(cb.getCentrename());
              aaa.setValue(cb.getId());
              aaa.setExtra1(AdminUserCentreRelFormTag.getGroupSelect(LanguageHandler.getInstance(), user.getLanguageid(),
                  grpidforcentre, cb.getId(), null, userGroupMap, userGroupRels).toString());
              aaac.add(aaa);             
            }
          } else {
            AjaxAutocompleteAnswer aaa = new AjaxAutocompleteAnswer();
            aaa.setLabel(cb.getCentrename());
            aaa.setValue(cb.getId());
            aaa.setExtra1(cb.getId()+" : "+ cb.getCentrename());
            aaac.add(aaa);                         
          }
        }
        return aaac;
      } finally {
View Full Code Here

TOP

Related Classes of org.openqreg.bean.AjaxAutocompleteAnswer

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.