Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.TestDeviceLayoutContext


    private PaneInstance createPaneContext(NDimensionalIndex index,
            Format format) {
       
        PaneInstance paneInstance=new PaneInstance(index);
        paneInstance.setFormat(format);
        paneInstance.setDeviceLayoutContext(new TestDeviceLayoutContext());
        paneInstance.initialise();
        return paneInstance;
    }
View Full Code Here


   
    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

    public void setUp() {
        pane = new Pane(null);
        paneContext = new TestPaneInstance();

        deviceLayoutContext = new TestDeviceLayoutContext();

        grid = new Grid(null);
        grid.setInstance(0);

        gridInstance = new GridInstance(NDimensionalIndex.ZERO_DIMENSIONS);
View Full Code Here

   
        requestContext = new TestMarinerRequestContext();
        protocol = new VolantisProtocolStub();

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

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

        paneInstance = new PaneInstance(NDimensionalIndex.ZERO_DIMENSIONS);
View Full Code Here

        final String pane = "testPane";
        testPane.setName(pane);
        pageContext.addPaneMapping(testPane);
        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);

        final PolicyReferenceResolverMock referenceResolverMock =
View Full Code Here

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

   
        requestContext = new TestMarinerRequestContext();
        protocol = new VolantisProtocolStub();
   
        canvasLayout = new CanvasLayout();
        deviceLayoutContext = new TestDeviceLayoutContext();

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

        // Activate the device layout.
        RuntimeDeviceLayout runtimeDeviceLayout =
                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);

        final PolicyReferenceResolverMock referenceResolverMock =
View Full Code Here

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setStyleClass("testStyle");
        pageContext.setFormatInstance(paneInstance);
        protocol.setMarinerPageContext(pageContext);

        TestDeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        deviceContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS,
                paneInstance);
        pageContext.pushDeviceLayoutContext(deviceContext);

        MutablePropertyValues properties = createPropertyValues();
        StyleColor value =
View Full Code Here

     */
    public void testClosePane() throws Exception {
        privateSetUp();
        context = new TestMarinerPageContext();
        protocol.setMarinerPageContext(context);
        TestDeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        context.pushDeviceLayoutContext(deviceContext);

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
        PaneAttributes attributes = new PaneAttributes();
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.TestDeviceLayoutContext

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.