Package uk.ac.osswatch.simal.model.utils

Examples of uk.ac.osswatch.simal.model.utils.DoapResourceByNameComparator


     
      List<SelectCategoryInputModel<IDoapLicence>> data = new ArrayList<SelectCategoryInputModel<IDoapLicence>>();

      final List<IDoapLicence> allDoapLicences = new ArrayList<IDoapLicence>(SimalRepositoryFactory
            .getInstance().getAllLicences());
      Collections.sort(allDoapLicences, new DoapResourceByNameComparator());
     
      for(IDoapLicence licence : licences) {
        SelectCategoryInputModel<IDoapLicence> inputModel = new SelectCategoryInputModel<IDoapLicence>();
        inputModel.setComboChoice(licence);
        data.add(inputModel);
View Full Code Here


      LOGGER.warn("Could not retreive all categories for adding new Category");
      allCategories = new HashSet<IDoapCategory>();
    }
    List<IDoapCategory> allCategoriesListed = new ArrayList<IDoapCategory>(
        allCategories);
    Collections.sort(allCategoriesListed, new DoapResourceByNameComparator());

    categoryField = new DropDownChoice<IDoapCategory>("listedCategories",
        new PropertyModel<IDoapCategory>(inputModel, "comboChoice"),
        allCategoriesListed, new ChoiceRenderer<IDoapCategory>("name", "label")) {
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.model.utils.DoapResourceByNameComparator

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.