Package de.forsthaus.backend.model

Examples of de.forsthaus.backend.model.Language


      // Set the ListModel and the itemRenderer.
      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


    /* if a language is selected get the object from the listbox */
    Listitem item = lbox_usrLocale.getSelectedItem();

    if (item != null) {
      ListModelList lml1 = (ListModelList) lbox_usrLocale.getListModel();
      Language lang = (Language) lml1.get(item.getIndex());
      anUser.setUsrLocale(lang.getLanLocale());
    }

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

  private static final Logger logger = Logger.getLogger(LanguageListModelItemRenderer.class);

  @Override
  public void render(Listitem item, Object data) throws Exception {

    final Language language = (Language) data;

    final Listcell lc = new Listcell(language.getLanText());
    lc.setParent(item);

    item.setAttribute("data", data);

  }
View Full Code Here

TOP

Related Classes of de.forsthaus.backend.model.Language

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.