Package org.jdesktop.binding.metadata

Examples of org.jdesktop.binding.metadata.NumberMetaData


       
        MetaData metaData = null;
        // JW: cannot cope with indexedPropertyTypes (?)
        // they seem to return null for getPropertyType
        if (Number.class.isAssignableFrom(prop.getPropertyType())) {
            metaData = new NumberMetaData(
                    prop.getName(),
                    prop.getPropertyType(),
                    prop.getDisplayName());
        } else if (isNumberType(prop))
        {
            // convert the primitive types to their boxed types
            // this makes the binding code happier in
            // AbstractBinding#convertToModelType
             metaData = new NumberMetaData(
                            prop.getName(),
                            primitivesToBoxed.get(prop.getPropertyType()),
                            prop.getDisplayName());
            // JW: really??
            metaData.setRequired(true);
View Full Code Here

TOP

Related Classes of org.jdesktop.binding.metadata.NumberMetaData

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.