public class PDTableAttributeObject extends PDStandardAttributeObject
Modifier and Type | Field and Description |
---|---|
protected static String |
COL_SPAN |
protected static String |
HEADERS |
static String |
OWNER_TABLE
standard attribute owner: Table
|
protected static String |
ROW_SPAN |
protected static String |
SCOPE |
static String |
SCOPE_BOTH
Scope: Both
|
static String |
SCOPE_COLUMN
Scope: Column
|
static String |
SCOPE_ROW
Scope: Row
|
protected static String |
SUMMARY |
UNSPECIFIED
Constructor and Description |
---|
PDTableAttributeObject()
Default constructor.
|
PDTableAttributeObject(COSDictionary dictionary)
Creates a new Table attribute object with a given dictionary.
|
Modifier and Type | Method and Description |
---|---|
int |
getColSpan()
Gets the number of columns in the enclosing table that shall be spanned
by the cell (ColSpan).
|
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).
|
String |
getScope()
Gets the scope (Scope).
|
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(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(String scope)
Sets the scope (Scope).
|
void |
setSummary(String summary)
Sets the summary of the tableâs purpose and structure.
|
String |
toString() |
getArrayOfString, getColor, getColorOrFourColors, getInteger, getName, getName, getNameOrArrayOfName, getNumber, getNumber, getNumberOrArrayOfNumber, getNumberOrName, getString, isSpecified, setArrayOfName, setArrayOfNumber, setArrayOfString, setColor, setFourColors, setInteger, setName, setNumber, setNumber, setString
arrayToString, arrayToString, create, getOwner, isEmpty, notifyChanged, potentiallyNotifyChanged, setOwner, setStructureElement
equals, getCOSDictionary, getCOSObject, hashCode
public static final String OWNER_TABLE
protected static final String ROW_SPAN
protected static final String COL_SPAN
protected static final String HEADERS
protected static final String SCOPE
protected static final String SUMMARY
public static final String SCOPE_BOTH
public static final String SCOPE_COLUMN
public static final 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 String[] getHeaders()
PDStructureElement.getElementIdentifier()
) for a TH structure
element that shall be used as a header associated with this cell.public void setHeaders(String[] headers)
PDStructureElement.getElementIdentifier()
) for a TH structure
element that shall be used as a header associated with this cell.headers
- the headerspublic String getScope()
public void setScope(String scope)
SCOPE_ROW
,SCOPE_COLUMN
, orSCOPE_BOTH
.scope
- the scopepublic String getSummary()
public void setSummary(String summary)
summary
- the summarypublic String toString()
toString
in class PDAttributeObject
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.