java.lang.Object
org.xhtmlrenderer.pdf.AbstractFormField
- All Implemented Interfaces:
org.xhtmlrenderer.extend.ReplacedElement,ITextReplacedElement
- Direct Known Subclasses:
CheckboxFormField,EmptyReplacedElement,RadioButtonFormField,SelectFormField,TextAreaFormField,TextFormField
@ParametersAreNonnullByDefault
public abstract class AbstractFormField
extends Object
implements ITextReplacedElement
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddetach(org.xhtmlrenderer.layout.LayoutContext c) protected StringgetFieldName(ITextOutputDevice outputDevice, Element e) protected abstract Stringprotected intintintprotected Stringprotected intgetWidth()protected intgetX()protected intgetY()protected voidinitDimensions(org.xhtmlrenderer.layout.LayoutContext c, org.xhtmlrenderer.render.BlockBox box, int cssWidth, int cssHeight) protected booleanprotected booleanbooleanprotected booleanprotected voidsetFillColor(com.lowagie.text.pdf.PdfTemplate template, org.xhtmlrenderer.css.parser.FSColor color) protected voidsetHeight(int height) voidsetLocation(int x, int y) protected voidsetStrokeColor(com.lowagie.text.pdf.PdfTemplate template, org.xhtmlrenderer.css.parser.FSColor color) protected voidsetWidth(int width) protected voidsetX(int x) protected voidsetY(int y) protected Stringspaces(int count) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xhtmlrenderer.pdf.ITextReplacedElement
paintMethods inherited from interface org.xhtmlrenderer.extend.ReplacedElement
getBaseline, hasBaseline
-
Field Details
-
DEFAULT_CHECKED_STATE
- See Also:
-
OFF_STATE
- See Also:
-
-
Constructor Details
-
AbstractFormField
public AbstractFormField()
-
-
Method Details
-
getFieldType
-
getX
protected int getX() -
setX
protected void setX(int x) -
getY
protected int getY() -
setY
protected void setY(int y) -
getWidth
protected int getWidth() -
setWidth
protected void setWidth(int width) -
getHeight
protected int getHeight() -
setHeight
protected void setHeight(int height) -
getFieldName
-
getValue
-
isChecked
-
isReadOnly
-
isSelected
-
detach
public void detach(org.xhtmlrenderer.layout.LayoutContext c) - Specified by:
detachin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeightin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidthin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
getLocation
- Specified by:
getLocationin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaintin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
setLocation
public void setLocation(int x, int y) - Specified by:
setLocationin interfaceorg.xhtmlrenderer.extend.ReplacedElement
-
initDimensions
protected void initDimensions(org.xhtmlrenderer.layout.LayoutContext c, org.xhtmlrenderer.render.BlockBox box, int cssWidth, int cssHeight) -
spaces
-
setStrokeColor
protected void setStrokeColor(com.lowagie.text.pdf.PdfTemplate template, org.xhtmlrenderer.css.parser.FSColor color) -
setFillColor
protected void setFillColor(com.lowagie.text.pdf.PdfTemplate template, org.xhtmlrenderer.css.parser.FSColor color)
-