Examples of RuntimeLayoutAdapter


Examples of com.volantis.mcs.runtime.layouts.RuntimeLayoutAdapter

        // Javadoc inherited
        public RuntimeDeviceLayout getDeviceLayout() {
            Layout layout = createDeviceLayout();
            layout.setDefaultFormFragmentName("default");
            return new RuntimeLayoutAdapter("fred", layout, null, null);
        }
View Full Code Here

Examples of com.volantis.mcs.runtime.layouts.RuntimeLayoutAdapter

        CompiledStyleSheet compiledStyleSheet = compiler.compileStyleSheet(null);

        DeviceLayoutContext deviceLayoutContext =
                new TestDeviceLayoutContext(pageContext);
        deviceLayoutContext.setMarinerPageContext(pageContext);
        RuntimeDeviceLayout runtimeDeviceLayout = new RuntimeLayoutAdapter(
                "layoutName", new CanvasLayout(), compiledStyleSheet, null);
        deviceLayoutContext.setDeviceLayout(runtimeDeviceLayout);
        deviceLayoutContext.initialise ();

        pageContext.pushDeviceLayoutContext(deviceLayoutContext);
View Full Code Here

Examples of com.volantis.mcs.runtime.layouts.RuntimeLayoutAdapter

            return buffer;
        }

        // Javadoc inherited
        public RuntimeDeviceLayout getDeviceLayout() {
            return new RuntimeLayoutAdapter(
                    "Name",
                    new CanvasLayout() {
                // Javadoc inherited
                public String getDefaultFormFragmentName() {
                    return "default";
View Full Code Here

Examples of com.volantis.mcs.runtime.layouts.RuntimeLayoutAdapter

         // 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());

         return runtimeLayout;
View Full Code Here

Examples of com.volantis.mcs.runtime.layouts.RuntimeLayoutAdapter

            InternalDevice device) {

        ActivatedLayoutContent content =
                (ActivatedLayoutContent) variant.getContent();

        return new RuntimeLayoutAdapter(policy.getName(), content.getLayout(),
                content.getCompiledStyleSheet(),
                content.getContainerNameToFragments());
    }
View Full Code Here

Examples of com.volantis.mcs.runtime.layouts.RuntimeLayoutAdapter

        // 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());

        return runtimeLayout;
View Full Code Here

Examples of com.volantis.mcs.runtime.layouts.RuntimeLayoutAdapter

        // 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());

        return runtimeLayout;
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.