Examples of pushFormat()


Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        builder.setAttribute(SpatialFormatIterator.ROW_STYLE_CLASSES, "r1 r2");
        builder.setAttribute(SpatialFormatIterator.COLUMN_STYLE_CLASSES, "c1 c2 c3");
        builder.attributesRead();

        // Push grid
        builder.pushFormat(FormatType.GRID.getTypeName(), 0);
        builder.setAttribute(Grid.COLUMNS_ATTRIBUTE, "3");
        builder.setAttribute(Grid.ROWS_ATTRIBUTE, "2");
        builder.attributesRead();

        // Push panes.
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        builder.setAttribute(Grid.ROWS_ATTRIBUTE, "2");
        builder.attributesRead();

        // Push panes.
        for (int i = 0; i < 6; i += 1) {
            builder.pushFormat(FormatType.PANE.getTypeName(), i);
            builder.setAttribute(FormatConstants.NAME_ATTRIBUTE, "Pane" + i);
            builder.attributesRead();
             builder.popFormat();
        }
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        // Create the layout.
        builder.createLayout(LayoutType.CANVAS);

        // Push grid
        builder.pushFormat(FormatType.GRID.getTypeName(), 0);
        builder.setAttribute(Grid.COLUMNS_ATTRIBUTE, "3");
        builder.setAttribute(Grid.ROWS_ATTRIBUTE, "2");
        builder.setAttribute(FormatConstants.BACKGROUND_COLOUR_ATTRIBUTE, "red");
        builder.setAttribute(FormatConstants.BORDER_WIDTH_ATTRIBUTE, "2");
        builder.setAttribute(FormatConstants.CELL_PADDING_ATTRIBUTE, "4");
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        LayoutBuilder builder = new LayoutBuilder(new RuntimeLayoutFactory());

        builder.createLayout(LayoutType.CANVAS);

        builder.pushFormat("Pane", 0);

        builder.setAttribute("Name", "pane");

        builder.popFormat();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        for (int i = 0; i < 6; i += 1) {

            // Make an empty cell.
            if (i == 4) continue;

            builder.pushFormat(FormatType.PANE.getTypeName(), i);
            builder.setAttribute(FormatConstants.NAME_ATTRIBUTE, "Pane" + i);
            builder.setAttribute(FormatConstants.HORIZONTAL_ALIGNMENT_ATTRIBUTE,
                                 horizontalAlign[i]);
            builder.setAttribute(FormatConstants.VERTICAL_ALIGNMENT_ATTRIBUTE,
                                 verticalAlign[i]);
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        LayoutBuilder builder = new LayoutBuilder(new RuntimeLayoutFactory());

        builder.createLayout(LayoutType.CANVAS);

        builder.pushFormat("Pane", 0);

        builder.setAttribute("Name", "pane");

        builder.setAttribute(FormatConstants.HEIGHT_ATTRIBUTE, "100");
        builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "8");
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        // here the anonymous layout device name is being used to specifically
        // identify the region as the anonymous one. This is then used when
        // creating the anonymous region to allow it not to specify a name.
        builder.createLayout(LayoutType.CANVAS);
        builder.setAnonymous(true);
        builder.pushFormat(FormatType.REGION.getTypeName(), 0);
        builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "100");
        builder.setAttribute(FormatConstants.WIDTH_UNITS_ATTRIBUTE,
                             FormatConstants.WIDTH_UNITS_VALUE_PERCENT);
        builder.attributesRead();
        builder.popFormat();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        // here the anonymous layout device name is being used to specifically
        // identify the region as the anonymous one. This is then used when
        // creating the anonymous region to allow it not to specify a name.
        builder.createLayout(LayoutType.CANVAS);
        builder.setAnonymous(true);
        builder.pushFormat(FormatType.REGION.getTypeName(), 0);
        builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "100");
        builder.setAttribute(FormatConstants.WIDTH_UNITS_ATTRIBUTE,
                             FormatConstants.WIDTH_UNITS_VALUE_PERCENT);
        builder.attributesRead();
        builder.popFormat();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        LayoutBuilder builder = new LayoutBuilder(new RuntimeLayoutFactory());

        builder.createLayout(LayoutType.CANVAS);

        builder.pushFormat("Pane", 0);

        builder.setAttribute("Name", "pane");

        builder.popFormat();
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.