Package org.hoteia.qalingo.core.web.mvc.viewbean

Examples of org.hoteia.qalingo.core.web.mvc.viewbean.ValueBean


          List<Warehouse> warehouses = warehouseService.findWarehouses();
          if(warehouses != null){
            for (Iterator<Warehouse> iterator = warehouses.iterator(); iterator.hasNext();) {
                Warehouse warehouseIt = (Warehouse) iterator.next();
                final String warehouseId = warehouseIt.getId().toString();
          warehousesValues.add(new ValueBean(warehouseId, warehouseIt.getName()));
            }
            Collections.sort(warehousesValues, new Comparator<ValueBean>() {
          @Override
          public int compare(ValueBean o1, ValueBean o2) {
            return o1.getValue().compareTo(o2.getValue());
View Full Code Here


            final Map<String, String> countries = referentialDataService.getCountriesByLocale(locale);
            if(countries != null){
                Set<String> countriesKey = countries.keySet();
                for (Iterator<String> iterator = countriesKey.iterator(); iterator.hasNext();) {
                    final String countryKey = (String) iterator.next();
                    countriesValues.add(new ValueBean(countryKey.replace(Constants.COUNTRY_MESSAGE_PREFIX, ""), countries.get(countryKey)));
                }
                Collections.sort(countriesValues, new Comparator<ValueBean>() {
                    @Override
                    public int compare(ValueBean o1, ValueBean o2) {
                        return o1.getValue().compareTo(o2.getValue());
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.web.mvc.viewbean.ValueBean

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.