Package com.volantis.mcs.interaction

Examples of com.volantis.mcs.interaction.Proxy.prepareSetModelObjectOperation()


     */
    private void setModelContent(ContentBuilder content) {
        BeanProxy selectedVariant = context.getSelectedVariant();
        if (selectedVariant != null) {
            Proxy contentProxy = selectedVariant.getPropertyProxy(PolicyModel.CONTENT);
            Operation setContent = contentProxy.prepareSetModelObjectOperation(content);
            context.executeOperation(setContent);
        }
    }

    /**
 
View Full Code Here


                                PropertyDescriptor property,
                                Object newValue) {
                            Proxy propertyProxy = ((BeanProxy) context.
                                    getInteractionModel()).getPropertyProxy(
                                    property.getIdentifier());
                            Operation setOp = propertyProxy.
                                    prepareSetModelObjectOperation(newValue);
                            context.executeOperation(setOp);
                        }
                    });
        }
View Full Code Here

                Proxy categorisationScheme = model.getPropertyProxy(
                        PolicyModel.CATEGORISATION_SCHEME);

                if (!ObjectHelper.equals(policyName,
                        categorisationScheme.getModelObject())) {
                    Operation setSchemeOp = categorisationScheme
                            .prepareSetModelObjectOperation(policyName);
                    context.executeOperation(setSchemeOp);
                }
            }
        });
View Full Code Here

                    String oldValue = labelProvider.getColumnText(ruleProxy, COLUMN_SELECTOR);
                    if (!oldValue.equals(newValue)) {
                        List parsed =
                                CSS_PARSER.parseSelectorGroup((String) newValue);
                        ListProxy selectorsProxy = (ListProxy) ruleProxy.getPropertyProxy(Rule.SELECTORS);
                        Operation setList = selectorsProxy.prepareSetModelObjectOperation(parsed);
                        context.executeOperation(setList);
                    }
                }
            }
        });
View Full Code Here

            // don't alter the value (such as adding irrelevant whitespace)
            // from being seen as modifications leading to exceptions when
            // carrying out the set operation.
            if ((newPropertyValue == null) ? oldPropertyValue != null :
                    !newPropertyValue.equals(oldPropertyValue)) {
                Operation operation = valueProxy.prepareSetModelObjectOperation(newPropertyValue);
                context.executeOperation(operation);
            }
        }
    }
View Full Code Here

                if (identifier == PolicyModel.CONVERSION_MODE) {
                    updateImagePreserveControlState((ImageConversionMode) newValue);
                }

                Proxy propertyProxy = metadataProxy.getPropertyProxy(descriptor.getIdentifier());
                Operation setValue = propertyProxy.prepareSetModelObjectOperation(newValue);
                context.executeOperation(setValue);
            }
        }
    }
View Full Code Here

                if (selectionBeanProxy != null &&
                        selectionBeanProxy.getBeanClassDescriptor().
                        getPropertyDescriptor(identifier) != null) {
                    Proxy propertyProxy =
                            selectionBeanProxy.getPropertyProxy(identifier);
                    Operation setValue = propertyProxy.
                            prepareSetModelObjectOperation(newValue);
                    context.executeOperation(setValue);
                }
            }
        }
View Full Code Here

        // Opaque proxy operations
        Proxy opaqueProxy = wilmaProxy.getPropertyProxy(Person.FIRST_NAME);
        opaqueProxy.setReadWriteState(ReadWriteState.READ_ONLY);
        assertOperationFails("Set model should fail when property is RO",
                opaqueProxy.prepareSetModelObjectOperation("Pebbles"));
    }

    /**
     * Tests that read/write states are inherited correctly.
     */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.