public class PdfARadioCheckField extends RadioCheckField
Modifier and Type | Field and Description |
---|---|
protected static String |
check |
protected static String |
circle |
protected static String |
cross |
protected static String |
diamond |
protected static String |
square |
protected static String |
star |
protected static String[] |
typeStreams |
checkType, TYPE_CHECK, TYPE_CIRCLE, TYPE_CROSS, TYPE_DIAMOND, TYPE_SQUARE, TYPE_STAR, typeChars
alignment, backgroundColor, BORDER_WIDTH_MEDIUM, BORDER_WIDTH_THICK, BORDER_WIDTH_THIN, borderColor, borderStyle, borderWidth, box, COMB, DO_NOT_SCROLL, DO_NOT_SPELL_CHECK, EDIT, fieldName, FILE_SELECTION, font, fontSize, HIDDEN, HIDDEN_BUT_PRINTABLE, maxCharacterLength, MULTILINE, MULTISELECT, options, PASSWORD, READ_ONLY, REQUIRED, rotation, text, textColor, visibility, VISIBLE, VISIBLE_BUT_DOES_NOT_PRINT, writer
Constructor and Description |
---|
PdfARadioCheckField(PdfWriter writer, Rectangle box, String fieldName, String onValue) |
Modifier and Type | Method and Description |
---|---|
PdfAppearance |
getAppearance(boolean isRadio, boolean on)
Gets the field appearance.
|
protected PdfFormField |
getField(boolean isRadio)
Gets a radio or check field.
|
protected BaseFont |
getRealFont() |
void |
setCheckType(int checkType)
Sets the checked symbol.
|
getAppearanceRadioCircle, getCheckField, getCheckType, getOnValue, getRadioField, getRadioGroup, isChecked, setChecked, setOnValue
breakLines, getAlignment, getBackgroundColor, getBorderAppearance, getBorderColor, getBorderStyle, getBorderWidth, getBox, getFieldName, getFont, getFontSize, getHardBreaks, getMaxCharacterLength, getOptions, getRotation, getText, getTextColor, getVisibility, getWriter, moveFields, setAlignment, setBackgroundColor, setBorderColor, setBorderStyle, setBorderWidth, setBox, setFieldName, setFont, setFontSize, setMaxCharacterLength, setOptions, setRotation, setRotationFromPage, setText, setTextColor, setVisibility, setWriter, trimRight
protected static final String check
protected static final String circle
protected static final String cross
protected static final String diamond
protected static final String square
protected static final String star
protected static String[] typeStreams
protected PdfFormField getField(boolean isRadio) throws IOException, DocumentException
RadioCheckField
getField
in class RadioCheckField
isRadio
- true
to get a radio field, false
to get a check field
IOException
- on error
DocumentException
- on error
public void setCheckType(int checkType)
RadioCheckField
TYPE_CHECK
, TYPE_CIRCLE
, TYPE_CROSS
, TYPE_DIAMOND
, TYPE_SQUARE
and TYPE_STAR
.
setCheckType
in class RadioCheckField
checkType
- the checked symbol
public PdfAppearance getAppearance(boolean isRadio, boolean on) throws IOException, DocumentException
RadioCheckField
getAppearance
in class RadioCheckField
isRadio
- true
for a radio field and false
for a check field
on
- true
for the checked state, false
otherwise
IOException
- on error
DocumentException
- on error
protected BaseFont getRealFont() throws IOException, DocumentException
getRealFont
in class BaseField
IOException
DocumentException
Copyright © 2016. All rights reserved.