Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.Layout


                if (type == VariantType.LAYOUT) {
                    InternalLayoutContentBuilder content =
                            (InternalLayoutContentBuilder)
                            variant.getContentBuilder();
                    if (content != null) {
                        Layout layout = content.getLayout();
                        if (layout != null) {
                            image = (Image) LAYOUT_ICONS.get(layout.getType());
                        }
                    }
                } else {
                    image = (Image) VARIANT_TYPE_ICONS.get(type);
                }
View Full Code Here


         builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "100");
         builder.setAttribute(FormatConstants.WIDTH_UNITS_ATTRIBUTE,
                              FormatConstants.WIDTH_UNITS_VALUE_PERCENT);
         builder.attributesRead();
         builder.popFormat();
         Layout layout = builder.getLayout();

         InternalPolicyFactory policyFactory = (InternalPolicyFactory)
                 PolicyFactory.getDefaultInstance();
         InternalLayoutContentBuilder layoutContent =
                 policyFactory.createLayoutContentBuilder();
View Full Code Here

        builder.popFormat();

        // Pop spatial
        builder.popFormat();

        Layout layout = builder.getLayout();

        RuntimeDeviceLayout runtimeDeviceLayout =
                RuntimeDeviceLayoutTestHelper.activate(layout);

        return runtimeDeviceLayout;
View Full Code Here

        }

        // Pop grid
        Grid grid = (Grid) builder.popFormat();

        Layout layout = builder.getLayout();
        FormatStylingEngine formatStylingEngine =
                createFormatStylingEngine(layout);

        Styles actualStyles;
View Full Code Here

        builder.setAttribute("Name", "pane");

        builder.popFormat();

        Layout layout = builder.getLayout();

        return RuntimeDeviceLayoutTestHelper.activate(layout);
    }
View Full Code Here

        builder.setAttribute(FormatConstants.WIDTH_UNITS_ATTRIBUTE,
                             FormatConstants.WIDTH_UNITS_VALUE_PIXELS);

        builder.popFormat();

        Layout layout = builder.getLayout();
        result = RuntimeDeviceLayoutTestHelper.activate(layout);

        return result;
    }
View Full Code Here

        builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "100");
        builder.setAttribute(FormatConstants.WIDTH_UNITS_ATTRIBUTE,
                             FormatConstants.WIDTH_UNITS_VALUE_PERCENT);
        builder.attributesRead();
        builder.popFormat();
        Layout layout = builder.getLayout();

        InternalPolicyFactory policyFactory = (InternalPolicyFactory)
                PolicyFactory.getDefaultInstance();
        InternalLayoutContentBuilder layoutContent =
                policyFactory.createLayoutContentBuilder();
View Full Code Here

        builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "100");
        builder.setAttribute(FormatConstants.WIDTH_UNITS_ATTRIBUTE,
                             FormatConstants.WIDTH_UNITS_VALUE_PERCENT);
        builder.attributesRead();
        builder.popFormat();
        Layout layout = builder.getLayout();

        InternalPolicyFactory policyFactory = (InternalPolicyFactory)
                PolicyFactory.getDefaultInstance();
        InternalLayoutContentBuilder layoutContent =
                policyFactory.createLayoutContentBuilder();
View Full Code Here

    public ActivatedLayoutContent activateLayoutContent(
            StyleSheetActivator styleSheetActivator,
            InternalLayoutContent layoutContent) {

        Layout layout = layoutContent.getLayout();

        deviceLayoutUpdater.update(layout);

        // Make sure that the default fragment is set.
        setDefaultFragment(layout);

        // Activate all the formats.
        FormatActivatorFactoryImpl factory = new FormatActivatorFactoryImpl();
        FormatActivator activator = new RecursingFormatActivatorImpl(factory);
        Format rootFormat = layout.getRootFormat();
        activator.activate(rootFormat);

        // create container name -> {fragment, index} map
        final Map containerNameToFragments =
            buildContainerNameToPositionMap(rootFormat);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.layouts.Layout

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.