Examples of TableCell


Examples of org.apache.poi.hwpf.usermodel.TableCell

          xhtml.startElement("tbody");
          for(int rn=0; rn<t.numRows(); rn++) {
             TableRow row = t.getRow(rn);
             xhtml.startElement("tr");
             for(int cn=0; cn<row.numCells(); cn++) {
                TableCell cell = row.getCell(cn);
                xhtml.startElement("td");

                for(int pn=0; pn<cell.numParagraphs(); pn++) {
                   Paragraph cellP = cell.getParagraph(pn);
                   handleParagraph(cellP, p.getTableLevel(), cell, document, pictures, pictureTable, xhtml);
                }
                xhtml.endElement("td");
             }
             xhtml.endElement("tr");
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.TableCell

            Element tableRowElement = textDocumentFacade.createTableRow();

            final int rowCells = tableRow.numCells();
            for ( int c = 0; c < rowCells; c++ )
            {
                TableCell tableCell = tableRow.getCell( c );

                Element tableCellElement = textDocumentFacade.createTableCell();

                if ( c != 0 )
                    tableCellElement.appendChild( textDocumentFacade
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.TableCell

            // index of current element in tableCellEdges[]
            int currentEdgeIndex = 0;
            final int rowCells = tableRow.numCells();
            for ( int c = 0; c < rowCells; c++ )
            {
                TableCell tableCell = tableRow.getCell( c );

                if ( tableCell.isVerticallyMerged()
                        && !tableCell.isFirstVerticallyMerged() )
                {
                    currentEdgeIndex += getNumberColumnsSpanned(
                            tableCellEdges, currentEdgeIndex, tableCell );
                    continue;
                }
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.TableCell

            // index of current element in tableCellEdges[]
            int currentEdgeIndex = 0;
            final int rowCells = tableRow.numCells();
            for ( int c = 0; c < rowCells; c++ )
            {
                TableCell tableCell = tableRow.getCell( c );

                if ( tableCell.isVerticallyMerged()
                        && !tableCell.isFirstVerticallyMerged() )
                {
                    currentEdgeIndex += getNumberColumnsSpanned(
                            tableCellEdges, currentEdgeIndex, tableCell );
                    continue;
                }
View Full Code Here

Examples of org.axsl.fo.fo.TableCell

         * If it takes multiple calls to completely layout the row, we need to
         * process all of the children cells not just those from the progress
         * indicator so that an area is created for each cell on the new page
         * and borders are drawn properly. */
        for (int i = 0; i < this.node.getChildCount(); i++) {
            final TableCell cell = (TableCell) this.node.getChildAt(i);
            TableCellPL cellPL;
            cellPL = (TableCellPL) this.getLayoutProxy(cell);

            final int rowSpan = cell.traitNumberRowsSpanned();
            final Status status = cellPL.layout(rowContainer, graftingPoint);
            if (status.isIncomplete()) {
               if ((this.node.traitKeepTogetherWithinColumn(areaNode)
                               == Integer.MAX_VALUE
                       && this.ignoreKeepTogether == false)
View Full Code Here

Examples of org.fest.swing.data.TableCell

   * @param value the value of the cell to look for. It can be a regular expression.
   * @return a {@code JTableCellFixture} wrapping the table cell whose value matches the given one.
   * @throws ActionFailedException if a cell with a matching value cannot be found.
   */
  public @Nonnull JTableCellFixture cell(String value) {
    TableCell cell = driver().cell(target(), value);
    return new JTableCellFixture(this, cell);
  }
View Full Code Here

Examples of org.fest.swing.data.TableCell

   * @throws NullPointerException if the given regular expression pattern is {@code null}.
   * @throws ActionFailedException if a cell with a matching value cannot be found.
   * @since 1.2
   */
  public @Nonnull JTableCellFixture cell(@Nonnull Pattern valuePattern) {
    TableCell cell = driver().cell(target(), valuePattern);
    return new JTableCellFixture(this, cell);
  }
View Full Code Here

Examples of org.fest.swing.data.TableCell

   * @throws NullPointerException if the {@code TableCellFinder} is {@code null}.
   * @throws ActionFailedException if a matching cell could not be found.
   * @throws IndexOutOfBoundsException if the row or column indices in the found cell are out of bounds.
   */
  public @Nonnull JTableCellFixture cell(@Nonnull TableCellFinder cellFinder) {
    TableCell cell = driver().cell(target(), cellFinder);
    return new JTableCellFixture(this, cell);
  }
View Full Code Here

Examples of org.fest.swing.data.TableCell

   * @throws ActionFailedException if a matching cell could not be found.
   */
  @RunsInEDT
  public @Nonnull TableCell cell(@Nonnull JTable table, @Nonnull TableCellFinder cellFinder) {
    checkNotNull(cellFinder);
    TableCell cell = cellFinder.findCell(table, cellReader());
    checkCellIndicesInBounds(table, cell);
    return cell;
  }
View Full Code Here

Examples of org.fest.swing.data.TableCell

* @author Yvonne Wang
*/
public class JTableDriver_cellByText_Test extends JTableDriver_TestCase {
  @Test
  public void should_find_cell_having_value_that_matches_given_pattern() {
    TableCell cell = driver.cell(table, "1.*");
    assertThat(cell.row).isEqualTo(1);
    assertThat(cell.column).isEqualTo(0);
    assertThatCellReaderWasCalled();
  }
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.