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, getOccupiedAreaBBoxaddAllProperties, 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, updateHeightsOnSplitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAscent, getDescentprotected 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.IRendererlayout in class com.itextpdf.layout.renderer.BlockRendererpublic void draw(com.itextpdf.layout.renderer.DrawContext drawContext)
draw in interface com.itextpdf.layout.renderer.IRendererdraw in class com.itextpdf.layout.renderer.BlockRendererpublic void drawChildren(com.itextpdf.layout.renderer.DrawContext drawContext)
drawChildren in class com.itextpdf.layout.renderer.AbstractRendererprotected com.itextpdf.layout.minmaxwidth.MinMaxWidth getMinMaxWidth()
getMinMaxWidth in class com.itextpdf.layout.renderer.BlockRendererprotected abstract void adjustFieldLayout()
protected abstract com.itextpdf.layout.renderer.IRenderer createFlatRenderer()
protected abstract void applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext)
drawContext - the draw contextprotected String getModelId()
protected boolean isRendererFit(float availableWidth,
float availableHeight)
availableWidth - the available widthavailableHeight - the available heightprotected Float getContentWidth()
Copyright © 1998–2018 iText Group NV. All rights reserved.