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()
Deprecated.
Will be removed in 3.0.0, override
adjustFieldLayout(LayoutContext) instead.
|
protected void |
adjustFieldLayout(com.itextpdf.layout.layout.LayoutContext layoutContext) |
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) |
float |
getAscent() |
protected Float |
getContentWidth()
Deprecated.
will be removed in 3.0.0. Use
retrieveWidth(float)} instead.
|
String |
getDefaultValue()
Gets the default value of the form field.
|
float |
getDescent() |
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 |
isLayoutBasedOnFlatRenderer() |
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) |
protected Float |
retrieveWidth(float parentBoxWidth) |
applyBordersPaddingsMargins, applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getOccupiedAreaBBoxaddAllProperties, addChild, alignChildHorizontally, allowLastYLineRecursiveExtraction, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTransformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, 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, hasRelativeUnitValue, initElementAreas, isAbsolutePosition, isBorderBoxSizing, isFirstOnRootArea, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isNotFittingWidth, isOverflowFit, isOverflowProperty, isOverflowProperty, isOverflowProperty, isPositioned, isRelativePosition, isStaticLayout, move, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveUnitValue, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected 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
public float getAscent()
getAscent in interface com.itextpdf.layout.renderer.ILeafElementRenderer
public float getDescent()
getDescent in interface com.itextpdf.layout.renderer.ILeafElementRenderer
public com.itextpdf.layout.minmaxwidth.MinMaxWidth getMinMaxWidth()
getMinMaxWidth in class com.itextpdf.layout.renderer.BlockRenderer
@Deprecated protected abstract void adjustFieldLayout()
adjustFieldLayout(LayoutContext) instead.
protected void adjustFieldLayout(com.itextpdf.layout.layout.LayoutContext layoutContext)
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
@Deprecated protected Float getContentWidth()
retrieveWidth(float)} instead.
protected Float retrieveWidth(float parentBoxWidth)
retrieveWidth in class com.itextpdf.layout.renderer.AbstractRenderer
protected boolean isLayoutBasedOnFlatRenderer()
Copyright © 1998–2019 iText Group NV. All rights reserved.