Examples of TableBody


Examples of org.apache.fop.fo.flow.TableBody

   
    private void iterateAndPaintPositions(Iterator iterator, RowPainter painter) {
        List lst = new java.util.ArrayList();
        boolean firstPos = false;
        boolean lastPos = false;
        TableBody body = null;
        while (iterator.hasNext()) {
            Position pos = (Position)iterator.next();
            if (pos instanceof TableContentPosition) {
                TableContentPosition tcpos = (TableContentPosition)pos;
                lst.add(tcpos);
                GridUnitPart part = (GridUnitPart)tcpos.gridUnitParts.get(0);
                if (body == null) {
                    body = part.pgu.getBody();
                }
                if (tcpos.getFlag(TableContentPosition.FIRST_IN_ROWGROUP)
                        && tcpos.row.getFlag(EffRow.FIRST_IN_BODY)) {
                    firstPos = true;

                }
                if (tcpos.getFlag(TableContentPosition.LAST_IN_ROWGROUP)
                        && tcpos.row.getFlag(EffRow.LAST_IN_BODY)) {
                    lastPos = true;
                    getTableLM().getCurrentPV().addMarkers(body.getMarkers(),
                            true, firstPos, lastPos);
                    int size = lst.size();
                    for (int i = 0; i < size; i++) {
                        painter.handleTableContentPosition((TableContentPosition)lst.get(i));
                    }
                    getTableLM().getCurrentPV().addMarkers(body.getMarkers(),
                            false, firstPos, lastPos);
                    //reset
                    firstPos = false;
                    lastPos = false;
                    body = null;
                    lst.clear();
                }
            } else {
                log.debug("Ignoring position: " + pos);
            }
        }
        if (body != null) {
            getTableLM().getCurrentPV().addMarkers(body.getMarkers(),
                    true, firstPos, lastPos);
            int size = lst.size();
            for (int i = 0; i < size; i++) {
                painter.handleTableContentPosition((TableContentPosition)lst.get(i));
            }
            getTableLM().getCurrentPV().addMarkers(body.getMarkers(),
                    false, firstPos, lastPos);
        }
    }
View Full Code Here

Examples of org.apache.fop.fo.flow.TableBody

   
    private EffRow buildGridRow(List cells, TableRow rowFO) {
        EffRow row = new EffRow(this.currentRowIndex, type);
        List gridUnits = row.getGridUnits();
       
        TableBody bodyFO = null;
       
        //Create all row-spanned grid units based on information from the last row
        int colnum = 1;
        GridUnit[] horzSpan = null;
        if (pendingRowSpans > 0) {
View Full Code Here

Examples of org.apache.fop.fo.flow.table.TableBody

        painter.startBody();
        List lst = new ArrayList();
        TableContentPosition pos = (TableContentPosition) iterator.next();
        boolean isFirstPos = pos.getFlag(TableContentPosition.FIRST_IN_ROWGROUP)
                && pos.getRow().getFlag(EffRow.FIRST_IN_PART);
        TableBody body = pos.getTableBody();
        lst.add(pos);
        while (iterator.hasNext()) {
            pos = (TableContentPosition) iterator.next();
            if (pos.getTableBody() != body) {
                addTablePartAreas(lst, painter, body, isFirstPos, true, false, false);
View Full Code Here

Examples of org.apache.fop.fo.flow.table.TableBody

            Block colBackgroundArea = getBackgroundArea(paddingRectBPD, borderBeforeWidth);
            ((TableLayoutManager) parentLM).registerColumnBackgroundArea(column, colBackgroundArea,
                    -startIndent);
        }

        TableBody body = primaryGridUnit.getTableBody();
        if (body.getCommonBorderPaddingBackground().hasBackground()) {
            painter.registerPartBackgroundArea(
                    getBackgroundArea(paddingRectBPD, borderBeforeWidth));
        }

        TableRow row = primaryGridUnit.getRow();
View Full Code Here

Examples of org.apache.fop.fo.flow.table.TableBody

        painter.startBody();
        List lst = new ArrayList();
        TableContentPosition pos = (TableContentPosition) iterator.next();
        boolean isFirstPos = pos.getFlag(TableContentPosition.FIRST_IN_ROWGROUP)
                && pos.getRow().getFlag(EffRow.FIRST_IN_PART);
        TableBody body = pos.getTableBody();
        lst.add(pos);
        while (iterator.hasNext()) {
            pos = (TableContentPosition) iterator.next();
            if (pos.getTableBody() != body) {
                addTablePartAreas(lst, painter, body, isFirstPos, true, false, false);
View Full Code Here

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

        case TABLE_AND_CAPTION: {
            return new TableAndCaption(parent, propertyList);
        }
        case TABLE_BODY: {
            final Table table = parentTable(enumeration, parent, locator);
            return new TableBody(table, propertyList);
        }
        case TABLE_CAPTION: {
            return new TableCaption(parent, propertyList);
        }
        case TABLE_CELL: {
View Full Code Here

Examples of org.wicketstuff.table.repeaters.TableBody

    setOutputMarkupId(true);
    setDefaultModel(new TableModelAdapter(swingTableModel));
    columnsModelAdapter = new ColumnModel((IModel<TableModel>)getDefaultModel());
    add(new ColGroup("colGroup", this));
    add(new TableHeader("headers", this));
    add(tableBody = new TableBody("rows", this)
    {
      @Override
      public void onSelection(SelectableListItem selectableListItem, AjaxRequestTarget target)
      {
        Table.this.onSelection(target);
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.