Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.Grid


            if (parent != null)
            {
                FormatType formatType = parent.getFormatType();
                if (FormatType.GRID.equals(formatType))
                {
                    Grid grid = (Grid)parent;
                    int rows = grid.getRows();
                    int columns = grid.getColumns();

                    if (rows == 1 && columns == 2)
                    {
                        left += paneWidth;
                    }
View Full Code Here


            if (format instanceof Grid) {

                // NB: We do not need to set the column attribute because it
                // will be resolved and added in the associated transformer

                Grid grid = (Grid) format;

                StringBuffer alignValues = new StringBuffer();
                int numCols = grid.getColumns();
                for (int i = 0; i < numCols; i++) {
                    // All the children must be a Panes since the assoicated
                    // format has no grid children
                    Format childPane = grid.getChildAt(i);

                    // If the layout is incomplete then the childPane could be
                    // null
                    if (childPane != null) {
                        String hAlign = childPane.getHorizontalAlignment();
View Full Code Here

                DisplayKeywords.TABLE);

        rule.setProperties(styleProperties);
        styleSheet.addRule(rule);

        Grid grid = (Grid) format;

        // Handle the columns.
        int columns = grid.getColumns();
        for (int c = 0; c < columns; c += 1) {
            Column column = grid.getColumn(c);
            addColumnRules(styleSheet, column);
        }

        // Handle the rows.
        int rows = grid.getRows();
        for (int r = 0; r < rows; r += 1) {
            Row row = grid.getRow(r);
            addRowRules(styleSheet, row);
        }

        // Handle the cells.
        for (int r = 0; r < rows; r += 1) {
            Row row = grid.getRow(r);
            for (int c = 0; c < columns; c += 1) {
                Format child = grid.getChildAt(r, c);
                addCellRules(styleSheet, grid, row, c, child);
            }
        }
    }
View Full Code Here

TOP

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

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.