Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.TestDeviceLayoutContext


        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        context.setDeviceLayout(runtimeDeviceLayout);

        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();

        resetElement();

        attribute = new StyleAttributes();
        attribute.setStyles(StylesBuilder.getDeprecatedStyles());
        attribute.setTitle("My title");

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);
        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setStyleClass("fred");
View Full Code Here


     * Test the method: closePane
     */
    public void testClosePane() throws Exception {
        context = new TestMarinerPageContext();
        protocol.setMarinerPageContext(context);
        TestDeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        context.pushDeviceLayoutContext(deviceContext);

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
        PaneAttributes attributes = new PaneAttributes();
View Full Code Here

        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        context.setDeviceLayout(runtimeDeviceLayout);

        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();

        resetElement();

        attribute = new StyleAttributes();
        attribute.setStyles(StylesBuilder.getDeprecatedStyles());
        attribute.setTitle("My title");

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);
        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setStyleClass("fred");
View Full Code Here

                return buffer;
            }
        };
        context.setFormatInstance(paneInstance);

        TestDeviceLayoutContext layoutContext = new TestDeviceLayoutContext();
        context.pushDeviceLayoutContext(layoutContext);

        protocol.setMarinerPageContext(context);

        MenuAttributes menuAttrs = new MenuAttributes();
View Full Code Here

        RuntimeDeviceLayout runtimeDeviceLayout1 =
                RuntimeDeviceLayoutTestHelper.activate(CANVAS_LAYOUT);
        RuntimeDeviceLayout runtimeDeviceLayout =
                runtimeDeviceLayout1;

        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        deviceContext.setDeviceLayout(runtimeDeviceLayout);

        resetElement();

        attribute = new StyleAttributes();
        attribute.setStyles(StylesBuilder.getDeprecatedStyles());
View Full Code Here

     * Test the method: closePane
     */
    public void testClosePane() throws Exception {
        context = new TestMarinerPageContext();
        protocol.setMarinerPageContext(context);
        TestDeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        context.pushDeviceLayoutContext(deviceContext);

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
        PaneAttributes attributes = new PaneAttributes();
View Full Code Here

            protected boolean ignoreImpl()
            {
                return false;
            }
        };
        TestDeviceLayoutContext dlc = new TestDeviceLayoutContext();
        dlc.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneInstance);
        dlc.setMarinerPageContext(pageContext);
        dlc.setDeviceLayout(runtimeDeviceLayout);
        dlc.initialise();
        pageContext.pushDeviceLayoutContext(dlc);

        DissectingPaneAttributes atts = new DissectingPaneAttributes();
        atts.setDissectingPane(pane);
        atts.setInclusionPath(inclusionPath);
View Full Code Here

                RuntimeDeviceLayoutTestHelper.activate(canvasLayout);

        pageContext.setDeviceLayout(runtimeDeviceLayout);
        pageContext.setCurrentPane(pane);
        PaneInstance paneInstance = new TestPaneInstance();
        TestDeviceLayoutContext dlc = new TestDeviceLayoutContext();
        dlc.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneInstance);
        dlc.setMarinerPageContext(pageContext);
        dlc.setDeviceLayout(runtimeDeviceLayout);
        dlc.initialise();
        pageContext.pushDeviceLayoutContext(dlc);
        return dlc;
    }
View Full Code Here

                return outputBuffer;
            }
        };
        pageContext.setFormatInstance(paneInstance);

        TestDeviceLayoutContext layoutContext = new TestDeviceLayoutContext();
        layoutContext.setFormatInstance(new Pane(new CanvasLayout()),
                NDimensionalIndex.ZERO_DIMENSIONS, paneInstance);
        pageContext.pushDeviceLayoutContext(layoutContext);
        protocol.setMarinerPageContext(pageContext);

        // create and initialize the MenuRenderContext
View Full Code Here

        TestMarinerRequestContext requestContext =
                new TestMarinerRequestContext();
        ContextInternals.setMarinerPageContext(requestContext, context);
        context.pushRequestContext(requestContext);

        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        canvasLayout = new CanvasLayout();

        // Activate the device layout.
        RuntimeDeviceLayout runtimeDeviceLayout1 =
                RuntimeDeviceLayoutTestHelper.activate(canvasLayout);
        RuntimeDeviceLayout runtimeDeviceLayout =
                runtimeDeviceLayout1;
        deviceContext.setDeviceLayout(runtimeDeviceLayout);

        resetElement();

        attribute = new StyleAttributes();
        attribute.setStyles(StylesBuilder.getDeprecatedStyles());
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.TestDeviceLayoutContext

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.