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
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCell(PLTableCell aCell, WidthSpec aWidth) voidforEachCell(int nStartIncl, int nEndIncl, Consumer<? super PLTableCell> aConsumer) voidforEachCell(int nStartIncl, int nEndIncl, ObjIntConsumer<? super PLTableCell> aConsumer) voidforEachCell(IPLTableCellConsumer aConsumer) voidforEachCell(IPLTableCellFilter aFilter, IPLTableCellConsumer aConsumer) voidforEachCell(Consumer<? super PLTableCell> aConsumer) voidforEachCell(ObjIntConsumer<? super PLTableCell> aConsumer) getCellAtIndex(int nIndex) Create a new object of the same type as this object.protected PLTableCellinternalCreateVertSplitEmptyElement(IPLRenderableObject<?> aSrcObject, float fWidth, float fHeight) Create an empty element that is to be used as a place holder for splitting.protected voidonRender(PageRenderContext aCtx) Abstract method to be implemented by subclasses.setBorder(BorderStyleSpec aBorder) setBorderBottom(BorderStyleSpec aBorder) setBorderLeft(BorderStyleSpec aBorder) setBorderRight(BorderStyleSpec aBorder) setBorderTop(BorderStyleSpec aBorder) setBorderX(BorderStyleSpec aBorder) setBorderY(BorderStyleSpec aBorder) setFillColor(PLColor aFillColor) setMargin(float fMargin) setMargin(MarginSpec aMargin) setMarginBottom(float fMargin) setMarginLeft(float fMargin) setMarginRight(float fMargin) setMarginTop(float fMargin) setMarginX(float fMargin) setMarginY(float fMargin) setPadding(float fPadding) setPadding(PaddingSpec aPadding) setPaddingBottom(float fPadding) setPaddingLeft(float fPadding) setPaddingRight(float fPadding) setPaddingTop(float fPadding) setPaddingX(float fPadding) setPaddingY(float fPadding) 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, visitMethods inherited from class com.helger.pdflayout.base.AbstractPLRenderableObject
getPrepareAvailableSize, getPreparedSize, getRenderSize, getRenderSize, internalCheckAlreadyPrepared, internalCheckNotPrepared, internalMarkAsNotPrepared, internalMarkAsNotPreparedDontPropagate, internalMarkAsPrepared, isPrepared, onRenderSizeChange, prepare, renderMethods inherited from class com.helger.pdflayout.base.AbstractPLObject
getDebugID, getID, onAfterSetID, setIDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.commons.id.IHasID
getIDMethods inherited from interface com.helger.pdflayout.base.IPLHasOutline
getOutlineBottom, getOutlineLeft, getOutlineRight, getOutlineTop, getOutlineXSum, getOutlineYSumMethods inherited from interface com.helger.pdflayout.base.IPLObject
getAsSplittable, getDebugID, hasIDMethods inherited from interface com.helger.pdflayout.base.IPLRenderableObject
beforeRender, getPreparedHeight, getPreparedWidth, getRenderHeight, getRenderWidth
-
Constructor Details
-
PLTableRow
public PLTableRow()
-
-
Method Details
-
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
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
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
-
getCellAtIndex
-
getFirstCell
-
getLastCell
-
forEachCell
-
forEachCell
-
forEachCell
-
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
-
setBorder
-
setBorderTop
-
setBorderRight
-
setBorderBottom
-
setBorderLeft
-
setBorderX
-
setBorderY
-
setMargin
-
setMargin
-
setMarginTop
-
setMarginRight
-
setMarginBottom
-
setMarginLeft
-
setMarginX
-
setMarginY
-
setPadding
-
setPadding
-
setPaddingTop
-
setPaddingRight
-
setPaddingBottom
-
setPaddingLeft
-
setPaddingX
-
setPaddingY
-