Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.CanvasLayout


//        if (elementClassAttributes != null) {
//            element.setAttribute("class", elementClassAttributes);
//        }

        // Pane attributes can't be null, must contain a valid pane.
        attributes.setPane(new Pane(new CanvasLayout()));

        protocol.useEnclosingTableCell(dom, attributes);

        String actual = DOMUtilities.toString(dom.getRoot());
        assertEquals("Result shouild match\n" +
View Full Code Here


     * @todo the fact that some of the tests don't need to call this method
     * at all indicates that we ought to refactor this so each test just
     * sets up what it needs. Otherwise, we can have unintended side effects...
     */
    private void privateSetUp() throws RepositoryException {
        canvasLayout = new CanvasLayout();
        pane = new Pane(canvasLayout);
        pane.setName(PANE_NAME);
        pane.setInstance(0);

        // Activate the device layout.
View Full Code Here

            }
        };
        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

    /**
     * Set up the tests in this class
     */
    private void privateSetUp() {
        canvasLayout = new CanvasLayout();

        pageContext = new TestMarinerPageContext();
        format = new Pane(canvasLayout);
        format.setName("pane");
        pageContext.addPaneMapping((Pane)format);
View Full Code Here

                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 =
View Full Code Here

        this.protocol = (DOMProtocol)protocol;
        this.testable = (DOMProtocolTestable)testable;
    }

    private void privateSetUp() throws Exception {
        canvasLayout = new CanvasLayout();

        protocol.setWriteHead(true);

        testable.setPageHead(new MyPageHead());
View Full Code Here

        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(context);
        DOMOutputBuffer buffer = new TestDOMOutputBuffer();
        context.setCurrentOutputBuffer(buffer);
        context.setCurrentPane(new Pane(new CanvasLayout()));

        CanvasLayout canvasLayout = new CanvasLayout();

        Pane pane = new Pane(canvasLayout);
        pane.setWidth("100");
        pane.setWidthUnits("pixels");
View Full Code Here

            menuAttrs.addItem(item);
        }

        menuAttrs.setTagName("menu");

        menuAttrs.setPane(new Pane(new CanvasLayout()));
        return menuAttrs;
    }
View Full Code Here

    /**
     * Test the URLRewriting aspect of doFormLink.
     */
    public void testDoFormLinkURLRewriting() throws Throwable {
        CanvasLayout layout = new CanvasLayout();
        Form form = new Form(layout);
        final String formName = "form";
        final String fragmentName = "formFragment";
        form.setName(formName);

View Full Code Here

        TestMarinerPageContext context = new TestMarinerPageContext();
        DOMOutputBuffer buffer = new TestDOMOutputBuffer();
        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);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.layouts.CanvasLayout

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.