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 |
---|---|
List |
getKids()
This will return a list of PDField objects that are part of this radio collection.
|
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(String value)
This setValue method iterates the collection of radiobuttons
and checks or unchecks each radiobutton according to the
given value.
|
getOptions, setOptions
findFieldType, findKid, getAcroForm, getActions, getAlternateFieldName, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getParent, getPartialName, getWidget, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setAlternateFieldName, setFieldFlags, setFieldType, setKids, setNoExport, setParent, setPartialName, setReadonly, setRequired, toString
public 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(String value) throws IOException
setValue
in class PDField
value
- the string valueIOException
- If there is an error creating the appearance stream.public String getValue() throws IOException
getValue
in class PDField
IOException
- If there is an error getting the value.public List getKids() throws IOException
getKids
in class PDField
IOException
- if there is an error while creating the children objects.PDField.getWidget()
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.