Package org.xhtmlrenderer.pdf
Class AbstractFormField
- java.lang.Object
-
- org.xhtmlrenderer.pdf.AbstractFormField
-
- All Implemented Interfaces:
ReplacedElement,ITextReplacedElement
- Direct Known Subclasses:
CheckboxFormField,EmptyReplacedElement,RadioButtonFormField,SelectFormField,TextAreaFormField,TextFormField
@ParametersAreNonnullByDefault public abstract class AbstractFormField extends Object implements ITextReplacedElement
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_CHECKED_STATEprotected static StringOFF_STATE
-
Constructor Summary
Constructors Constructor Description AbstractFormField()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddetach(LayoutContext c)protected StringgetFieldName(ITextOutputDevice outputDevice, Element e)protected abstract StringgetFieldType()protected intgetHeight()intgetIntrinsicHeight()intgetIntrinsicWidth()PointgetLocation()protected StringgetValue(Element e)protected intgetWidth()protected intgetX()protected intgetY()protected voidinitDimensions(LayoutContext c, BlockBox box, int cssWidth, int cssHeight)protected booleanisChecked(Element e)protected booleanisReadOnly(Element e)booleanisRequiresInteractivePaint()protected booleanisSelected(Element e)protected voidsetFillColor(com.lowagie.text.pdf.PdfTemplate template, FSColor color)protected voidsetHeight(int height)voidsetLocation(int x, int y)protected voidsetStrokeColor(com.lowagie.text.pdf.PdfTemplate template, 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, wait
-
Methods inherited from interface org.xhtmlrenderer.pdf.ITextReplacedElement
paint
-
Methods inherited from interface org.xhtmlrenderer.extend.ReplacedElement
getBaseline, hasBaseline
-
-
-
-
Field Detail
-
DEFAULT_CHECKED_STATE
protected static final String DEFAULT_CHECKED_STATE
- See Also:
- Constant Field Values
-
OFF_STATE
protected static final String OFF_STATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFieldType
protected abstract String 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
protected String getFieldName(ITextOutputDevice outputDevice, Element e)
-
isChecked
protected boolean isChecked(Element e)
-
isReadOnly
protected boolean isReadOnly(Element e)
-
isSelected
protected boolean isSelected(Element e)
-
detach
public void detach(LayoutContext c)
- Specified by:
detachin interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeightin interfaceReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()
- Specified by:
getIntrinsicWidthin interfaceReplacedElement
-
getLocation
public Point getLocation()
- Specified by:
getLocationin interfaceReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaintin interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y)- Specified by:
setLocationin interfaceReplacedElement
-
initDimensions
protected void initDimensions(LayoutContext c, BlockBox box, int cssWidth, int cssHeight)
-
spaces
protected String spaces(int count)
-
setStrokeColor
protected void setStrokeColor(com.lowagie.text.pdf.PdfTemplate template, FSColor color)
-
setFillColor
protected void setFillColor(com.lowagie.text.pdf.PdfTemplate template, FSColor color)
-
-