Class SelectFieldComboBoxRenderer
java.lang.Object
com.itextpdf.layout.renderer.AbstractRenderer
com.itextpdf.layout.renderer.BlockRenderer
com.itextpdf.forms.form.renderer.AbstractSelectFieldRenderer
com.itextpdf.forms.form.renderer.SelectFieldComboBoxRenderer
- All Implemented Interfaces:
IPropertyContainer, IRenderer
The
SelectFieldComboBoxRenderer implementation for select field renderer.-
Field Summary
FieldsFields inherited from class AbstractRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties -
Constructor Summary
ConstructorsConstructorDescriptionSelectFieldComboBoxRenderer(AbstractSelectField modelElement) Creates a newSelectFieldComboBoxRendererinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voidapplyAcroField(DrawContext drawContext) Applies the AcroField widget.private Paragraphprivate ParagraphcreateComboBoxOptionFlatElement(String label, boolean simulateOptGroupMargin) protected IRendererCreates the flat renderer instance.private IRenderercreateFlatRenderer(boolean addAllOptionsToChildren) getAllOptionsFlatElements(IRenderer renderer) getAllOptionsFlatElements(IRenderer renderer, boolean isInOptGroup) private IRenderergetFirstOption(IRenderer renderer) private UnitValueCalculates min and max width values for current renderer.Gets a new instance of this class to be used as a next renderer, after this renderer is used, ifIRenderer.layout(LayoutContext)is called more than once.getSingleSelectedOptionFlatRenderer(IRenderer optionsSubTree) private voidprocessLangAttribute(Paragraph optionFlatElement, IRenderer originalOptionRenderer) Methods inherited from class AbstractSelectFieldRenderer
applyAccessibilityProperties, draw, drawChildren, getConformance, getFinalSelectFieldHeight, getLang, getModelId, getOptionsMarkedSelected, isFlatten, isOptGroupRenderer, isOptionRenderer, layout, setupBuilderValues, writeAcroFormFieldLangAttributeMethods inherited from class BlockRenderer
applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getMinMaxWidth, getOccupiedAreaBBox, getResolvedFontMethods inherited from class AbstractRenderer
addAllProperties, addChild, alignChildHorizontally, 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, retrieveResolvedDeclaredHeight, retrieveUnitValue, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidth
-
Field Details
-
minMaxWidthRenderer
-
-
Constructor Details
-
SelectFieldComboBoxRenderer
Creates a newSelectFieldComboBoxRendererinstance.- Parameters:
modelElement- the model element
-
-
Method Details
-
getNextRenderer
Description copied from interface:IRendererGets a new instance of this class to be used as a next renderer, after this renderer is used, ifIRenderer.layout(LayoutContext)is called more than once.- Returns:
- new renderer instance
-
getMinMaxWidth
Description copied from class:BlockRendererCalculates min and max width values for current renderer.- Overrides:
getMinMaxWidthin classBlockRenderer- Returns:
- instance of
MinMaxWidth
-
allowLastYLineRecursiveExtraction
protected boolean allowLastYLineRecursiveExtraction()- Overrides:
allowLastYLineRecursiveExtractionin classAbstractRenderer
-
createFlatRenderer
Description copied from class:AbstractSelectFieldRendererCreates the flat renderer instance.- Specified by:
createFlatRendererin classAbstractSelectFieldRenderer- Returns:
IRendererinstance.
-
applyAcroField
Description copied from class:AbstractSelectFieldRendererApplies the AcroField widget.- Specified by:
applyAcroFieldin classAbstractSelectFieldRenderer- Parameters:
drawContext- the draw context
-
getFontSize
-
createFlatRenderer
-
getSingleSelectedOptionFlatRenderer
-
getFirstOption
-
getAllOptionsFlatElements
-
getAllOptionsFlatElements
-
processLangAttribute
-
createComboBoxOptionFlatElement
-
createComboBoxOptionFlatElement
-