Examples of CanvasLayout


Examples of com.volantis.mcs.layouts.CanvasLayout

        testable.setPageHead(new TestPageHead(protocol));
        XFActionAttributes attributes = new XFActionAttributes();
        attributes.setStyles(StylesBuilder.getInitialValueStyles());

        XFFormAttributes formAttributes = new XFFormAttributes();
        Form form = new Form(new CanvasLayout());
        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(form);
        formAttributes.setAction(new LiteralLinkAssetReference("testaction"));
        formAttributes.setFormData(formInstance);
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

public class RowIteratorPaneInstanceTestCase extends AbstractPaneInstanceTestAbstract {
    private CanvasLayout canvasLayout;
    private RowIteratorPaneInstance paneInstance;
   
    public void setUp(){
        canvasLayout = new CanvasLayout();
        paneInstance=new RowIteratorPaneInstance(NDimensionalIndex.ZERO_DIMENSIONS);
        paneInstance.setFormat(createPane());
        paneInstance.setDeviceLayoutContext(new TestDeviceLayoutContext());
        paneInstance.initialise();
    }
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

    }

    // javadoc inherited
    protected MenuAttributes createMenuAttributes() {
        MenuAttributes menuAttributes = super.createMenuAttributes();
        menuAttributes.setPane(new Pane(new CanvasLayout()));
        return menuAttributes;
    }
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

     * for the test case.
     */
    public void testCalculateOutput() throws Exception {
        AbstractGridInstance instance = new AbstractGridInstance(
                NDimensionalIndex.ZERO_DIMENSIONS) { };
        TestableGrid format = new TestableGrid(new CanvasLayout());

        format.setRows(1);
        format.setColumns(1);
        format.setNumChildren(1);

View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

        final RuntimeProjectMock projectMock =
                new RuntimeProjectMock("projectMock", expectations);
        testRequestContext.pushProject(projectMock);
        context.pushDeviceLayoutContext(new DeviceLayoutContext());
        context.setRequestContext(testRequestContext);
        canvasLayout = new CanvasLayout();
    }
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

    private void privateSetUp() {
   
        requestContext = new TestMarinerRequestContext();
        protocol = new VolantisProtocolStub();

        canvasLayout = new CanvasLayout();
        deviceLayoutContext = new TestDeviceLayoutContext();

        pane = new Pane(canvasLayout);
        pane.setName("pane");
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

        formatRendererContext = new FormatRendererContextImpl(
                pageContext, StylingFactory.getDefaultInstance());
    }

    protected Layout createDeviceLayout() {
        return new CanvasLayout();
    }
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        protocol.setMarinerPageContext(pageContext);

        // pane setup required by BlockElementImpl#exprElementStart
        Pane testPane =
                new Pane(new CanvasLayout());
        final String pane = "testPane";
        testPane.setName(pane);
        pageContext.addPaneMapping(testPane);
        pageContext.setCurrentPane(testPane);
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

        protocol.setMarinerPageContext(pageContext);

        loadStyleSheet(pageContext);

        // a form with a pane in it
        final CanvasLayout canvasLayout =
                new CanvasLayout();
        // Activate the device layout.
        RuntimeDeviceLayout runtimeDeviceLayout =
                RuntimeDeviceLayoutTestHelper.activate(canvasLayout);
        pageContext.setDeviceLayout(runtimeDeviceLayout);
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

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

        pageContext.pushDeviceLayoutContext(deviceLayoutContext);
        MarinerURL requestURL = new MarinerURL();
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.