Examples of attributesRead()


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

         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();
         Layout layout = builder.getLayout();

         InternalPolicyFactory policyFactory = (InternalPolicyFactory)
                 PolicyFactory.getDefaultInstance();
View Full Code Here

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

        // Push spatial
        builder.pushFormat(FormatType.SPATIAL_FORMAT_ITERATOR.getTypeName(), 0);
        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");
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.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.
        for (int i = 0; i < 6; i += 1) {
            builder.pushFormat(FormatType.PANE.getTypeName(), i);
            builder.setAttribute(FormatConstants.NAME_ATTRIBUTE, "Pane" + i);
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.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();
        }

        // Pop grid
        builder.popFormat();
View Full Code Here

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

        builder.setAttribute(FormatConstants.HEIGHT_ATTRIBUTE, "50");
        builder.setAttribute(FormatConstants.HORIZONTAL_ALIGNMENT_ATTRIBUTE,
                             FormatConstants.HORIZONTAL_ALIGNMENT_VALUE_RIGHT);
        builder.setAttribute(FormatConstants.VERTICAL_ALIGNMENT_ATTRIBUTE,
                             FormatConstants.VERTICAL_ALIGNMENT_VALUE_CENTER);
        builder.attributesRead();

        // Row 0
        builder.createSubComponent(Grid.ROW_FORMAT_TYPE, 0);
        builder.setAttribute(FormatConstants.HEIGHT_ATTRIBUTE, "10");
        builder.attributesRead();
View Full Code Here

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

        builder.attributesRead();

        // Row 0
        builder.createSubComponent(Grid.ROW_FORMAT_TYPE, 0);
        builder.setAttribute(FormatConstants.HEIGHT_ATTRIBUTE, "10");
        builder.attributesRead();

        // Row 1
        builder.createSubComponent(Grid.ROW_FORMAT_TYPE, 1);
        builder.setAttribute(FormatConstants.HEIGHT_ATTRIBUTE, "20");
        builder.setAttribute(FormatConstants.HEIGHT_UNITS_ATTRIBUTE,
View Full Code Here

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

        // Row 1
        builder.createSubComponent(Grid.ROW_FORMAT_TYPE, 1);
        builder.setAttribute(FormatConstants.HEIGHT_ATTRIBUTE, "20");
        builder.setAttribute(FormatConstants.HEIGHT_UNITS_ATTRIBUTE,
                             FormatConstants.HEIGHT_UNITS_VALUE_PERCENT);
        builder.attributesRead();

        // Column 0
        builder.createSubComponent(Grid.COLUMN_FORMAT_TYPE, 0);
        builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "15");
        builder.attributesRead();
View Full Code Here

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

        builder.attributesRead();

        // Column 0
        builder.createSubComponent(Grid.COLUMN_FORMAT_TYPE, 0);
        builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "15");
        builder.attributesRead();

        // Column 1
        builder.createSubComponent(Grid.COLUMN_FORMAT_TYPE, 1);
        builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "25");
        builder.setAttribute(FormatConstants.WIDTH_UNITS_ATTRIBUTE,
View Full Code Here

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

        // Column 1
        builder.createSubComponent(Grid.COLUMN_FORMAT_TYPE, 1);
        builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "25");
        builder.setAttribute(FormatConstants.WIDTH_UNITS_ATTRIBUTE,
                             FormatConstants.WIDTH_UNITS_VALUE_PIXELS);
        builder.attributesRead();

        // Push panes.
        String[] horizontalAlign = new String[]{
            FormatConstants.HORIZONTAL_ALIGNMENT_VALUE_LEFT,
            FormatConstants.HORIZONTAL_ALIGNMENT_VALUE_CENTER,
View Full Code Here

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

            builder.setAttribute(FormatConstants.NAME_ATTRIBUTE, "Pane" + i);
            builder.setAttribute(FormatConstants.HORIZONTAL_ALIGNMENT_ATTRIBUTE,
                                 horizontalAlign[i]);
            builder.setAttribute(FormatConstants.VERTICAL_ALIGNMENT_ATTRIBUTE,
                                 verticalAlign[i]);
            builder.attributesRead();
             builder.popFormat();
        }

        // Pop grid
        Grid grid = (Grid) 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.