Examples of Pane


Examples of com.volantis.mcs.layouts.Pane

        context.pushDeviceLayoutContext(deviceContext);

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
        PaneAttributes attributes = new PaneAttributes();
        Pane pane = new Pane(null);
        attributes.setPane(pane);

        Element body;
        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        body = dom.openStyledElement("body", attributes);
View Full Code Here

Examples of com.volantis.mcs.layouts.Pane

        // Demonstrate that this device layout isn't used
        context.setDeviceLayout(null);

//        context.setStyleClassName(CLASS_NAME);

        Pane pane = new Pane(null);
        pane.setName(PANE_NAME);
        pane.setInstance(0);

        String classname = null; //protocol.getFormatStyleClass(pane);

        assertEquals("Pane classname does not match",
                     CLASS_NAME,
View Full Code Here

Examples of com.volantis.mcs.layouts.Pane

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

Examples of com.volantis.mcs.layouts.Pane

     */
    private void privateSetUp() {
        canvasLayout = new CanvasLayout();

        pageContext = new TestMarinerPageContext();
        format = new Pane(canvasLayout);
        format.setName("pane");
        pageContext.addPaneMapping((Pane)format);
        grid = new Grid(canvasLayout);
        grid.setName("grid");
        //logger.debug("setup");
View Full Code Here

Examples of com.volantis.mcs.layouts.Pane

    /**
     * Factory method to create a Pane
     * @return Pane
     */
    public Pane createPane(){
        Pane pane = new Pane(canvasLayout);
        pane.setName("pane");
        return pane;
    }
View Full Code Here

Examples of com.volantis.mcs.layouts.Pane

       
        TemporalFormatIterator tfi = new TemporalFormatIterator(canvasLayout);
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "0");
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "variable");

        Format format2 = new Pane(canvasLayout);
        format2.setName("pane2");
        pageContext.addPaneMapping((Pane)format2);

        grid.setRows(1);
        grid.setColumns(2);
        grid.setParent(tfi);
        grid.insertChildAt(format, 0);
        format.setParent(grid);
       
        grid.insertChildAt(format2, 1);
        format2.setParent(grid);

        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
View Full Code Here

Examples of com.volantis.mcs.layouts.Pane

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        Element el = null;

        Pane pane = null;
        PaneAttributes attributes = null;

        //=============================================================
        // Styles defined = No
        //=============================================================
        pane = new Pane(null);
        attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());
        attributes.setPane(pane);

        protocol.openPane(buffer, attributes);

        assertSame("The buffer current element should be the root element " +
                   "but was" + buffer.getCurrentElement(),
                   buffer.getRoot(),
                   buffer.getCurrentElement());

        //=============================================================
        // Styles defined = Yes
        //@todo XDIME-CP pass in Styles and check they're correctly propagated through
        //=============================================================
        pane = new Pane(null);

        attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());
//        attributes.setStyleClass("fred");
//        attributes.setBackgroundColour("#ff0000");
View Full Code Here

Examples of com.volantis.mcs.layouts.Pane

       
        TemporalFormatIterator tfi = new TemporalFormatIterator(canvasLayout);
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "4");
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "fixed");

        Format format2 = new Pane(canvasLayout);
        format2.setName("pane2");
        pageContext.addPaneMapping((Pane)format2);

        grid.setRows(1);
        grid.setColumns(2);
        grid.setParent(tfi);
        grid.insertChildAt(format, 0);
        format.setParent(grid);
       
        grid.insertChildAt(format2, 1);
        format2.setParent(grid);

        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
View Full Code Here

Examples of com.volantis.mcs.layouts.Pane

       
        TemporalFormatIterator tfi = new TemporalFormatIterator(canvasLayout);
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "4");
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "variable");

        Format format2 = new Pane(canvasLayout);
        format2.setName("pane2");
        pageContext.addPaneMapping((Pane)format2);

        grid.setRows(1);
        grid.setColumns(2);
        grid.setParent(tfi);
        grid.insertChildAt(format, 0);
        format.setParent(grid);
       
        grid.insertChildAt(format2, 1);
        format2.setParent(grid);

        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
View Full Code Here

Examples of com.volantis.mcs.layouts.Pane

       
        TemporalFormatIterator tfi = new TemporalFormatIterator(canvasLayout);
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "0");
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "fixed");

        Format format2 = new Pane(canvasLayout);
        format2.setName("pane2");
        pageContext.addPaneMapping((Pane)format2);

        grid.setRows(1);
        grid.setColumns(2);
        grid.setParent(tfi);
        grid.insertChildAt(format, 0);
        format.setParent(grid);
       
        grid.insertChildAt(format2, 1);
        format2.setParent(grid);

        index = new NDimensionalIndex(new int[] {0});
        assertTrue("should skip format.0", createPaneContext(index).ignore());
       
        index = new NDimensionalIndex(new int[] {1});
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.