Examples of pushDeviceLayoutContext()


Examples of com.volantis.mcs.context.TestMarinerPageContext.pushDeviceLayoutContext()

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

        pageContext.pushDeviceLayoutContext(deviceLayoutContext);
        MarinerURL requestURL = new MarinerURL();
        pageContext.setRequestURL(requestURL);

        // Need to setup a region instance for testing inclusions
        RegionInstance regionInstance =
View Full Code Here

Examples of com.volantis.mcs.context.TestMarinerPageContext.pushDeviceLayoutContext()

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setFormat(testPane);
        paneInstance.setDeviceLayoutContext(deviceLayoutContext);
        deviceLayoutContext.setFormatInstance(testPane,
                NDimensionalIndex.ZERO_DIMENSIONS, paneInstance);
        pageContext.pushDeviceLayoutContext(deviceLayoutContext);
        pageContext.setFormatInstance(paneInstance);

        final PolicyReferenceResolverMock referenceResolverMock =
                new PolicyReferenceResolverMock("referenceResolverMock",
                        expectations);
View Full Code Here

Examples of com.volantis.mcs.context.TestMarinerPageContext.pushDeviceLayoutContext()

        DOMProtocol domProtocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());
        final DeviceLayoutContext layoutContext = new DeviceLayoutContext();

        pageContext.pushDeviceLayoutContext(layoutContext);
        pageContext.setProtocol(domProtocol);
        domProtocol.setMarinerPageContext(pageContext);

        return requestContext;
    }
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.