Package org.xhtmlrenderer.pdf
Class SelectFormField
java.lang.Object
org.xhtmlrenderer.pdf.AbstractFormField
org.xhtmlrenderer.pdf.SelectFormField
- All Implemented Interfaces:
ReplacedElement
,ITextReplacedElement
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final List
<SelectFormField.Option> private static final int
private static final int
private static final String
Fields inherited from class org.xhtmlrenderer.pdf.AbstractFormField
DEFAULT_CHECKED_STATE, OFF_STATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
calcDefaultWidth
(LayoutContext c, BlockBox box) private void
createAppearance
(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box, com.lowagie.text.pdf.PdfFormField field) int
protected String
private String[][]
private int
private int
boolean
protected void
initDimensions
(LayoutContext c, BlockBox box, int cssWidth, int cssHeight) protected boolean
void
paint
(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box) private List
<SelectFormField.Option> Methods inherited from class org.xhtmlrenderer.pdf.AbstractFormField
detach, getFieldName, getHeight, getIntrinsicHeight, getIntrinsicWidth, getLocation, getValue, getWidth, getX, getY, isChecked, isReadOnly, isRequiresInteractivePaint, isSelected, setFillColor, setHeight, setLocation, setStrokeColor, setWidth, setX, setY, spaces
-
Field Details
-
FIELD_TYPE
- See Also:
-
EMPTY_SPACE_COUNT
private static final int EMPTY_SPACE_COUNT- See Also:
-
EXTRA_SPACE_COUNT
private static final int EXTRA_SPACE_COUNT- See Also:
-
_options
-
_baseline
private final int _baseline
-
-
Constructor Details
-
SelectFormField
-
-
Method Details
-
getSelectedIndex
private int getSelectedIndex() -
getPDFOptions
-
calcDefaultWidth
-
readOptions
-
initDimensions
- Overrides:
initDimensions
in classAbstractFormField
-
getSize
-
isMultiple
-
getFieldType
- Specified by:
getFieldType
in classAbstractFormField
-
paint
-
createAppearance
private void createAppearance(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box, com.lowagie.text.pdf.PdfFormField field) -
getBaseline
public int getBaseline() -
hasBaseline
public boolean hasBaseline()
-