Package org.foray.fotree.fo.obj

Examples of org.foray.fotree.fo.obj.TableCell


            return new TableCaption(parent, propertyList);
        }
        case TABLE_CELL: {
            if (parent instanceof TableRow) {
                final TableRow parentRow = (TableRow) parent;
                return new TableCell(parentRow, propertyList);
            }
            if (parent instanceof AbstractTablePart) {
                final AbstractTablePart tablePart = (AbstractTablePart) parent;
                return new TableCell(tablePart, propertyList);
            }
            throwException(locator, "fo:" + enumeration.toXslFo()
                    + " must be child of fo:table-row, fo:table-body, " +
                            "fo:table-header, or fo:table-footer.");
            return null;
View Full Code Here


                return 1;
            }
            return previousColumn.traitColumnNumber(context) + 1;
        }
        if (fobj instanceof TableCell) {
            final TableCell thisCell = (TableCell) fobj;
            final TableCell previousCell = thisCell.getPreviousCell();
            if (previousCell == null) {
                // If no previous columns, then this is #1
                return 1;
            }
            return previousCell.traitColumnNumber(context)
                    + previousCell.traitNumberColumnsSpanned();
        }
        return -1;
    }
View Full Code Here

TOP

Related Classes of org.foray.fotree.fo.obj.TableCell

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.