Package com.volantis.mcs.model.descriptor

Examples of com.volantis.mcs.model.descriptor.PropertyDescriptor


    protected void updateModelObject(Object modelObject,
                                     boolean force,
                                     boolean originator) {
        List list = beanClassDescriptor.getPropertyDescriptors();
        for (int i = 0; i < list.size(); i++) {
            PropertyDescriptor descriptor = (PropertyDescriptor) list.get(i);
            PropertyIdentifier identifier = descriptor.getIdentifier();
            PropertyAccessor accessor = descriptor.getPropertyAccessor();

            Object propertyModelObject = accessor.get(modelObject);
            if (propertyModelObject != null) {
                InternalProxy propertyProxy =
                        (InternalProxy) getPropertyProxy(identifier);
View Full Code Here


    public void visit(BeanProxy proxy) {
        BeanClassDescriptor descriptor = proxy.getBeanClassDescriptor();
        List properties = descriptor.getPropertyDescriptors();
        for (int i = 0; i < properties.size(); i++) {
            PropertyDescriptor property = (PropertyDescriptor)
                    properties.get(i);
            InternalProxy child = (InternalProxy) proxy.getPropertyProxy(
                    property.getIdentifier());
            if (child != null) {
                walk(child);
            }
        }
    }
View Full Code Here

            panel.setLayout(new GridLayout(count, 2));

            ControlCreator controlCreator = new ControlCreator(this.gui);

            for (int i = 0; i < count; i++) {
                PropertyDescriptor property = (PropertyDescriptor)
                        properties.get(i);

                TypeDescriptor propertyType = property.getPropertyType();

                PropertyIdentifier identifier = property.getIdentifier();
                Proxy propertyProxy = proxy.getPropertyProxy(identifier);

                panel.add(new JLabel(identifier.getDescription()));
                panel.add(
                        controlCreator.createControl(
                                propertyType, propertyProxy));
            }
        } else if (count == 1) {
            PropertyDescriptor property =
                    (PropertyDescriptor) properties.get(0);
            PropertyIdentifier identifier = property.getIdentifier();
            Proxy propertyProxy = proxy.getPropertyProxy(identifier);
            add(new ComponentCreator(gui).create(propertyProxy),
                BorderLayout.CENTER);

        } else {
View Full Code Here

            fireEvent((InternalProxy) proxy);

            BeanClassDescriptor descriptor = proxy.getBeanClassDescriptor();
            List properties = descriptor.getPropertyDescriptors();
            for (int i = 0; i < properties.size(); i++) {
                PropertyDescriptor property = (PropertyDescriptor)
                        properties.get(i);
                Proxy child = proxy.getPropertyProxy(property.getIdentifier());
                propagate(child);
            }
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.model.descriptor.PropertyDescriptor

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.