Examples of pushDeviceLayoutContext()


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

        if (containerInstance != null) {
            pageContext.pushContainerInstance(containerInstance);
        }

        if (layoutContext != null) {
            pageContext.pushDeviceLayoutContext(layoutContext);

            // Make sure that the device layout context is updated with
            // the fragmentation state.
            try {
                pageContext.initialiseDeviceLayoutContext(
View Full Code Here

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

            }
        };
        context.setFormatInstance(paneInstance);

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

        protocol.setMarinerPageContext(context);

        MenuAttributes menuAttrs = new MenuAttributes();
        menuAttrs.setStyles(StylesBuilder.getCompleteStyles(
View Full Code Here

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

        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
        MenuRendererContext rendererContext =
                new MenuRendererContext() {
View Full Code Here

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

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

        context.pushDeviceLayoutContext(deviceContext);
        protocol.setMarinerPageContext(context);

        int idx[] = {1, 0};
        NDimensionalIndex index = new NDimensionalIndex(idx);
        PaneInstance paneInstance = new PaneInstance(index);
View Full Code Here

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

        RuntimeDeviceLayout runtimeDeviceLayout =
                runtimeDeviceLayout1;

        TestDeviceLayoutContext deviceLayoutContext = new TestDeviceLayoutContext();
        deviceLayoutContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceLayoutContext);

        protocol.writeOpenSpatialFormatIterator(
            getSpatialFormatIteratorAttributes());
        protocol.writeOpenSpatialFormatIteratorRow(
            getSpatialFormatIteratorAttributes());
View Full Code Here

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

        final FormDataManager formDataManager = context.getFormDataManager();
        String formSpecifier = formDataManager.getFormSpecifier(fd);

        context.setPolicyReferenceResolver(referenceResolverMock);

        context.pushDeviceLayoutContext(new DeviceLayoutContext());
        PageGenerationCache pageGenerationCache = new PageGenerationCache();
        pageGenerationCache.createFormFragmentationStates(form.getName());
        context.setPageGenerationCache(pageGenerationCache);
        protocol.setMarinerPageContext(context);
        if(protocol.getPageHead()==null) {
View Full Code Here

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

        dlc.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS,
                ffInstance);
        dlc.setMarinerPageContext(context);
        dlc.setDeviceLayout(runtimeDeviceLayout);
        //dlc.initialise();
        context.pushDeviceLayoutContext(dlc);
        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        ContextInternals.setEnvironmentContext(requestContext, new TestEnvironmentContext());
        context.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
View Full Code Here

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

        dlc.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS,
                paneInstance);
        dlc.setMarinerPageContext(context);
        dlc.setDeviceLayout(runtimeDeviceLayout);
        dlc.initialise();
        context.pushDeviceLayoutContext(dlc);

        test.execute(factory,
                     context,
                     pageHead,
                     dlc,
View Full Code Here

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

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

        MenuModelBuilder menuModelBuilder = pageContext.getMenuBuilder();
        //builder#startMenuGroup will fail unless this has been called
        menuModelBuilder.startMenu();
View Full Code Here

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

        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
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.