public class RadioRenderer extends AbstractFormFieldRenderer
AbstractOneLineTextFieldRenderer
implementation for radio buttons.
flatRenderer
Constructor and Description |
---|
RadioRenderer(Radio modelElement)
Creates a new RadioRenderer instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
adjustFieldLayout(com.itextpdf.layout.layout.LayoutContext layoutContext)
Adjusts the field layout.
|
protected void |
applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext)
Applies the AcroField widget.
|
protected com.itextpdf.layout.renderer.IRenderer |
createFlatRenderer()
Creates the flat renderer instance.
|
com.itextpdf.layout.renderer.IRenderer |
getNextRenderer() |
boolean |
isBoxChecked()
Defines whether the radio is checked or not.
|
protected boolean |
isLayoutBasedOnFlatRenderer() |
draw, drawChildren, getDefaultValue, getLang, getMinMaxWidth, getModelId, isFlatten, isRendererFit, layout, writeAcroFormFieldLangAttribute
applyBordersPaddingsMargins, applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getOccupiedAreaBBox
addAllProperties, 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, updateWidth
public RadioRenderer(Radio modelElement)
RadioRenderer
instance.
modelElement
- the model element
public com.itextpdf.layout.renderer.IRenderer getNextRenderer()
protected com.itextpdf.layout.renderer.IRenderer createFlatRenderer()
AbstractFormFieldRenderer
createFlatRenderer
in class AbstractFormFieldRenderer
protected void adjustFieldLayout(com.itextpdf.layout.layout.LayoutContext layoutContext)
AbstractFormFieldRenderer
adjustFieldLayout
in class AbstractFormFieldRenderer
layoutContext
- layout context
public boolean isBoxChecked()
protected void applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext)
AbstractFormFieldRenderer
applyAcroField
in class AbstractFormFieldRenderer
drawContext
- the draw context
protected boolean isLayoutBasedOnFlatRenderer()
isLayoutBasedOnFlatRenderer
in class AbstractFormFieldRenderer
Copyright © 1998–2020 iText Group NV. All rights reserved.