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 abstract void |
applyAcroField(DrawContext drawContext) |
protected abstract IRenderer |
createFlatRenderer() |
void |
draw(DrawContext drawContext) |
void |
drawChildren(DrawContext drawContext) |
protected float |
getFinalSelectFieldHeight(float availableHeight,
float actualHeight,
boolean isClippedHeight) |
protected String |
getLang()
Gets the accessibility language.
|
protected String |
getModelId()
Gets the model id.
|
protected List<IRenderer> |
getOptionsMarkedSelected(IRenderer optionsSubTree) |
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) |
applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getMinMaxWidth, getOccupiedAreaBBoxaddAllProperties, 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)
protected abstract IRenderer createFlatRenderer()
protected abstract void applyAcroField(DrawContext drawContext)
protected boolean isFlatten()
protected String getModelId()
protected void setupBuilderValues(ChoiceFormFieldBuilder builder, AbstractSelectField field)
builder - ChoiceFormFieldBuilder to set options to.field - AbstractSelectField to retrieve the options from.protected float getFinalSelectFieldHeight(float availableHeight,
float actualHeight,
boolean isClippedHeight)
Copyright © 1998–2023 Apryse Group NV. All rights reserved.