public abstract class AbstractFormFieldRenderer
extends com.itextpdf.layout.renderer.BlockRenderer 
      BlockRenderer for form fields. 
      | Modifier and Type | Field and Description | 
|---|---|
protected com.itextpdf.layout.renderer.IRenderer |  
           flatRenderer 
            
              The flat renderer. 
               |  
          
| Modifier and Type | Method and Description | 
|---|---|
protected abstract void |  
           adjustFieldLayout(com.itextpdf.layout.layout.LayoutContext layoutContext) 
            
              Adjusts the field layout. 
               |  
          
protected abstract void |  
           applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext) 
            
              Applies the AcroField widget. 
               |  
          
protected abstract com.itextpdf.layout.renderer.IRenderer |  
           createFlatRenderer() 
            
              Creates the flat renderer instance. 
               |  
          
void |  
           draw(com.itextpdf.layout.renderer.DrawContext drawContext)  |  
          
void |  
           drawChildren(com.itextpdf.layout.renderer.DrawContext drawContext)  |  
          
String |  
           getDefaultValue() 
            
              Gets the default value of the form field. 
               |  
          
protected String |  
           getLang() 
            
              Gets the accessibility language. 
               |  
          
com.itextpdf.layout.minmaxwidth.MinMaxWidth |  
           getMinMaxWidth()  |  
          
protected String |  
           getModelId() 
            
              Gets the model id. 
               |  
          
boolean |  
           isFlatten() 
            
              Checks if form fields need to be flattened. 
               |  
          
protected boolean |  
           isLayoutBasedOnFlatRenderer()  |  
          
protected boolean |  
           isRendererFit(float availableWidth, float availableHeight) 
            
              Checks if the renderer fits a certain width and height. 
               |  
          
com.itextpdf.layout.layout.LayoutResult |  
           layout(com.itextpdf.layout.layout.LayoutContext layoutContext)  |  
          
protected void |  
           writeAcroFormFieldLangAttribute(com.itextpdf.kernel.pdf.PdfDocument pdfDoc)  |  
          
applyBordersPaddingsMargins, applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, 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, updateWidthprotected com.itextpdf.layout.renderer.IRenderer flatRenderer
public boolean isFlatten()
public String getDefaultValue()
public com.itextpdf.layout.layout.LayoutResult layout(com.itextpdf.layout.layout.LayoutContext layoutContext)
layout in interface com.itextpdf.layout.renderer.IRenderer 
           layout in class com.itextpdf.layout.renderer.BlockRenderer 
           public void draw(com.itextpdf.layout.renderer.DrawContext drawContext)
draw in interface com.itextpdf.layout.renderer.IRenderer 
           draw in class com.itextpdf.layout.renderer.BlockRenderer 
           public void drawChildren(com.itextpdf.layout.renderer.DrawContext drawContext)
drawChildren in class com.itextpdf.layout.renderer.AbstractRenderer 
           public com.itextpdf.layout.minmaxwidth.MinMaxWidth getMinMaxWidth()
getMinMaxWidth in class com.itextpdf.layout.renderer.BlockRenderer 
           protected abstract void adjustFieldLayout(com.itextpdf.layout.layout.LayoutContext layoutContext)
layoutContext - layout context 
           protected abstract com.itextpdf.layout.renderer.IRenderer createFlatRenderer()
protected abstract void applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext)
drawContext - the draw context 
           protected String getModelId()
protected boolean isRendererFit(float availableWidth,
                                float availableHeight) 
          availableWidth - the available width 
           availableHeight - the available height 
           protected String getLang()
protected boolean isLayoutBasedOnFlatRenderer()
protected void writeAcroFormFieldLangAttribute(com.itextpdf.kernel.pdf.PdfDocument pdfDoc)
Copyright © 1998–2021 iText Group NV. All rights reserved.