Package org.internna.iwebmvc.model.core

Examples of org.internna.iwebmvc.model.core.Rating


*/
public class RatingBinder extends PropertyEditorSupport {

    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        Rating r = (Rating) getValue();
        if (StringUtils.hasText(text)) {
            if (r == null) r = new Rating();
            r.setRating(Double.parseDouble(text));
        }
        setValue(r);
    }
View Full Code Here

TOP

Related Classes of org.internna.iwebmvc.model.core.Rating

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.