Package com.volantis.mcs.interaction

Examples of com.volantis.mcs.interaction.Proxy


        // Javadoc inherited
        public Image getColumnImage(Object o, int i) {
            Image image = null;
            if (o instanceof Proxy) {
                Proxy proxy = (Proxy) o;
                if (proxy.getModelObject() instanceof PropertyValue) {
                    image = getColumnImageProperty(proxy, i);
                }
            }
            return image;
        }
View Full Code Here


        // Javadoc inherited
        public String getColumnText(Object o, int i) {
            String string = "";
            if (o instanceof Proxy) {
                Proxy proxy = (Proxy) o;
                if (proxy.getModelObject() instanceof Rule) {
                    string = getColumnTextRule((BeanProxy) proxy, i);
                } else if (proxy.getModelObject() instanceof PropertyValue) {
                    string = getColumnTextProperty(proxy, i);
                }
            }
            return string;
        }
View Full Code Here

        updateErrorStatus();
    }

    public void updateErrorStatus() {
        Proxy proxy = context.getInteractionModel();
        List diagnostics = (proxy == null) ? null : proxy.getDiagnostics();
        boolean hasErrors = diagnostics != null && !diagnostics.isEmpty();
        if (hasErrors) {
            final PolicyType policyType = ((PolicyEditorContext) context).getPolicyType();
            if (policyType == null) {
                throw new IllegalArgumentException("Policy type is NOT defined for this context");
View Full Code Here

            BeanClassDescriptor descriptor = styleProperties.getBeanClassDescriptor();
            List propertyDescriptors = descriptor.getPropertyDescriptors();
            Iterator it = propertyDescriptors.iterator();
            while (it.hasNext()) {
                PropertyDescriptor propertyDescriptor = (PropertyDescriptor) it.next();
                Proxy property = styleProperties.getPropertyProxy(propertyDescriptor.getIdentifier());
                if (property.getModelObject() != null) {
                    stylePropertyProxies.add(property);
                }
            }
            return stylePropertyProxies.toArray();
        }
View Full Code Here

            return parents.get(o);
        }

        // Javadoc inherited
        public boolean hasChildren(Object o) {
            Proxy proxy = (Proxy) o;
            return proxy.getModelObject() instanceof Rule;
        }
View Full Code Here

    registry = new ImageRegistry();
  }

    // Javadoc inherited
    public Image decorateImage(Image image, Object o) {
        Proxy proxy = (Proxy) o;
        String key = "default";
        List diagnostics = proxy.getDiagnostics();
        if (diagnostics != null && !diagnostics.isEmpty()) {
         
            Object model = proxy.getModelObject();
            if (model != null && model instanceof VariantBuilder) {
                VariantBuilder variant = (VariantBuilder) model;
                VariantType type = variant.getVariantType();

                if (type == VariantType.LAYOUT) {
View Full Code Here

    // Javdoc inherited
    public String getText(Object o) {
        String label = "";

        if (o != null) {
            Proxy proxy = (Proxy) o;
            if (property != null) {
                BeanProxy bean = (BeanProxy) o;
                proxy = bean.getPropertyProxy(property);
            }

            label = render(proxy.getModelObject());
        }

        return label;
    }
View Full Code Here

     * @param o The object being represented
     * @return The decorated image
     */
   
    public Image decorateImage(Image image, Object o) {
        Proxy proxy = (Proxy) o;
        String key = "default";
        if (!proxy.isReadOnly()) {
         
            Object model = proxy.getModelObject();
            if (model != null && model instanceof VariantBuilder) {
                VariantBuilder variant = (VariantBuilder) model;
                VariantType type = variant.getVariantType();

                if (type == VariantType.LAYOUT) {
View Full Code Here

    // Javadoc inherited
    public String getText(Object o) {
        String label = "";

        if (o != null) {
            Proxy proxy = (Proxy) o;

            label = render(proxy.getModelObject());
        }

        return label;
    }
View Full Code Here

    // Javadoc inherited
    public Image getImage(Object o) {
        Image image = null;
        if (o != null) {
            Proxy proxy = (Proxy) o;
            Object model = proxy.getModelObject();
            if (model != null && model instanceof VariantBuilder) {
                VariantBuilder variant = (VariantBuilder) model;
                VariantType type = variant.getVariantType();

                if (type == VariantType.LAYOUT) {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.interaction.Proxy

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.