Package com.volantis.mcs.policies.variants.theme

Examples of com.volantis.mcs.policies.variants.theme.ThemeContentBuilder


            BeanProxy contentBeanProxy = (BeanProxy) contentProxy;
            Proxy importParent = contentBeanProxy.getPropertyProxy(ThemeModel.IMPORT_PARENT_DEVICE_THEME);
            importParent.setModelObject(Boolean.valueOf(importParentCheckbox.getSelection()));
        } else {
            // add a content builder to avoid "variant no content
            final ThemeContentBuilder contentBuilder =
                InternalPolicyFactory.getInternalInstance().
                    createThemeContentBuilder();
            setModelContent(contentBuilder);
        }
    }
View Full Code Here


                final VariantType variantType =
                    ((PolicyEditorContext) context).getDefaultVariantType();
                VariantBuilder newVariant = PolicyFactory.getDefaultInstance().
                        createVariantBuilder(variantType);
                if (variantType == VariantType.THEME) {
                    final ThemeContentBuilder contentBuilder =
                        InternalPolicyFactory.getInternalInstance().
                            createThemeContentBuilder();
                    newVariant.setContentBuilder(contentBuilder);
                }
                Operation addOperation =
View Full Code Here

        if (!nullType && deviceTheme != null) {
            BaseProxy content = (BaseProxy) deviceTheme.getPropertyProxy(PolicyModel.CONTENT);
            BeanProxy concreteContent = (BeanProxy) content.getConcreteProxy();
            if (concreteContent == null && !content.isReadOnly()) {
                ThemeContentBuilder contentModel =
                        InternalPolicyFactory.getInternalInstance().createThemeContentBuilder();
                content.setModelObject(contentModel);
                concreteContent = (BeanProxy) content.getConcreteProxy();
            }
View Full Code Here

    private BeanProxy getSelectedStyleSheetProxy() {
        BeanProxy variant = context.getSelectedVariant();
        BaseProxy content = (BaseProxy) variant.getPropertyProxy(PolicyModel.CONTENT);
        BeanProxy concreteContent = (BeanProxy) content.getConcreteProxy();
        if (concreteContent == null) {
            ThemeContentBuilder contentModel =
                    InternalPolicyFactory.getInternalInstance().createThemeContentBuilder();
            content.setModelObject(contentModel);
            concreteContent = (BeanProxy) content.getConcreteProxy();
        }
View Full Code Here

        if (variants.isEmpty()) {
            final VariantBuilder variantBuilder =
                POLICY_FACTORY.createVariantBuilder(variantType);
            variants.add(variantBuilder);
            if (variantType == VariantType.THEME) {
                final ThemeContentBuilder contentBuilder =
                    InternalPolicyFactory.getInternalInstance().
                        createThemeContentBuilder();
                variantBuilder.setContentBuilder(contentBuilder);
            }
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.theme.ThemeContentBuilder

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.