public class TextAreaRenderer extends AbstractTextFieldRenderer
AbstractTextFieldRenderer
implementation for text area fields.
font
flatRenderer
Constructor and Description |
---|
TextAreaRenderer(TextArea modelElement)
Creates a new TextAreaRenderer 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.
|
int |
getCols()
Gets the number of columns.
|
protected Float |
getLastYLineRecursively() |
com.itextpdf.layout.renderer.IRenderer |
getNextRenderer() |
|
getProperty(int key) |
int |
getRows()
Gets the number of rows.
|
protected boolean |
setMinMaxWidthBasedOnFixedWidth(com.itextpdf.layout.minmaxwidth.MinMaxWidth minMaxWidth) |
draw, drawChildren, getDefaultValue, getLang, getMinMaxWidth, getModelId, isFlatten, isLayoutBasedOnFlatRenderer, 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, getMargins, getModelElement, getOccupiedArea, getOwnProperties, getOwnProperty, getPaddings, getParent, 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, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidth
public TextAreaRenderer(TextArea modelElement)
TextAreaRenderer
instance.
modelElement
- the model element
public int getCols()
public int getRows()
protected Float getLastYLineRecursively()
getLastYLineRecursively
in class com.itextpdf.layout.renderer.AbstractRenderer
public com.itextpdf.layout.renderer.IRenderer getNextRenderer()
protected void adjustFieldLayout(com.itextpdf.layout.layout.LayoutContext layoutContext)
AbstractFormFieldRenderer
adjustFieldLayout
in class AbstractFormFieldRenderer
layoutContext
- layout context
protected com.itextpdf.layout.renderer.IRenderer createFlatRenderer()
AbstractFormFieldRenderer
createFlatRenderer
in class AbstractFormFieldRenderer
protected void applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext)
AbstractFormFieldRenderer
applyAcroField
in class AbstractFormFieldRenderer
drawContext
- the draw context
publicT1 getProperty(int key)
getProperty
in interface com.itextpdf.layout.IPropertyContainer
getProperty
in class com.itextpdf.layout.renderer.AbstractRenderer
protected boolean setMinMaxWidthBasedOnFixedWidth(com.itextpdf.layout.minmaxwidth.MinMaxWidth minMaxWidth)
setMinMaxWidthBasedOnFixedWidth
in class com.itextpdf.layout.renderer.AbstractRenderer
Copyright © 1998–2021 iText Group NV. All rights reserved.