Package com.volantis.mcs.model.descriptor

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


            private void browsePolicies() {
                baseURLText.setText(ASSET_GROUP_BROWSE_ACTION.doBrowse(baseURLText.getText(), inputComposite, context));
            }
        });

        BeanClassDescriptor bcd = (BeanClassDescriptor) PolicyModel.MODEL_DESCRIPTOR.getTypeDescriptorStrict(BaseURLPolicyBuilder.class);
        PropertyDescriptor[] properties = new PropertyDescriptor[] {
            bcd.getPropertyDescriptor(PolicyModel.BASE_LOCATION)
        };

        Map comboDescriptors = ComboDescriptorUtil.getBaseLocationDescriptors();

        displayArea.addProperties(properties, false, comboDescriptors, null);
View Full Code Here


         return ComboDescriptorUtil.getBaseLocationDescriptors();
    }

    // Javadoc inherited
    protected PropertyDescriptor[] getAttributeDescriptors() {
        BeanClassDescriptor bcd = (BeanClassDescriptor) PolicyModel.MODEL_DESCRIPTOR.getTypeDescriptorStrict(BaseURLPolicyBuilder.class);
        return new PropertyDescriptor[] {
            bcd.getPropertyDescriptor(PolicyModel.BASE_URL),
            bcd.getPropertyDescriptor(PolicyModel.BASE_LOCATION)
        };
    }
View Full Code Here

        return PolicyType.ROLLOVER_IMAGE;
    }

    // Javadoc inherited
    protected PropertyDescriptor[] getAttributeDescriptors() {
        BeanClassDescriptor bcd = (BeanClassDescriptor) PolicyModel.MODEL_DESCRIPTOR.getTypeDescriptorStrict(RolloverImagePolicyBuilder.class);
        return new PropertyDescriptor[] {
            bcd.getPropertyDescriptor(PolicyModel.NORMAL_POLICY),
            bcd.getPropertyDescriptor(PolicyModel.OVER_POLICY)
        };
    }
View Full Code Here

                if (categoryComposite == null) {
                    List properties = category.getProperties();
                    List propertyDescriptors = new ArrayList();
                    Iterator it = properties.iterator();

                    BeanClassDescriptor typeDescriptor = (BeanClassDescriptor)
                            PolicyModel.MODEL_DESCRIPTOR.
                            getTypeDescriptorStrict(StyleProperties.class);

                    while (it.hasNext()) {
                        StyleProperty details = (StyleProperty) it.next();
                        PropertyIdentifier identifier = ThemeModel.
                                getPropertyIdentifierForStyleProperty(details);
                        PropertyDescriptor descriptor =
                                typeDescriptor.getPropertyDescriptor(identifier);
                        propertyDescriptors.add(descriptor);
                    }

                    PropertyDescriptor[] descriptors = new PropertyDescriptor[propertyDescriptors.size()];
                    descriptors = (PropertyDescriptor[]) propertyDescriptors.toArray(descriptors);
View Full Code Here

         * @param styleProperties The proxy for a set of style properties
         * @return An array of proxies representing the individual properties
         */
        private Object[] getStylePropertyProxies(BeanProxy styleProperties) {
            List stylePropertyProxies = new ArrayList();
            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) {
View Full Code Here

        layout.marginHeight = 0;
        layout.marginWidth = 0;
        displayArea.setLayout(layout);

        PolicyModelSet modelSet = PolicyModelSet.getModelSet(context.getPolicyType());
        BeanClassDescriptor typeDescriptor = (BeanClassDescriptor)
                PolicyModel.MODEL_DESCRIPTOR.
                getTypeDescriptorStrict(modelSet.getMetaDataClass());

        List propertyList = typeDescriptor.getPropertyDescriptors();
        PropertyDescriptor[] properties = new PropertyDescriptor[propertyList.size()];
        for (int i = 0; i < properties.length; i++) {
            properties[i] = (PropertyDescriptor) propertyList.get(i);
        }
View Full Code Here

     * @param propertiesComposite The containing
     */
    private void addGenericImageSelectionComposite(
            PropertiesComposite propertiesComposite) {

        BeanClassDescriptor typeDescriptor = (BeanClassDescriptor)
                PolicyModel.MODEL_DESCRIPTOR.
                getTypeDescriptorStrict(GenericImageSelectionBuilder.class);

        List propertyList = typeDescriptor.getPropertyDescriptors();
        PropertyDescriptor[] properties = new PropertyDescriptor[propertyList.size()];
        for (int i = 0; i < properties.length; i++) {
            properties[i] = (PropertyDescriptor) propertyList.get(i);
        }

View Full Code Here

        // Visit the children.
        proxy.accept(this);
    }

    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());
View Full Code Here

    private final GUI gui;

    public BeanComponent(GUI gui, BeanProxy proxy) {
        this.gui = gui;

        BeanClassDescriptor descriptor = proxy.getBeanClassDescriptor();
        List properties = descriptor.getPropertyDescriptors();

        int count = properties.size();
        setLayout(new BorderLayout());

        if (count > 1) {
View Full Code Here

     * getting a model object for one does not update the other.
     */
    public void testGettingModelObjectForProxyDoesNotAffectOthers() {

        ModelDescriptor modelDescriptor = Descriptors.MODEL_DESCRIPTOR;
        BeanClassDescriptor contactsDescriptor = (BeanClassDescriptor)
                modelDescriptor.getTypeDescriptorStrict(Contacts.class);

        InteractionFactory factory = InteractionFactory.getDefaultInstance();
        InteractionModel model = factory.createInteractionModel(modelDescriptor);

View Full Code Here

TOP

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

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.