Interface Table

All Known Implementing Classes:
StandardTable

public interface Table
Represents a table in a document that can be manipulated by the office stamper. This interface provides methods for table-level operations such as removal.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents a row within a table that can be manipulated by the office stamper.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int index, Table.Row row)
    Adds a row to the table at the specified index.
    void
    addAll(int index, List<Table.Row> rows)
    Adds all the given rows to the table starting at the specified index.
    int
    Returns the index of the given row within the table.
    void
    Removes the entire table from the document.
  • Method Details

    • remove

      void remove()
      Removes the entire table from the document. This operation is irreversible and will delete all rows and content within the table.
    • indexOf

      int indexOf(Table.Row row)
      Returns the index of the given row within the table.
      Parameters:
      row - the row to find the index of
      Returns:
      the index of the row, or -1 if not found
    • addAll

      void addAll(int index, List<Table.Row> rows)
      Adds all the given rows to the table starting at the specified index.
      Parameters:
      index - the index at which to start adding the rows
      rows - the list of rows to add
    • add

      void add(int index, Table.Row row)
      Adds a row to the table at the specified index.
      Parameters:
      index - the index at which to add the row
      row - the row to add