public class PDRadioCollection extends PDChoiceButton
PDCheckbox| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_RADIOS_IN_UNISON
A Ff flag.
|
FLAG_NO_EXPORT, FLAG_READ_ONLY, FLAG_REQUIRED| Constructor and Description |
|---|
PDRadioCollection(PDAcroForm theAcroForm,
COSDictionary field) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getKids()
This will return a list of PDField objects that are part of this radio collection.
|
java.lang.String |
getValue()
getValue gets the fields value to as a string.
|
boolean |
isRadiosInUnison() |
void |
setRadiosInUnison(boolean radiosInUnison)
From the PDF Spec
If set, a group of radio buttons within a radio button field that use the same value for the on state will turn on and off in unison; that is if one is checked, they are all checked. |
void |
setValue(java.lang.String value)
This setValue method iterates the collection of radiobuttons
and checks or unchecks each radiobutton according to the
given value.
|
getOptions, setOptionsfindFieldType, findKid, getAcroForm, getActions, getAlternateFieldName, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getParent, getPartialName, getWidget, getWidgets, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setAlternateFieldName, setFieldFlags, setFieldType, setKids, setNoExport, setParent, setPartialName, setReadonly, setRequired, toStringpublic static final int FLAG_RADIOS_IN_UNISON
public PDRadioCollection(PDAcroForm theAcroForm, COSDictionary field)
theAcroForm - The acroForm for this field.field - The field that makes up the radio collection.
public void setRadiosInUnison(boolean radiosInUnison)
radiosInUnison - The new flag for radiosInUnison.public boolean isRadiosInUnison()
public void setValue(java.lang.String value)
throws java.io.IOException
public java.lang.String getValue()
throws java.io.IOException
public java.util.List getKids()
throws java.io.IOException
getKids in class PDFieldjava.io.IOException - if there is an error while creating the children objects.PDField.getWidget()