Package com.volantis.mcs.model.property

Examples of com.volantis.mcs.model.property.PropertyIdentifier


        // Populate the model object with copies of the model objects held
        // by each of the proxies.
        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();

            Proxy childProxy = getPropertyProxy(identifier);
            Object childObject = childProxy.copyModelObject();
            accessor.set(copy, childObject);
View Full Code Here


                                     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 =
View Full Code Here

    public Proxy traverse(Step step, boolean enclosing, List proxies) {
        if (step instanceof PropertyStep) {
            PropertyStep propertyStep = (PropertyStep) step;
            String property = propertyStep.getProperty();
            PropertyIdentifier identifier =
                    beanClassDescriptor.getPropertyIdentifier(property);
            if (identifier != null) {
                return getPropertyProxy(identifier);
            }
        }
View Full Code Here

    public void accept(ProxyVisitor visitor) {
        visitor.visit(this);
    }

    protected void addStepToPath(PathBuilder builder, Proxy childProxy) {
        PropertyIdentifier property = getPropertyForProxy(childProxy);
        builder.addPropertyStep(property);
    }
View Full Code Here

                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

TOP

Related Classes of com.volantis.mcs.model.property.PropertyIdentifier

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.