Package com.winnovative_software
Class PdfFormRadioButtonsGroup
java.lang.Object
com.winnovative_software.PdfFormField
com.winnovative_software.PdfFormRadioButtonsGroup
Represents a group of radio buttons in a PDF form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRadioButton
(PdfFormRadioButton radioButton) Adds a radio button field to this document right after the last PDF element added to document or to a pagevoid
addRadioButton
(PdfFormRadioButton radioButton, float offsetY) Adds a radio button field to this document at the given Y offset after the last PDF element added to document or to a pagevoid
addRadioButton
(PdfFormRadioButton radioButton, float xLocation, boolean relativeXLocation, boolean offsetXFromStart, float yLocation, boolean relativeYLocation, boolean offsetYFromEnd) Adds a radio button field to this document at the given X and Y location in the PDF page where the last element rendering ended.void
addRadioButton
(PdfFormRadioButton radioButton, float xLocation, boolean relativeXLocation, float yLocation, boolean relativeYLocation) Adds a radio button field to this document at the given X and Y location in the PDF page where the last element rendering ended.void
addRadioButton
(PdfFormRadioButton radioButton, float offsetX, float offsetY) Adds a radio button field to this document at the given X offset and the given Y offset after the last PDF element added to document or to a pagevoid
addRadioButton
(PdfPage pdfPage, PdfFormRadioButton radioButton) Creates a radio button with given box and the given name in the given PDF pagevoid
setCheckedRadioButton
(PdfFormRadioButton radioButton) Call this method to check on the given radio buttonMethods inherited from class com.winnovative_software.PdfFormField
boundingRectangle, defaultValue, export, flatten, name, parentForm, readOnly, required, setAction, setBoundingRectangle, setDefaultValue, setExport, setFlatten, setName, setReadOnly, setRequired, setStyle, setToolTip, style, toolTip
-
Constructor Details
-
PdfFormRadioButtonsGroup
public PdfFormRadioButtonsGroup()Constructs a radio buttons group
-
-
Method Details
-
addRadioButton
Creates a radio button with given box and the given name in the given PDF page- Parameters:
pdfPage
- The PDF page where to add this radio buttonradioButton
- The radio button field to add
-
addRadioButton
Adds a radio button field to this document right after the last PDF element added to document or to a page- Parameters:
radioButton
- the radio button to add- Throws:
Exception
- an exception is thrown if the radio button cannot be added
-
addRadioButton
Adds a radio button field to this document at the given Y offset after the last PDF element added to document or to a page- Parameters:
radioButton
- the radio button to addoffsetY
- the Y offset from the last PDF element added to document- Throws:
Exception
- an exception is thrown if the radio button cannot be added
-
addRadioButton
public void addRadioButton(PdfFormRadioButton radioButton, float offsetX, float offsetY) throws Exception Adds a radio button field to this document at the given X offset and the given Y offset after the last PDF element added to document or to a page- Parameters:
radioButton
- the radio button to addoffsetX
- the X offset from the last PDF element added to documentoffsetY
- the Y offset from the last PDF element added to document- Throws:
Exception
- an exception is thrown if the radio button cannot be added
-
addRadioButton
public void addRadioButton(PdfFormRadioButton radioButton, float xLocation, boolean relativeXLocation, float yLocation, boolean relativeYLocation) throws Exception Adds a radio button field to this document at the given X and Y location in the PDF page where the last element rendering ended. The location can be absolute in PDF page or relative as an offset from the position where the last element rendering ended- Parameters:
radioButton
- the radio button field to be addedxLocation
- the X location of the element in the PDF page where the last element rendering endedrelativeXLocation
- the X location can be relative to the position where the last element rendering ended or absolute in PDF page where the last element rendering endedyLocation
- the Y location of the element in the PDF page where the last element rendering endedrelativeYLocation
- the Y location can be relative to the position where the last element rendering ended or absolute in PDF page where the last element rendering ended- Throws:
Exception
- an exception is thrown if the radio button cannot be added
-
addRadioButton
public void addRadioButton(PdfFormRadioButton radioButton, float xLocation, boolean relativeXLocation, boolean offsetXFromStart, float yLocation, boolean relativeYLocation, boolean offsetYFromEnd) throws Exception Adds a radio button field to this document at the given X and Y location in the PDF page where the last element rendering ended. The location can be absolute in PDF page or relative as an offset from the position where the last element rendering ended.- Parameters:
radioButton
- the radio button to be addedxLocation
- the X location of the element in the PDF page where the last element rendering endedrelativeXLocation
- the X location can be relative to the position where the last element rendering ended or absolute in PDF page where the last element rendering endedoffsetXFromStart
- specifies if the the relative X location is calculated from the start X coordinate of last rendered element or from the end X coordinateyLocation
- the Y location of the element in the PDF page where the last element rendering endedrelativeYLocation
- the Y location can be relative to the position where the last element rendering ended or absolute in PDF page where the last element rendering endedoffsetYFromEnd
- specifies if the the relative Y location is calculated from the end Y coordinate of last rendered element or from the start Y coordinate- Throws:
Exception
- an exception is thrown if the radio button cannot be added
-
setCheckedRadioButton
Call this method to check on the given radio button- Parameters:
radioButton
- the radio button to check on- Throws:
Exception
- an exception is thrown if the radio button cannot be checked
-