public class RadioButtonGroup extends Field
Modifier and Type | Method and Description |
---|---|
RadioButton |
addNewButton(java.lang.String exportName)
Create a radio button
|
static RadioButtonGroup |
create(Document targetDocument)
Create a radio button form field
|
static RadioButtonGroup |
createDynamicObject(long handle) |
RadioButtonList |
getButtons()
This field's buttons (Getter)
|
RadioButton |
getChosenButton()
This field's selected button (Getter)
|
void |
setChosenButton(RadioButton value)
This field's selected button (Setter)
|
addNewWidget, getDoNotExport, getReadOnly, getRequired, getWidgets, setDoNotExport, setReadOnly, setRequired
copy, getDisplayName, getExportName, setDisplayName, setExportName
equals, hashCode
public static RadioButtonGroup createDynamicObject(long handle)
public static RadioButtonGroup create(Document targetDocument)
targetDocument
- the output document with which the returned object is associatedjava.lang.IllegalArgumentException
- if the targetDocument
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- the target document contains form fields that have been implicitly copied by a call to
pdftoolbox.pdf.Page.copy
with an argument options
in which
pdftoolbox.pdf.PageCopyOptions.setFormFields
was set to FormFieldCopyStrategy.COPY
java.lang.IllegalArgumentException
- the target document contains unsigned signatures that have been implicitly copied by a call to
pdftoolbox.pdf.Page.copy
with an argument options
in which
pdftoolbox.pdf.PageCopyOptions.setUnsignedSignatures
was set to pdftoolbox.pdf.CopyStrategy.COPY
.public RadioButton addNewButton(java.lang.String exportName)
getButtons()
.exportName
- the radio button's export namejava.lang.IllegalStateException
- if the document has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlypublic RadioButtonList getButtons()
java.lang.IllegalStateException
- if the object has already been closedpublic RadioButton getChosenButton()
null
is set, then no button is chosen.java.lang.IllegalStateException
- if the object has already been closedpublic void setChosenButton(RadioButton value)
null
is set, then no button is chosen.java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- if the provided radio button object does not belong to the radio button fieldjava.lang.IllegalStateException
- if the given RadioButton
object is null
java.lang.IllegalStateException
- if the form field is marked as read-only