COSObjectable
public class PDTableAttributeObject extends PDStandardAttributeObject
Modifier and Type | Field | Description |
---|---|---|
protected static java.lang.String |
COL_SPAN |
|
protected static java.lang.String |
HEADERS |
|
static java.lang.String |
OWNER_TABLE |
standard attribute owner: Table
|
protected static java.lang.String |
ROW_SPAN |
|
protected static java.lang.String |
SCOPE |
|
static java.lang.String |
SCOPE_BOTH |
Scope: Both
|
static java.lang.String |
SCOPE_COLUMN |
Scope: Column
|
static java.lang.String |
SCOPE_ROW |
Scope: Row
|
protected static java.lang.String |
SUMMARY |
UNSPECIFIED
Constructor | Description |
---|---|
PDTableAttributeObject() |
Default constructor.
|
PDTableAttributeObject(COSDictionary dictionary) |
Creates a new Table attribute object with a given dictionary.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getColSpan() |
Gets the number of columns in the enclosing table that shall be spanned
by the cell (ColSpan).
|
java.lang.String[] |
getHeaders() |
Gets the headers (Headers).
|
int |
getRowSpan() |
Gets the number of rows in the enclosing table that shall be spanned by
the cell (RowSpan).
|
java.lang.String |
getScope() |
Gets the scope (Scope).
|
java.lang.String |
getSummary() |
Gets the summary of the table???s purpose and structure.
|
void |
setColSpan(int colSpan) |
Sets the number of columns in the enclosing table that shall be spanned
by the cell (ColSpan).
|
void |
setHeaders(java.lang.String[] headers) |
Sets the headers (Headers).
|
void |
setRowSpan(int rowSpan) |
Sets the number of rows in the enclosing table that shall be spanned by
the cell (RowSpan).
|
void |
setScope(java.lang.String scope) |
Sets the scope (Scope).
|
void |
setSummary(java.lang.String summary) |
Sets the summary of the table???s purpose and structure.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElement
equals, getCOSDictionary, getCOSObject, hashCode
getArrayOfString, getColor, getColorOrFourColors, getInteger, getName, getName, getNameOrArrayOfName, getNumber, getNumber, getNumberOrArrayOfNumber, getNumberOrName, getString, isSpecified, setArrayOfName, setArrayOfNumber, setArrayOfString, setColor, setFourColors, setInteger, setName, setNumber, setNumber, setString
public static final java.lang.String OWNER_TABLE
protected static final java.lang.String ROW_SPAN
protected static final java.lang.String COL_SPAN
protected static final java.lang.String HEADERS
protected static final java.lang.String SCOPE
protected static final java.lang.String SUMMARY
public static final java.lang.String SCOPE_BOTH
public static final java.lang.String SCOPE_COLUMN
public static final java.lang.String SCOPE_ROW
public PDTableAttributeObject()
public PDTableAttributeObject(COSDictionary dictionary)
dictionary
- the dictionarypublic int getRowSpan()
public void setRowSpan(int rowSpan)
rowSpan
- the row spanpublic int getColSpan()
public void setColSpan(int colSpan)
colSpan
- the column spanpublic java.lang.String[] getHeaders()
PDStructureElement.getElementIdentifier()
) for a TH structure
element that shall be used as a header associated with this cell.public void setHeaders(java.lang.String[] headers)
PDStructureElement.getElementIdentifier()
) for a TH structure
element that shall be used as a header associated with this cell.headers
- the headerspublic java.lang.String getScope()
public void setScope(java.lang.String scope)
SCOPE_ROW
,SCOPE_COLUMN
, orSCOPE_BOTH
.scope
- the scopepublic java.lang.String getSummary()
public void setSummary(java.lang.String summary)
summary
- the summarypublic java.lang.String toString()
toString
in class PDAttributeObject