Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.Pane


     */
    public void testDoImageNoSuffix() throws ProtocolException {
        privateSetUp();
        ImageAttributes ia = new ImageAttributes();
        ia.setStyles(StylesBuilder.getDeprecatedStyles());
        Pane outPane = new Pane(null);
        outPane.setName("MyPane");
        outPane.setDestinationArea(null);
        ia.setPane(outPane);
        ia.setAltText("AltText");
        ia.setSrc("http://www.images.com/test/test.jpg");
        ia.setLocalSrc(false);
        protocol.writeImage(ia);
View Full Code Here


    public void testDoImageSuffix() throws ProtocolException {
        privateSetUp();
        ImageAttributes ia = new ImageAttributes();
        ia.setStyles(StylesBuilder.getDeprecatedStyles());
        Pane outPane = new Pane(null);
        outPane.setName("MyPane");
        outPane.setDestinationArea(null);
        ia.setPane(outPane);
        ia.setAltText("AltText");
        ia.setSrc("http://www.images.com/test/test.jpg");
        ia.setAssetURLSuffix("?name=fred");
        ia.setLocalSrc(false);
View Full Code Here

    }

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

        SpatialFormatIteratorAttributes attributes =
                new SpatialFormatIteratorAttributes();
        attributes.setStyles(StylesBuilder.getInitialValueStyles());

        Pane pane = new Pane(canvasLayout);
        attributes.setFormat(pane);

        // Open and then close the row.
        protocol.writeOpenSpatialFormatIteratorRow(attributes);
        protocol.writeCloseSpatialFormatIteratorRow(attributes);
View Full Code Here

    private GridInstance gridInstance;
    private Pane pane;
    private TestPaneInstance paneContext;

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

        deviceLayoutContext = new TestDeviceLayoutContext();

        grid = new Grid(null);
View Full Code Here

        // Create a 2 by 2 grid where each cell contains a pane.
        grid.setRows(2);
        grid.setColumns(2);

        pane = new Pane(null);
        pane.setName("a");
        pane.setInstance(1);
        pane.setParent(grid);
        deviceLayoutContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneContext);
        grid.insertChildAt(pane, 0);

        pane = new Pane(null);
        pane.setName("b");
        pane.setInstance(2);
        pane.setParent(grid);
        deviceLayoutContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneContext);
        grid.insertChildAt(pane, 1);

        pane = new Pane(null);
        pane.setName("c");
        pane.setInstance(3);
        pane.setParent(grid);
        deviceLayoutContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneContext);
        grid.insertChildAt(pane, 2);

        pane = new Pane(null);
        pane.setName("d");
        pane.setInstance(4);
        pane.setParent(grid);
        deviceLayoutContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneContext);
        grid.insertChildAt(pane, 3);
View Full Code Here

        // columns
        grid.setRows(3);
        grid.setColumns(3);
        grid.insertChildAt(null, 0);

        pane = new Pane(null);
        pane.setName("a");
        pane.setInstance(1);
        pane.setParent(grid);
        deviceLayoutContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneContext);
        grid.insertChildAt(pane, 1);

        grid.insertChildAt(null, 2);

        pane = new Pane(null);
        pane.setName("b");
        pane.setInstance(2);
        pane.setParent(grid);
        deviceLayoutContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneContext);
        grid.insertChildAt(pane, 3);

        for (int i = 4; i < 8; i++) {
            grid.insertChildAt(null, i);
        }

        pane = new Pane(null);
        pane.setName("c");
        pane.setInstance(3);
        pane.setParent(grid);
        deviceLayoutContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneContext);
        grid.insertChildAt(pane, 8);
View Full Code Here

        // and 2 empty columns
        grid.setRows(3);
        grid.setColumns(3);
        grid.insertChildAt(null, 0);

        pane = new Pane(null);
        pane.setName("a");
        pane.setInstance(1);
        pane.setParent(grid);
        deviceLayoutContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneContext);
        grid.insertChildAt(pane, 1);

        for (int i = 2; i < 7; i++) {
            grid.insertChildAt(null, i);
        }

        pane = new Pane(null);
        pane.setName("b");
        pane.setInstance(2);
        pane.setParent(grid);
        deviceLayoutContext.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneContext);
        grid.insertChildAt(pane, 7);
View Full Code Here

    private MyDeviceLayoutContext deviceLayoutContext;
    private Pane pane;
    private PaneInstance paneInstance;

    public void setUp() {
        pane = new Pane(null);
        paneInstance = new PaneInstance(ONE_DIMENSIONAL_INDEX);

        deviceLayoutContext = new MyDeviceLayoutContext();

        sfi2 = new SpatialFormatIterator(null);
View Full Code Here

        // set the current index
        deviceLayoutContext.setCurrentFormatIndex(currentIndex);

        // Create a 1d spatial format iterator containing a pane
        pane = new Pane(null);
        pane.setName("a");
        pane.setInstance(2);
        pane.setParent(sfi);
        paneInstance.setDeviceLayoutContext(deviceLayoutContext);
        paneInstance.setFormat(pane);
View Full Code Here

TOP

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

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.