public abstract class AbstractFormFieldRenderer
extends com.itextpdf.layout.renderer.BlockRenderer
implements com.itextpdf.layout.renderer.ILeafElementRenderer
BlockRenderer
for form fields.
Modifier and Type | Field and Description |
---|---|
protected com.itextpdf.layout.renderer.IRenderer |
flatRenderer
The flat renderer.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
adjustFieldLayout()
Adjusts the field layout.
|
protected abstract void |
applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext)
Applies the AcroField widget.
|
protected abstract com.itextpdf.layout.renderer.IRenderer |
createFlatRenderer()
Creates the flat renderer instance.
|
void |
draw(com.itextpdf.layout.renderer.DrawContext drawContext) |
void |
drawChildren(com.itextpdf.layout.renderer.DrawContext drawContext) |
protected Float |
getContentWidth()
Gets the content width.
|
String |
getDefaultValue()
Gets the default value of the form field.
|
protected com.itextpdf.layout.minmaxwidth.MinMaxWidth |
getMinMaxWidth() |
protected String |
getModelId()
Gets the model id.
|
boolean |
isFlatten()
Checks if form fields need to be flattened.
|
protected boolean |
isRendererFit(float availableWidth, float availableHeight)
Checks if the renderer fits a certain width and height.
|
com.itextpdf.layout.layout.LayoutResult |
layout(com.itextpdf.layout.layout.LayoutContext layoutContext) |
applyBordersPaddingsMargins, applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getOccupiedAreaBBox
addAllProperties, addChild, alignChildHorizontally, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTransformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBorderArea, deleteOwnProperty, deleteProperty, drawBackground, drawBorder, endElementOpacityApplying, endTransformationIfApplied, getBorderAreaBBox, getBorderRadii, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getLastYLineRecursively, getMargins, getModelElement, getOccupiedArea, getOwnProperties, getOwnProperty, getPaddings, getParent, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, getPropertyAsTransparentColor, getPropertyAsUnitValue, hasAbsoluteUnitValue, hasOwnOrModelProperty, hasOwnProperty, hasProperty, initElementAreas, isAbsolutePosition, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isNotFittingWidth, isPositioned, isRelativePosition, isStaticLayout, move, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeightsOnSplit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAscent, getDescent
protected com.itextpdf.layout.renderer.IRenderer flatRenderer
public boolean isFlatten()
public String getDefaultValue()
public com.itextpdf.layout.layout.LayoutResult layout(com.itextpdf.layout.layout.LayoutContext layoutContext)
layout
in interface com.itextpdf.layout.renderer.IRenderer
layout
in class com.itextpdf.layout.renderer.BlockRenderer
public void draw(com.itextpdf.layout.renderer.DrawContext drawContext)
draw
in interface com.itextpdf.layout.renderer.IRenderer
draw
in class com.itextpdf.layout.renderer.BlockRenderer
public void drawChildren(com.itextpdf.layout.renderer.DrawContext drawContext)
drawChildren
in class com.itextpdf.layout.renderer.AbstractRenderer
protected com.itextpdf.layout.minmaxwidth.MinMaxWidth getMinMaxWidth()
getMinMaxWidth
in class com.itextpdf.layout.renderer.BlockRenderer
protected abstract void adjustFieldLayout()
protected abstract com.itextpdf.layout.renderer.IRenderer createFlatRenderer()
protected abstract void applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext)
drawContext
- the draw context
protected String getModelId()
protected boolean isRendererFit(float availableWidth, float availableHeight)
availableWidth
- the available width
availableHeight
- the available height
protected Float getContentWidth()
Copyright © 1998–2019 iText Group NV. All rights reserved.