|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.print.BaseDocumentTag org.ujac.print.tag.BaseElementTag org.ujac.print.tag.PdfTableTag
public class PdfTableTag
Name: PdfTableTag
Description: An item handling PDF tables.
Field Summary | |
---|---|
static int |
MAX_SEGMENT_SIZE
The maximum number of lines for a table segment. |
static String |
TAG_NAME
The item's name. |
Constructor Summary | |
---|---|
PdfTableTag()
Constructs a PdfTableTag instance with no specific attributes. |
Method Summary | |
---|---|
void |
addCell(BaseDocumentTag item,
com.lowagie.text.pdf.PdfPCell cell)
Adds a cell to the table. |
void |
addHeaderCell(BaseDocumentTag item,
com.lowagie.text.pdf.PdfPCell cell)
Adds a header cell to the table. |
protected AttributeDefinitionMap |
buildSupportedAttributes()
Gets the list of supported attributes. |
ChildDefinitionMap |
buildSupportedChilds()
Gets the list of supported childs. |
protected AttributeDefinitionMap |
buildSupportedStyleAttributes()
Gets the list of supported style attributes. |
void |
closeItem()
Closes the item. |
boolean |
fitsPage()
Checks whether the table fits the current page or not. |
CellAttributes |
getCellAttributes()
Gets the cell attributes. |
String |
getDescription()
Gets a brief description for the item. |
float |
getLeading()
Gets the leading. |
float |
getLineSpacing()
Gets the line spacing. |
int |
getNumColumns()
Gets the number of columns, defined for the table. |
int |
getNumContentRows()
Gets the number of content rows, that have been added to the current table so far. |
PdfTableHolder |
getPdfTable()
Gets the PDF table holder. |
int |
getRemainingPdfColumns()
Gets the number of remaining columns of the current row. |
com.lowagie.text.pdf.PdfPTable |
getTable()
Gets the iText table. |
void |
initialize()
Initializes the item. |
boolean |
isStyleable()
Tells whether or not this tag does respect style attributes or not. |
void |
openItem()
Opens the item. |
void |
openItem(boolean resetData)
Opens the item. |
boolean |
splitTable(boolean newPage,
boolean keepHeader)
Splits the table vertically. |
Methods inherited from class org.ujac.print.tag.BaseElementTag |
---|
getElementContainer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ujac.print.FontHolder |
---|
getFont |
Methods inherited from interface org.ujac.print.StyleHolder |
---|
getStyleAttribute |
Field Detail |
---|
public static final String TAG_NAME
public static final int MAX_SEGMENT_SIZE
Constructor Detail |
---|
public PdfTableTag()
Method Detail |
---|
public String getDescription()
getDescription
in class BaseDocumentTag
protected AttributeDefinitionMap buildSupportedAttributes()
buildSupportedAttributes
in class BaseElementTag
protected AttributeDefinitionMap buildSupportedStyleAttributes()
buildSupportedStyleAttributes
in class BaseDocumentTag
public ChildDefinitionMap buildSupportedChilds()
buildSupportedChilds
in class BaseDocumentTag
public boolean isStyleable()
isStyleable
in class BaseDocumentTag
true
.public int getNumColumns()
getNumColumns
in interface PdfTableHolder
public int getNumContentRows()
getNumContentRows
in interface PdfTableHolder
public void initialize() throws DocumentHandlerException
initialize
in class BaseElementTag
DocumentHandlerException
- If something went badly wrong.public void openItem() throws DocumentHandlerException
openItem
in class BaseElementTag
DocumentHandlerException
- Thrown in case something went wrong while opening the document item.public void openItem(boolean resetData) throws DocumentHandlerException
resetData
- tells whether to reset some specific data or not (don't blame for this silly comment).
DocumentHandlerException
- Thrown in case something went wrong while opening the document item.public void closeItem() throws DocumentHandlerException
closeItem
in class BaseDocumentTag
DocumentHandlerException
- Thrown in case something went wrong while closing the document item.public void addCell(BaseDocumentTag item, com.lowagie.text.pdf.PdfPCell cell) throws DocumentHandlerException
addCell
in interface PdfCellContainer
item
- The tag which performed the cell adding.cell
- The cell to be added.
DocumentHandlerException
- If something went wrong when adding the cell.public int getRemainingPdfColumns()
getRemainingPdfColumns
in interface PdfCellContainer
public PdfTableHolder getPdfTable()
getPdfTable
in interface PdfCellContainer
public void addHeaderCell(BaseDocumentTag item, com.lowagie.text.pdf.PdfPCell cell) throws DocumentHandlerException
item
- The tag which performed the cell adding.cell
- The header cell to be added.
DocumentHandlerException
- If something went wrong when adding the header cell.public com.lowagie.text.pdf.PdfPTable getTable()
public boolean fitsPage() throws DocumentHandlerException
fitsPage
in interface PdfTableHolder
DocumentHandlerException
- In case something went wrong.public boolean splitTable(boolean newPage, boolean keepHeader) throws DocumentHandlerException
splitTable
in interface PdfTableHolder
newPage
- Tells whether to start a new page or not.keepHeader
- Tells whether to keep the old header or not.
DocumentHandlerException
- If something went wrong while splitting the table.public CellAttributes getCellAttributes()
getCellAttributes
in interface PdfCellContainer
public float getLineSpacing()
getLineSpacing
in interface CommonAttributesHolder
public float getLeading()
getLeading
in interface CommonAttributesHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |