Package com.volantis.mcs.protocols.layouts

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


        deviceLayoutContext = new TestDeviceLayoutContext();

        pane = new Pane(canvasLayout);
        pane.setName("pane");

        paneInstance = new PaneInstance(NDimensionalIndex.ZERO_DIMENSIONS);
        paneInstance.setDeviceLayoutContext(deviceLayoutContext);
       
        sfi = new SpatialFormatIterator(canvasLayout);
        sfi.setName("sfi");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROW_COUNT, "2");
View Full Code Here


        pane.setParent(sfi);
        paneInstance.setFormat(pane);
        paneInstance.initialise();

        paneInstance = new PaneInstance(new NDimensionalIndex(new int[] {10}));
        paneInstance.setFormat(pane);
        paneInstance.setDeviceLayoutContext(deviceLayoutContext);
        pageContext.setFormatInstance(paneInstance);
       
        assertEquals("Wrong code returned by elementStart",
View Full Code Here

        atts.setFormAttributes(formAtts);
        atts.setName("TestSelect");
        atts.setId("TestID");
        atts.setPrompt(new LiteralTextAssetReference("TestPrompt"));
        atts.setMultiple(false);
        PaneInstance entryPaneInstance = new PaneInstance(null);
        entryPaneInstance.setDeviceLayoutContext(new TestDeviceLayoutContext());
        atts.setEntryContainerInstance(entryPaneInstance);

        return atts;
    }
View Full Code Here

        pageContext.setCurrentPane(testPane);

        TestDeviceLayoutContext deviceLayoutContext =
                new TestDeviceLayoutContext();

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setFormat(testPane);
        paneInstance.setDeviceLayoutContext(deviceLayoutContext);

        deviceLayoutContext.setFormatInstance(testPane,
                NDimensionalIndex.ZERO_DIMENSIONS, paneInstance);
        pageContext.pushDeviceLayoutContext(deviceLayoutContext);
        pageContext.setFormatInstance(paneInstance);
View Full Code Here

        final Pane testPane = new Pane(canvasLayout);
        final String paneName = "testPane";
        testPane.setName(paneName);
        testPane.setParent(form);
        final PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setFormat(testPane);

        final TestDeviceLayoutContext deviceLayoutContext =
                new TestDeviceLayoutContext();
        paneInstance.setDeviceLayoutContext(deviceLayoutContext);
        pageContext.setFormatInstance(paneInstance);
        pageContext.addPaneMapping(testPane);

        // set up xfform element
        final XFFormAttributes xfFormAttributes = new XFFormAttributes();
View Full Code Here

        pane.setParent(sfi);
        paneInstance.setFormat(pane);
        paneInstance.initialise();

        paneInstance = new PaneInstance(new NDimensionalIndex(new int[] {10}));
        paneInstance.setFormat(pane);
        paneInstance.setDeviceLayoutContext(deviceLayoutContext);
        pageContext.setFormatInstance(paneInstance);
       
        assertEquals("Wrong code returned by elementStart",
View Full Code Here

     */
    protected Format createPane(boolean content, NDimensionalIndex index) {
        Pane p = new Pane((CanvasLayout) layout);
        setFormatInstance(p);
        if (content) {
            PaneInstance pi =
                    (PaneInstance) dlContext.getFormatInstance(p, index);
            pi.getCurrentBuffer().writeText("non-empty");
        }
        return p;
    }
View Full Code Here

                RuntimeDeviceLayoutTestHelper.activate(layout);

        TestDeviceLayoutContext deviceLayoutContext =
                new TestDeviceLayoutContext();

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

        //Create a new pane
        Pane pane = (Pane) createPane();
        //Pretend to get the buffers for two different format instances
        int[] idx = { 2 };
        PaneInstance ctx2 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx2.getCurrentBuffer().writeText("non-empty");
        idx[0] = 5;
        PaneInstance ctx5 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx5.getCurrentBuffer().writeText("non-empty");
        temporal.setChildAt(pane, 0);
        //Render the format
        TemporalFormatIteratorInstance sfi =
                new TemporalFormatIteratorInstance(
                        NDimensionalIndex.ZERO_DIMENSIONS);
View Full Code Here

        //Create a new pane
        Pane pane = (Pane) createPane();
        //Pretend to get the buffers for two different format instances
        int[] idx = { 2 };
        PaneInstance ctx2 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx2.getCurrentBuffer().writeText("non-empty");
        idx[0] = 5;
        PaneInstance ctx5 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx5.getCurrentBuffer().writeText("non-empty");
        temporal.setChildAt(pane, 0);
        //Render the format
        TemporalFormatIteratorInstance sfi =
                new TemporalFormatIteratorInstance(
                        NDimensionalIndex.ZERO_DIMENSIONS);
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.