Package com.itextpdf.text.pdf
Class PdfARadioCheckField
java.lang.Object
com.itextpdf.text.pdf.BaseField
com.itextpdf.text.pdf.RadioCheckField
com.itextpdf.text.pdf.PdfARadioCheckField
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
private static final PdfName
protected static final String
protected static final String
protected static String[]
Fields inherited from class com.itextpdf.text.pdf.RadioCheckField
checkType, TYPE_CHECK, TYPE_CIRCLE, TYPE_CROSS, TYPE_DIAMOND, TYPE_SQUARE, TYPE_STAR, typeChars
Fields inherited from class com.itextpdf.text.pdf.BaseField
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 Summary
ConstructorsConstructorDescriptionPdfARadioCheckField
(PdfWriter writer, Rectangle box, String fieldName, String onValue) -
Method Summary
Modifier and TypeMethodDescriptiongetAppearance
(boolean isRadio, boolean on) Gets the field appearance.protected PdfFormField
getField
(boolean isRadio) Gets a radio or check field.protected BaseFont
void
setCheckType
(int checkType) Sets the checked symbol.Methods inherited from class com.itextpdf.text.pdf.RadioCheckField
getAppearanceRadioCircle, getCheckField, getCheckType, getOnValue, getRadioField, getRadioGroup, isChecked, setChecked, setOnValue
Methods inherited from class com.itextpdf.text.pdf.BaseField
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
-
Field Details
-
off
-
check
- See Also:
-
circle
- See Also:
-
cross
- See Also:
-
diamond
- See Also:
-
square
- See Also:
-
star
- See Also:
-
typeStreams
-
-
Constructor Details
-
PdfARadioCheckField
-
-
Method Details
-
getField
Description copied from class:RadioCheckField
Gets a radio or check field.- Overrides:
getField
in classRadioCheckField
- Parameters:
isRadio
-true
to get a radio field,false
to get a check field- Returns:
- the field
- Throws:
IOException
- on errorDocumentException
- on error
-
setCheckType
public void setCheckType(int checkType) Description copied from class:RadioCheckField
Sets the checked symbol. It can beTYPE_CHECK
,TYPE_CIRCLE
,TYPE_CROSS
,TYPE_DIAMOND
,TYPE_SQUARE
andTYPE_STAR
.- Overrides:
setCheckType
in classRadioCheckField
- Parameters:
checkType
- the checked symbol
-
getAppearance
public PdfAppearance getAppearance(boolean isRadio, boolean on) throws IOException, DocumentException Description copied from class:RadioCheckField
Gets the field appearance.- Overrides:
getAppearance
in classRadioCheckField
- Parameters:
isRadio
-true
for a radio field andfalse
for a check fieldon
-true
for the checked state,false
otherwise- Returns:
- the appearance
- Throws:
IOException
- on errorDocumentException
- on error
-
getRealFont
- Overrides:
getRealFont
in classBaseField
- Throws:
IOException
DocumentException
-