Package org.apache.tapestry.internal.beaneditor

Examples of org.apache.tapestry.internal.beaneditor.BeanEditorModelImpl


        Messages messages = resources.getMessages();

        ClassPropertyAdapter adapter = _propertyAccess.getAdapter(beanClass);

        BeanEditorModel model = new BeanEditorModelImpl(beanClass, adapter, _typeCoercer, messages);

        for (String propertyName : adapter.getPropertyNames())
        {
            PropertyAdapter pa = adapter.getPropertyAdapter(propertyName);

            if (pa.isRead() && pa.isUpdate())
            {
                String editorType = _registry.get(pa.getType());

                // If an unregistered type, then ignore the property.

                if (editorType.equals(""))
                    continue;

                model.add(propertyName).editorType(editorType);
            }
        }

        return model;
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.internal.beaneditor.BeanEditorModelImpl

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.