public abstract class AbstractSelectFieldRenderer extends BlockRenderer
BlockRenderer for select form fields.childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSelectFieldRenderer(AbstractSelectField modelElement)
Creates a new
AbstractSelectFieldRenderer instance. |
| Modifier and Type | Method and Description |
|---|---|
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 PdfAConformanceLevel |
getConformanceLevel(PdfDocument document)
Deprecated.
since 8.0.4 will be return
IConformanceLevel |
protected float |
getFinalSelectFieldHeight(float availableHeight,
float actualHeight,
boolean isClippedHeight)
Returns final height of the select field.
|
protected IConformanceLevel |
getGenericConformanceLevel(PdfDocument document)
Deprecated.
since 8.0.4 will be renamed to getConformanceLevel()
|
protected String |
getLang()
Gets the accessibility language.
|
protected String |
getModelId()
Gets the model id.
|
protected List<IRenderer> |
getOptionsMarkedSelected(IRenderer optionsSubTree)
Gets options that are marked as selected from the select field options subtree.
|
protected boolean |
isFlatten()
Checks if form fields need to be flattened.
|
LayoutResult |
layout(LayoutContext layoutContext) |
protected void |
setupBuilderValues(ChoiceFormFieldBuilder builder,
AbstractSelectField field)
Retrieve the options from select field (can be combo box or list box field) and set them
to the form field builder.
|
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, getMinMaxWidth, 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 AbstractSelectFieldRenderer(AbstractSelectField modelElement)
AbstractSelectFieldRenderer instance.modelElement - the model elementpublic LayoutResult layout(LayoutContext layoutContext)
layout in interface IRendererlayout in class BlockRendererpublic void draw(DrawContext drawContext)
draw in interface IRendererdraw in class BlockRendererpublic void drawChildren(DrawContext drawContext)
drawChildren in class AbstractRendererprotected String getLang()
protected void writeAcroFormFieldLangAttribute(PdfDocument pdfDoc)
pdfDoc - the document which contains form field.protected 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 IRenderer createFlatRenderer()
IRenderer instance.protected abstract void applyAcroField(DrawContext drawContext)
drawContext - the draw contextprotected boolean isFlatten()
protected String getModelId()
protected void setupBuilderValues(ChoiceFormFieldBuilder builder, AbstractSelectField field)
builder - ChoiceFormFieldBuilder to set options tofield - AbstractSelectField to retrieve the options fromprotected float getFinalSelectFieldHeight(float availableHeight,
float actualHeight,
boolean isClippedHeight)
availableHeight - available height of the layout areaactualHeight - actual occupied height of the select fieldisClippedHeight - indicates whether the layout area's height is clipped or not@Deprecated protected PdfAConformanceLevel getConformanceLevel(PdfDocument document)
IConformanceLeveldocument - the document@Deprecated protected IConformanceLevel getGenericConformanceLevel(PdfDocument document)
document - the documentCopyright © 1998–2024 Apryse Group NV. All rights reserved.