Package com.volantis.mcs.protocols.layouts

Examples of com.volantis.mcs.protocols.layouts.PaneInstance


        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        MarinerRequestContext requestContext = new TestMarinerRequestContext();

        pageContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        PaneInstance paneInstance = new TestPaneInstance() {
            public OutputBuffer getCurrentBuffer() {
                // return the output buffer that the base class has created
                return outputBuffer;
            }
        };
View Full Code Here


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

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

        paneInstance.setStyleClass("fred");
        context.setFormatInstance(paneInstance);
        context.setDeviceName(NETSCAPE4_DEVICE_NAME);
        PageHead head = new PageHead();
        testable.setPageHead(head);
    }
View Full Code Here

        assertEquals(result, PAPIConstants.SKIP_ELEMENT_BODY);

        String value = "{layout:getPaneInstance('" + paneName + "',0)}";
        result = element.checkPaneInstances(pageContext, value, null);
        assertEquals(result, PAPIConstants.PROCESS_ELEMENT_BODY);
        PaneInstance captionPaneInstance = (PaneInstance) PrivateAccessor.getField(
                element, "captionPaneInstance");

        PaneInstance entryPaneInstance = (PaneInstance) PrivateAccessor.getField(
                element, "entryPaneInstance");

        assertNotNull(entryPaneInstance);
        assertNotNull(captionPaneInstance);
        assertTrue("Panes should be exactly the same",
View Full Code Here

        PageHead pageHead = new PageHead();
        TestDeviceLayoutContext dlc = new TestDeviceLayoutContext();
        OutputBufferFactory factory = new TestDOMOutputBufferFactory();
        CanvasLayout canvasLayout = new CanvasLayout();
        Pane pane = new Pane(canvasLayout);
        PaneInstance paneInstance = new TestPaneInstance();

        protocol.setMarinerPageContext(context);
        context.setProtocol(protocol);
        context.setVolantis(volantis);
View Full Code Here

    // Javadoc inherited.
    protected AbstractPaneInstance createTestableAbstractPaneContext(
            NDimensionalIndex index) {
       
        return new PaneInstance(index);
    }
View Full Code Here

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setStyleClass("fred");
        context.setFormatInstance(paneInstance);
       
        PageHead head = new PageHead();
        testable.setPageHead(head);
        testable.setStyleSheetRenderer(CSSStyleSheetRenderer.getSingleton());
View Full Code Here

        // Initialize the attributes.
        attributes.setPane(new Pane(null));

        // Intialize the rendering.
        PaneInstance paneInstance = (PaneInstance) context.getDeviceLayoutContext().
                getCurrentFormatInstance(attributes.getPane());
        paneInstance.setRendering(rendering);

        return dom;
    }
View Full Code Here

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setStyleClass("fred");
        context.setFormatInstance(paneInstance);
       
        PageHead head = new PageHead();
        testable.setPageHead(head);
        testable.setStyleSheetRenderer(CSSStyleSheetRenderer.getSingleton());
View Full Code Here

                new Pane(new CanvasLayout());
        final String pane = "testPane";
        testPane.setName(pane);
        pageContext.addPaneMapping(testPane);

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setFormat(testPane);
        TestDeviceLayoutContext deviceLayoutContext =
                new TestDeviceLayoutContext();
        deviceLayoutContext.setFormatInstance(testPane,
                NDimensionalIndex.ZERO_DIMENSIONS, paneInstance);
        pageContext.pushDeviceLayoutContext(deviceLayoutContext);
View Full Code Here

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setStyleClass("fred");
        context.setFormatInstance(paneInstance);
       
        PageHead head = new PageHead();
        testable.setPageHead(head);
        testable.setStyleSheetRenderer(CSSStyleSheetRenderer.getSingleton());
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.layouts.PaneInstance

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.