Package org.zeroexchange.model.location

Examples of org.zeroexchange.model.location.City


    @Override
    protected void onBeforeRender() {
        Location location = getModelObject();
        if(location != null) {
            City city = location.getCity();
            if(city != null) {
                Country country = city.getCountry();
                if(country != null) {
                    countryChoice.setModelObject(country);
                    cityChoice.setChoices(getCities(country));
                    cityChoice.setModelObject(city);
                }
View Full Code Here


            @Override
            public void populateItem(Item<ICellPopulator<T>> cellItem,
                    String componentId, IModel<T> rowModel) {
                ResourceTender resourceTender = rowModel.getObject();
                Location location = resourceTender.getLocation();
                City city = location.getCity();
                Country country = null;
                IModel<String> locationModel = null;
                if(city != null) {
                    country = city.getCountry();
                    String cityName = localizationReader.getString(city);
                    locationModel = country == null ?
                            new Model<String>(cityName) :
                                new StringResourceModel(MKEY_LOCATIONTEMPLATE_COUNTRY, null, new Object[]{cityName, localizationReader.getString(country)});
                }
View Full Code Here

TOP

Related Classes of org.zeroexchange.model.location.City

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.