public final class PDRadioButton extends PDButton
Constructor and Description |
---|
PDRadioButton(PDAcroForm acroForm) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getSelectedExportValues()
This will get the selected export values.
|
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. |
getDefaultValue, getExportValues, getOnValues, getValue, getValueAsString, isPushButton, isRadioButton, setDefaultValue, setExportValues, setPushButton, setRadioButton, setValue
applyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgets
getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toString
public PDRadioButton(PDAcroForm acroForm)
acroForm
- The acroform.PDField.PDField(PDAcroForm)
public void setRadiosInUnison(boolean radiosInUnison)
radiosInUnison
- The new flag for radiosInUnison.public boolean isRadiosInUnison()
public List<String> getSelectedExportValues() throws IOException
A RadioButton might have an export value to allow field values
which can not be encoded as PDFDocEncoding or for the same export value
being assigned to multiple RadioButtons in a group.
To define an export value the RadioButton must define options PDButton.setExportValues(List)
which correspond to the individual items within the RadioButton.
The method will either return the corresponding values from the options entry or in case there is no such entry the fields value
IOException
- in case the fields value can not be retrievedCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.