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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String
getFieldName
(ITextOutputDevice outputDevice, Element e) protected abstract String
protected int
int
int
Returns the current location where the element will be rendered on the canvasprotected String
protected int
getWidth()
protected int
getX()
protected int
getY()
protected void
initDimensions
(LayoutContext c, BlockBox box, int cssWidth, int cssHeight) protected boolean
protected boolean
boolean
protected boolean
protected void
setFillColor
(com.lowagie.text.pdf.PdfTemplate template, FSColor color) protected void
setHeight
(int height) void
setLocation
(int x, int y) Assigns the new locations where the element will be rendered.protected void
setStrokeColor
(com.lowagie.text.pdf.PdfTemplate template, FSColor color) protected void
setWidth
(int width) protected void
setX
(int x) protected void
setY
(int y) protected String
spaces
(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 Details
-
DEFAULT_CHECKED_STATE
- See Also:
-
OFF_STATE
- See Also:
-
FONT_SIZE_ADJUSTMENT
private static final float FONT_SIZE_ADJUSTMENT- See Also:
-
_x
private int _x -
_y
private int _y -
_width
private int _width -
_height
private int _height -
_fieldName
-
-
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
- Specified by:
detach
in interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeight
in interfaceReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidth
in interfaceReplacedElement
-
getLocation
Description copied from interface:ReplacedElement
Returns the current location where the element will be rendered on the canvas- Specified by:
getLocation
in interfaceReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaint
in interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y) Description copied from interface:ReplacedElement
Assigns the new locations where the element will be rendered.- Specified by:
setLocation
in interfaceReplacedElement
- Parameters:
x
- new horizontal positiony
- new vertical position
-
initDimensions
-
spaces
-
setStrokeColor
-
setFillColor
-