public abstract class AbstractFormFieldRenderer extends BlockRenderer
BlockRenderer for form fields.| Modifier and Type | Field and Description |
|---|---|
protected IRenderer |
flatRenderer
The flat renderer.
|
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
adjustFieldLayout(LayoutContext layoutContext)
Adjusts the field layout.
|
protected void |
applyAccessibilityProperties(PdfFormField formField,
PdfDocument pdfDocument)
Applies the accessibility properties to the form field.
|
protected abstract void |
applyAcroField(DrawContext drawContext)
Applies the AcroField widget.
|
protected abstract IRenderer |
createFlatRenderer()
Creates the flat renderer instance.
|
void |
draw(DrawContext drawContext) |
void |
drawChildren(DrawContext drawContext) |
protected PdfConformance |
getConformance(PdfDocument document)
Gets the conformance.
|
String |
getDefaultValue()
Gets the default value of the form field.
|
protected String |
getLang()
Gets the accessibility language using
IAccessibleElement.getAccessibilityProperties(). |
MinMaxWidth |
getMinMaxWidth() |
protected String |
getModelId()
Gets the model id.
|
boolean |
isFlatten()
Checks if form fields need to be flattened.
|
protected boolean |
isLayoutBasedOnFlatRenderer()
Determines, whether the layout is based in the renderer itself or flat renderer.
|
protected boolean |
isRendererFit(float availableWidth,
float availableHeight)
Checks if the renderer fits a certain width and height.
|
LayoutResult |
layout(LayoutContext layoutContext) |
protected void |
writeAcroFormFieldLangAttribute(PdfDocument pdfDoc)
Sets the form accessibility language identifier of the form element in case the document is tagged.
|
applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getOccupiedAreaBBox, getResolvedFontaddAllProperties, addChild, alignChildHorizontally, allowLastYLineRecursiveExtraction, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTransformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBackgroundArea, clipBorderArea, createXObject, deleteOwnProperty, deleteProperty, drawBackground, drawBorder, endElementOpacityApplying, endTransformationIfApplied, getBackgroundArea, 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, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNextRendererprotected IRenderer flatRenderer
public boolean isFlatten()
public String getDefaultValue()
public LayoutResult layout(LayoutContext layoutContext)
layout in interface IRendererlayout in class BlockRendererpublic void draw(DrawContext drawContext)
draw in interface IRendererdraw in class BlockRendererpublic MinMaxWidth getMinMaxWidth()
getMinMaxWidth in class BlockRendererpublic void drawChildren(DrawContext drawContext)
drawChildren in class AbstractRendererprotected void applyAccessibilityProperties(PdfFormField formField, PdfDocument pdfDocument)
formField - The form field to which the accessibility properties should be applied.pdfDocument - The document to which the form field belongs.protected abstract void adjustFieldLayout(LayoutContext layoutContext)
layoutContext - layout contextprotected abstract IRenderer createFlatRenderer()
protected abstract void applyAcroField(DrawContext drawContext)
drawContext - the draw contextprotected String getModelId()
protected boolean isRendererFit(float availableWidth,
float availableHeight)
availableWidth - the available widthavailableHeight - the available heightprotected String getLang()
IAccessibleElement.getAccessibilityProperties().protected PdfConformance getConformance(PdfDocument document)
document - the documentprotected boolean isLayoutBasedOnFlatRenderer()
true if layout is based on flat renderer, false otherwise.protected void writeAcroFormFieldLangAttribute(PdfDocument pdfDoc)
pdfDoc - the document which contains form fieldCopyright © 1998–2024 Apryse Group NV. All rights reserved.