Package net.sourceforge.hibernateswt.exception

Examples of net.sourceforge.hibernateswt.exception.ViewDataBeanValidationException


     */
    public BigDecimal convertWidgetToProperty(Spinner widget) throws ViewDataBeanValidationException {
        try {
            return new BigDecimal(widget.getText());
        } catch(NumberFormatException nfe) {
            throw new ViewDataBeanValidationException(nfe);
        }
    }
View Full Code Here


     */
    public Integer convertWidgetToProperty(Text widget) throws ViewDataBeanValidationException {
        try {
            return new Integer(widget.getText());
        } catch(NumberFormatException nfe) {
            throw new ViewDataBeanValidationException("Widget value '"+widget.getText()+"' is not a valid number, data is incorrect or widget mapping to Integer is incorrect.", nfe);
        }
    }
View Full Code Here

    @Override
    public T getViewDataObject() throws ViewDataBeanValidationException {
        errorMap = validateUserInput();
        if(errorMap.size()!=0)
            throw new ViewDataBeanValidationException("Bean could not be validated, review error map.");
        return super.getViewDataObject();
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.hibernateswt.exception.ViewDataBeanValidationException

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.