Class PDTableAttributeObject

All Implemented Interfaces:
COSObjectable

public class PDTableAttributeObject extends PDStandardAttributeObject
A Table attribute object.
Author:
Johannes Koch
  • Field Details

  • Constructor Details

    • PDTableAttributeObject

      public PDTableAttributeObject()
      Default constructor.
    • PDTableAttributeObject

      public PDTableAttributeObject(COSDictionary dictionary)
      Creates a new Table attribute object with a given dictionary.
      Parameters:
      dictionary - the dictionary
  • Method Details

    • getRowSpan

      public int getRowSpan()
      Gets the number of rows in the enclosing table that shall be spanned by the cell (RowSpan). The default value is 1.
      Returns:
      the row span
    • setRowSpan

      public void setRowSpan(int rowSpan)
      Sets the number of rows in the enclosing table that shall be spanned by the cell (RowSpan).
      Parameters:
      rowSpan - the row span
    • getColSpan

      public int getColSpan()
      Gets the number of columns in the enclosing table that shall be spanned by the cell (ColSpan). The default value is 1.
      Returns:
      the column span
    • setColSpan

      public void setColSpan(int colSpan)
      Sets the number of columns in the enclosing table that shall be spanned by the cell (ColSpan).
      Parameters:
      colSpan - the column span
    • getHeaders

      public String[] getHeaders()
      Gets the headers (Headers). An array of byte strings, where each string shall be the element identifier (see the PDStructureElement.getElementIdentifier()) for a TH structure element that shall be used as a header associated with this cell.
      Returns:
      the headers.
    • setHeaders

      public void setHeaders(String[] headers)
      Sets the headers (Headers). An array of byte strings, where each string shall be the element identifier (see the PDStructureElement.getElementIdentifier()) for a TH structure element that shall be used as a header associated with this cell.
      Parameters:
      headers - the headers
    • getScope

      public String getScope()
      Gets the scope (Scope). It shall reflect whether the header cell applies to the rest of the cells in the row that contains it, the column that contains it, or both the row and the column that contain it.
      Returns:
      the scope
    • setScope

      public void setScope(String scope)
      Sets the scope (Scope). It shall reflect whether the header cell applies to the rest of the cells in the row that contains it, the column that contains it, or both the row and the column that contain it. The value shall be one of the following:
      Parameters:
      scope - the scope
    • getSummary

      public String getSummary()
      Gets the summary of the table?s purpose and structure.
      Returns:
      the summary
    • setSummary

      public void setSummary(String summary)
      Sets the summary of the table?s purpose and structure.
      Parameters:
      summary - the summary
    • toString

      public String toString()
      Overrides:
      toString in class PDAttributeObject