public class PLTable extends AbstractPLVBox<PLTable> implements IPLSplittableObject<PLTable>
m_aPreparedRowElementHeight, m_aPreparedRowElementWidth, m_aRowsDEFAULT_MAX_SIZE, DEFAULT_MIN_SIZEDEFAULT_MARGINDEFAULT_PADDINGDEFAULT_BORDERDEFAULT_FILL_COLOR| Constructor and Description |
|---|
PLTable(Iterable<? extends WidthSpec> aWidths) |
| Modifier and Type | Method and Description |
|---|---|
PLHBoxSplittable |
addTableRow(AbstractPLElement<?>... aElements)
Add a new table row.
|
PLHBoxSplittable |
addTableRow(Collection<? extends AbstractPLElement<?>> aElements)
Add a new table row.
|
PLHBoxSplittable |
addTableRowExt(Iterable<? extends PLTableCell> aCells)
Add a new table row.
|
PLHBoxSplittable |
addTableRowExt(PLTableCell... aCells) |
static PLTable |
createWithEvenlySizedColumns(int nColumnCount)
Create a new table with evenly sized columns.
|
static PLTable |
createWithPercentage(float... aPercentages)
Create a new table with the specified percentages.
|
IPLRenderableObject<?> |
getCellElement(int nRowIndex,
int nColumnIndex)
Get the cell at the specified row and column index
|
int |
getColumnCount() |
int |
getHeaderRowCount() |
com.helger.commons.collection.ext.ICommonsList<WidthSpec> |
getWidths() |
PLTable |
setBasicDataFrom(PLTable aSource) |
PLTable |
setHeaderRowCount(int nHeaderRowCount)
Set the number of header rows in this table.
|
PLSplitResult |
splitElements(float fElementWidth,
float fAvailableHeight)
Split this element into sub-elements according to the available height.
|
String |
toString() |
addAndReturnRow, addAndReturnRow, addRow, addRow, doPageSetup, getAllRows, getFirstRow, getFirstRowElement, getLastRow, getLastRowElement, getRowAtIndex, getRowBorder, getRowCount, getRowElementAtIndex, getRowFillColor, onPerform, onPrepare, removeRow, setBasicDataFrom, setRowBorder, setRowFillColorgetBorder, getFillColor, getMargin, getPadding, setBasicDataFrom, setBorder, setFillColor, setMargin, setPaddinggetMaxSize, getMinSize, getPreparedSize, internalCheckNotPrepared, internalMarkAsNotPrepared, internalMarkAsPrepared, isPrepared, onPerformFillAndBorder, perform, prepare, setMaxSize, setMinSizegetDebugID, getID, setBasicDataFrom, setIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisSplittablegetAsSplittable, getDebugIDsetRowBorder, setRowBorder, setRowBorder, setRowBorderBottom, setRowBorderLeft, setRowBorderRight, setRowBorderTopgetMaxSize, getMinSize, getPreparedSize, isPrepared, perform, prepare, setExactSize, setMaxSize, setMinSizegetFullBottom, getFullLeft, getFullRight, getFullTop, getFullXSum, getFullYSum, getMarginAndBorderBottom, getMarginAndBorderLeft, getMarginAndBorderRight, getMarginAndBorderTop, getMarginAndBorderXSum, getMarginAndBorderYSumgetMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMarginXSum, getMarginYSum, setMargin, setMargin, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopgetPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPaddingXSum, getPaddingYSum, setPadding, setPadding, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTopgetBorderBottomWidth, getBorderLeftWidth, getBorderRightWidth, getBorderTopWidth, getBorderXSumWidth, getBorderYSumWidth, setBorder, setBorder, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTophasFillColor@Nonnull @OverridingMethodsMustInvokeSuper public PLTable setBasicDataFrom(@Nonnull PLTable aSource)
@Nonnull @Nonempty @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<WidthSpec> getWidths()
null nor empty.@Nonnegative public int getColumnCount()
@Nonnull public PLHBoxSplittable addTableRow(@Nullable AbstractPLElement<?>... aElements)
null elements are represented as
empty cells.aElements - The elements to add. May be null.null.@Nonnull public PLHBoxSplittable addTableRow(@Nonnull Collection<? extends AbstractPLElement<?>> aElements)
null elements are represented as
empty cells.aElements - The elements to add. May not be null.@Nonnull public PLHBoxSplittable addTableRowExt(@Nonnull PLTableCell... aCells)
@Nonnull public PLHBoxSplittable addTableRowExt(@Nonnull Iterable<? extends PLTableCell> aCells)
null elements are represented as
empty cells.aCells - The cells to add. May not be null.@Nonnegative public int getHeaderRowCount()
@Nonnull public PLTable setHeaderRowCount(@Nonnegative int nHeaderRowCount)
nHeaderRowCount - The number of header rows, to be repeated by page. Must be ≥ 0.@Nullable public IPLRenderableObject<?> getCellElement(@Nonnegative int nRowIndex, @Nonnegative int nColumnIndex)
nRowIndex - row indexnColumnIndex - column indexnull if row and/or column index are out of bounds.@Nullable public PLSplitResult splitElements(float fElementWidth, float fAvailableHeight)
IPLSplittableObjectsplitElements in interface IPLSplittableObject<PLTable>fElementWidth - The element width without padding or margin of the element.fAvailableHeight - The available height without y-padding and y-margin of this element.
Must be ≥ 0.null if splitting makes no sense.public String toString()
toString in class AbstractPLVBox<PLTable>@Nonnull @ReturnsMutableCopy public static PLTable createWithPercentage(@Nonnull @Nonempty float... aPercentages)
aPercentages - The array to use. The sum of all percentages should be ≤ 100. May
neither be null nor empty.PLTable and never null.@Nonnull @ReturnsMutableCopy public static PLTable createWithEvenlySizedColumns(@Nonnegative int nColumnCount)
nColumnCount - The number of columns to use. Must be > 0.PLTable and never null.Copyright © 2014–2016 Philip Helger. All rights reserved.