Package com.pdftools.toolbox.pdf.forms
Class RadioButton
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.forms.RadioButton
-
public class RadioButton extends NativeObject
A button in a radio button group
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Widget
addNewWidget(Rectangle boundingBox)
Create radio button widgetjava.lang.String
getExportName()
The button's name used when exporting (Getter)WidgetList
getWidgets()
The button's widget annotations (Getter)-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
addNewWidget
public Widget addNewWidget(Rectangle boundingBox)
Create radio button widget
This method creates a widget for the radio button. The widget is automatically added to the button's widgets and to the radio button form field's widgets, but not to any page.- Parameters:
boundingBox
- The widget's target rectangle on the page- Returns:
- the newly created form field widget
- Throws:
java.lang.IllegalStateException
- if the document has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- ifboundingBox
isnull
-
getExportName
public java.lang.String getExportName()
The button's name used when exporting (Getter)
- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
getWidgets
public WidgetList getWidgets()
The button's widget annotations (Getter)
- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
-