COSObjectable
public final class PDRadioButton extends PDButton
Constructor | Description |
---|---|
PDRadioButton(PDAcroForm acroForm) |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<java.lang.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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultValue, getExportValues, getOnValues, getValue, getValueAsString, isPushButton, isRadioButton, setDefaultValue, setExportValues, setPushButton, setRadioButton, setValue
getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toString
applyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgets
public PDRadioButton(PDAcroForm acroForm)
acroForm
- The acroform.PDField(PDAcroForm)
public void setRadiosInUnison(boolean radiosInUnison)
radiosInUnison
- The new flag for radiosInUnison.public boolean isRadiosInUnison()
public java.util.List<java.lang.String> getSelectedExportValues() throws java.io.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
java.io.IOException
- in case the fields value can not be retrievedCopyright © 2002–2018. All rights reserved.