public class InputFieldRenderer extends AbstractOneLineTextFieldRenderer
AbstractOneLineTextFieldRenderer
implementation for input fields.
baseline
font
flatRenderer
Constructor and Description |
---|
InputFieldRenderer(InputField modelElement)
Creates a new InputFieldRenderer instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
adjustFieldLayout()
Adjusts the field layout.
|
protected void |
adjustFieldLayout(com.itextpdf.layout.layout.LayoutContext layoutContext) |
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() |
|
getProperty(int key) |
int |
getSize()
Gets the size of the input field.
|
boolean |
isPassword()
Checks if the input field is a password field.
|
protected boolean |
setMinMaxWidthBasedOnFixedWidth(com.itextpdf.layout.minmaxwidth.MinMaxWidth minMaxWidth) |
move
draw, drawChildren, getAscent, getContentWidth, getDefaultValue, getDescent, getMinMaxWidth, getModelId, isFlatten, isLayoutBasedOnFlatRenderer, isRendererFit, layout, retrieveWidth
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, deleteOwnProperty, deleteProperty, drawBackground, drawBorder, endElementOpacityApplying, endTransformationIfApplied, getBorderAreaBBox, getBorderRadii, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getLastYLineRecursively, 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, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveUnitValue, setBorders, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public InputFieldRenderer(InputField modelElement)
InputFieldRenderer
instance.
modelElement
- the model element
public com.itextpdf.layout.renderer.IRenderer getNextRenderer()
public int getSize()
public boolean isPassword()
protected void adjustFieldLayout()
AbstractFormFieldRenderer
adjustFieldLayout
in class AbstractFormFieldRenderer
protected void adjustFieldLayout(com.itextpdf.layout.layout.LayoutContext layoutContext)
adjustFieldLayout
in class AbstractFormFieldRenderer
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–2019 iText Group NV. All rights reserved.