Package com.volantis.mcs.policies.variants.layout

Examples of com.volantis.mcs.policies.variants.layout.InternalLayoutContentBuilder


        builder.popFormat();
        Layout layout = builder.getLayout();

        InternalPolicyFactory policyFactory = (InternalPolicyFactory)
                PolicyFactory.getDefaultInstance();
        InternalLayoutContentBuilder layoutContent =
                policyFactory.createLayoutContentBuilder();
        layoutContent.setLayout(layout);

        StyleSheetActivator styleSheetActivator =
                new StyleSheetActivatorImpl(null, null);

        // Activate it to turn it into a runtime device layout
        LayoutContentActivator activator = new LayoutContentActivator();
        final ActivatedLayoutContent activatedLayoutContent =
                activator.activateLayoutContent(styleSheetActivator,
                        (InternalLayoutContent) layoutContent.getContent());
        RuntimeDeviceLayout runtimeLayout = new RuntimeLayoutAdapter(
                "<anonymous>", layout,
                activatedLayoutContent.getCompiledStyleSheet(),
                activatedLayoutContent.getContainerNameToFragments());
View Full Code Here


     *
     * @return The runtime device layout.
     */
    public static RuntimeDeviceLayout activate(Layout layout) {

        InternalLayoutContentBuilder layoutContent =
                policyFactory.createLayoutContentBuilder();
        layoutContent.setLayout(layout);

        PolicyReferenceFactory referenceFactory = createReferenceFactory();

        LayoutActivator layoutActivator = new LayoutActivator(referenceFactory);

View Full Code Here

        List variantBuilders = variablePolicyBuilder.getVariantBuilders();
        for (int i = 0; i < variantBuilders.size(); i++) {
            VariantBuilder variantBuilder = (VariantBuilder)
                    variantBuilders.get(i);

            InternalLayoutContentBuilder layoutContentBuilder =
                    (InternalLayoutContentBuilder)
                    variantBuilder.getContentBuilder();
            // Convert the content builder back into a content. This will
            // trigger a partial validation of the policy with consequent
            // redundant logging.
            InternalLayoutContent layout = layoutContentBuilder
                    .getInternalLayoutContent();

            final ActivatedLayoutContent activated =
                    contentActivator.activateLayoutContent(
                            styleSheetActivator, layout);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.layout.InternalLayoutContentBuilder

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.