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 Stringprotected static final Stringprotected static final Stringprotected static final Stringprivate static final PdfNameprotected static final Stringprotected static final Stringprotected static String[]Fields inherited from class com.itextpdf.text.pdf.RadioCheckField
checkType, TYPE_CHECK, TYPE_CIRCLE, TYPE_CROSS, TYPE_DIAMOND, TYPE_SQUARE, TYPE_STAR, typeCharsFields 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 PdfFormFieldgetField(boolean isRadio) Gets a radio or check field.protected BaseFontvoidsetCheckType(int checkType) Sets the checked symbol.Methods inherited from class com.itextpdf.text.pdf.RadioCheckField
getAppearanceRadioCircle, getCheckField, getCheckType, getOnValue, getRadioField, getRadioGroup, isChecked, setChecked, setOnValueMethods 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:RadioCheckFieldGets a radio or check field.- Overrides:
getFieldin classRadioCheckField- Parameters:
isRadio-trueto get a radio field,falseto get a check field- Returns:
- the field
- Throws:
IOException- on errorDocumentException- on error
-
setCheckType
public void setCheckType(int checkType) Description copied from class:RadioCheckFieldSets the checked symbol. It can beTYPE_CHECK,TYPE_CIRCLE,TYPE_CROSS,TYPE_DIAMOND,TYPE_SQUAREandTYPE_STAR.- Overrides:
setCheckTypein classRadioCheckField- Parameters:
checkType- the checked symbol
-
getAppearance
public PdfAppearance getAppearance(boolean isRadio, boolean on) throws IOException, DocumentException Description copied from class:RadioCheckFieldGets the field appearance.- Overrides:
getAppearancein classRadioCheckField- Parameters:
isRadio-truefor a radio field andfalsefor a check fieldon-truefor the checked state,falseotherwise- Returns:
- the appearance
- Throws:
IOException- on errorDocumentException- on error
-
getRealFont
- Overrides:
getRealFontin classBaseField- Throws:
IOExceptionDocumentException
-