public class PdfARadioCheckField extends RadioCheckField
Modifier and Type | Field | Description |
---|---|---|
protected static java.lang.String |
check |
|
protected static java.lang.String |
circle |
|
protected static java.lang.String |
cross |
|
protected static java.lang.String |
diamond |
|
protected static java.lang.String |
square |
|
protected static java.lang.String |
star |
|
protected static java.lang.String[] |
typeStreams |
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
checkType, TYPE_CHECK, TYPE_CIRCLE, TYPE_CROSS, TYPE_DIAMOND, TYPE_SQUARE, TYPE_STAR, typeChars
Constructor | Description |
---|---|
PdfARadioCheckField(PdfWriter writer,
Rectangle box,
java.lang.String fieldName,
java.lang.String onValue) |
Modifier and Type | Method | 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.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAppearanceRadioCircle, getCheckField, getCheckType, getOnValue, getRadioField, getRadioGroup, isChecked, setChecked, setOnValue
protected static final java.lang.String check
protected static final java.lang.String circle
protected static final java.lang.String cross
protected static final java.lang.String diamond
protected static final java.lang.String square
protected static final java.lang.String star
protected static java.lang.String[] typeStreams
protected PdfFormField getField(boolean isRadio) throws java.io.IOException, DocumentException
RadioCheckField
getField
in class RadioCheckField
isRadio
- true
to get a radio field, false
to get
a check fieldjava.io.IOException
- on errorDocumentException
- on errorpublic 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 symbolpublic PdfAppearance getAppearance(boolean isRadio, boolean on) throws java.io.IOException, DocumentException
RadioCheckField
getAppearance
in class RadioCheckField
isRadio
- true
for a radio field and false
for a check fieldon
- true
for the checked state, false
otherwisejava.io.IOException
- on errorDocumentException
- on errorprotected BaseFont getRealFont() throws java.io.IOException, DocumentException
getRealFont
in class BaseField
java.io.IOException
DocumentException
Copyright © 1998–2018. All rights reserved.