Class PLTableRow
- java.lang.Object
-
- com.helger.pdflayout.base.AbstractPLObject<IMPLTYPE>
-
- com.helger.pdflayout.base.AbstractPLRenderableObject<IMPLTYPE>
-
- com.helger.pdflayout.element.hbox.AbstractPLHBox<PLTableRow>
-
- com.helger.pdflayout.element.table.PLTableRow
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.commons.traits.IGenericImplTrait<PLTableRow>,IPLHasOutline,IPLObject<PLTableRow>,IPLRenderableObject<PLTableRow>,IPLSplittableObject<PLTableRow,PLTableRow>,IPLVisitable
public class PLTableRow extends AbstractPLHBox<PLTableRow>
A special HBox representing a table row.- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from interface com.helger.pdflayout.base.IPLSplittableObject
DEFAULT_VERT_SPLITTABLE
-
-
Constructor Summary
Constructors Constructor Description PLTableRow()
-
Method Summary
-
Methods inherited from class com.helger.pdflayout.element.hbox.AbstractPLHBox
addAndReturnColumn, addAndReturnColumn, addColumn, addColumn, containsAnyVertSplittableElement, forEachColumn, forEachColumnByIndex, getAllColumns, getColumnAtIndex, getColumnCount, getColumnElementAtIndex, getColumns, getFirstColumn, getFirstColumnElement, getLastColumn, getLastColumnElement, isVertSplittable, onMarkAsNotPrepared, onPrepare, removeColumn, setBasicDataFrom, setVertSplittable, splitElementVert, toString, visit
-
Methods inherited from class com.helger.pdflayout.base.AbstractPLRenderableObject
getPrepareAvailableSize, getPreparedSize, getRenderSize, getRenderSize, internalCheckAlreadyPrepared, internalCheckNotPrepared, internalMarkAsNotPrepared, internalMarkAsNotPreparedDontPropagate, internalMarkAsPrepared, isPrepared, onRenderSizeChange, prepare, render
-
Methods inherited from class com.helger.pdflayout.base.AbstractPLObject
getDebugID, getID, onAfterSetID, setID
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.pdflayout.base.IPLHasOutline
getOutlineBottom, getOutlineLeft, getOutlineRight, getOutlineTop, getOutlineXSum, getOutlineYSum
-
Methods inherited from interface com.helger.pdflayout.base.IPLObject
getAsSplittable, getDebugID, hasID
-
Methods inherited from interface com.helger.pdflayout.base.IPLRenderableObject
beforeRender, getPreparedHeight, getPreparedWidth, getRenderHeight, getRenderWidth
-
-
-
-
Method Detail
-
internalCreateVertSplitEmptyElement
@Nonnull protected PLTableCell internalCreateVertSplitEmptyElement(@Nonnull IPLRenderableObject<?> aSrcObject, float fWidth, float fHeight)
Description copied from class:AbstractPLHBoxCreate an empty element that is to be used as a place holder for splitting. The returned object must be prepared!- Overrides:
internalCreateVertSplitEmptyElementin classAbstractPLHBox<PLTableRow>- Parameters:
aSrcObject- Source element of the hbox to be splitfWidth- Column widthfHeight- Column height- Returns:
- Never
null.
-
internalCreateNewVertSplitObject
@Nonnull public PLTableRow internalCreateNewVertSplitObject(@Nonnull PLTableRow aBase)
Description copied from interface:IPLSplittableObjectCreate a new object of the same type as this object.- Parameters:
aBase- The source object to copy data from.- Returns:
- Never
null.
-
onRender
protected void onRender(@Nonnull PageRenderContext aCtx) throws IOException
Description copied from class:AbstractPLRenderableObjectAbstract method to be implemented by subclasses.- Overrides:
onRenderin classAbstractPLHBox<PLTableRow>- Parameters:
aCtx- Rendering context. Nevernull.- Throws:
IOException- In case of a PDFBox error
-
addCell
public void addCell(@Nonnull PLTableCell aCell, @Nonnull WidthSpec aWidth)
-
getCellAtIndex
@Nullable public PLTableCell getCellAtIndex(int nIndex)
-
getFirstCell
@Nullable public PLTableCell getFirstCell()
-
getLastCell
@Nullable public PLTableCell getLastCell()
-
forEachCell
public void forEachCell(@Nonnull Consumer<? super PLTableCell> aConsumer)
-
forEachCell
public void forEachCell(@Nonnull ObjIntConsumer<? super PLTableCell> aConsumer)
-
forEachCell
public void forEachCell(@Nonnull IPLTableCellConsumer aConsumer)
-
forEachCell
public void forEachCell(int nStartIncl, int nEndIncl, @Nonnull Consumer<? super PLTableCell> aConsumer)
-
forEachCell
public void forEachCell(int nStartIncl, int nEndIncl, @Nonnull ObjIntConsumer<? super PLTableCell> aConsumer)
-
forEachCell
public void forEachCell(@Nonnull IPLTableCellFilter aFilter, @Nonnull IPLTableCellConsumer aConsumer)
-
setFillColor
@Nonnull public PLTableRow setFillColor(@Nullable Color aFillColor)
-
setBorder
@Nonnull public PLTableRow setBorder(@Nullable BorderStyleSpec aBorder)
-
setBorderTop
@Nonnull public PLTableRow setBorderTop(@Nullable BorderStyleSpec aBorder)
-
setBorderRight
@Nonnull public PLTableRow setBorderRight(@Nullable BorderStyleSpec aBorder)
-
setBorderBottom
@Nonnull public PLTableRow setBorderBottom(@Nullable BorderStyleSpec aBorder)
-
setBorderLeft
@Nonnull public PLTableRow setBorderLeft(@Nullable BorderStyleSpec aBorder)
-
setBorderX
@Nonnull public PLTableRow setBorderX(@Nullable BorderStyleSpec aBorder)
-
setBorderY
@Nonnull public PLTableRow setBorderY(@Nullable BorderStyleSpec aBorder)
-
setMargin
@Nonnull public PLTableRow setMargin(@Nonnull MarginSpec aMargin)
-
setMargin
@Nonnull public PLTableRow setMargin(float fMargin)
-
setMarginTop
@Nonnull public PLTableRow setMarginTop(float fMargin)
-
setMarginRight
@Nonnull public PLTableRow setMarginRight(float fMargin)
-
setMarginBottom
@Nonnull public PLTableRow setMarginBottom(float fMargin)
-
setMarginLeft
@Nonnull public PLTableRow setMarginLeft(float fMargin)
-
setMarginX
@Nonnull public PLTableRow setMarginX(float fMargin)
-
setMarginY
@Nonnull public PLTableRow setMarginY(float fMargin)
-
setPadding
@Nonnull public PLTableRow setPadding(@Nonnull PaddingSpec aPadding)
-
setPadding
@Nonnull public PLTableRow setPadding(float fPadding)
-
setPaddingTop
@Nonnull public PLTableRow setPaddingTop(float fPadding)
-
setPaddingRight
@Nonnull public PLTableRow setPaddingRight(float fPadding)
-
setPaddingBottom
@Nonnull public PLTableRow setPaddingBottom(float fPadding)
-
setPaddingLeft
@Nonnull public PLTableRow setPaddingLeft(float fPadding)
-
setPaddingX
@Nonnull public PLTableRow setPaddingX(float fPadding)
-
setPaddingY
@Nonnull public PLTableRow setPaddingY(float fPadding)
-
-