public class

RadioButtonWidget

extends Widget
java.lang.Object
   ↳ com.pdftron.pdf.Annot
     ↳ com.pdftron.pdf.annots.Widget
       ↳ com.pdftron.pdf.annots.RadioButtonWidget

Class Overview

An object representing a Radio Button used in a PDF Form.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.annots.Widget
From class com.pdftron.pdf.Annot
Public Constructors
RadioButtonWidget(Obj d)
Creates a Radio Button Widget annotation and initialize it using given Cos/SDF object.
RadioButtonWidget()
Create an empty Radio Button Widget annotation.
RadioButtonWidget(Annot annot)
Creates a Radio Button Widget annotation and initialize it using given annotation object.
Public Methods
void enableButton()
Enable the current radio button.
RadioButtonGroup getGroup()
Gets the group to which the current button is connected.
boolean isEnabled()
Determines whether this button is enabled.
[Expand]
Inherited Methods
From class com.pdftron.pdf.annots.Widget
From class com.pdftron.pdf.Annot
From class java.lang.Object

Public Constructors

public RadioButtonWidget (Obj d)

Creates a Radio Button Widget annotation and initialize it using given Cos/SDF object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
d the object to use to initialize the Radio Button Widget

public RadioButtonWidget ()

Create an empty Radio Button Widget annotation.

public RadioButtonWidget (Annot annot)

Creates a Radio Button Widget annotation and initialize it using given annotation object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
annot The annotation to use.

Public Methods

public void enableButton ()

Enable the current radio button. Note that this may disable other Radio Buttons in the same group.

public RadioButtonGroup getGroup ()

Gets the group to which the current button is connected.

Returns
  • The group containing this Radio Button.

public boolean isEnabled ()

Determines whether this button is enabled.

Returns
  • A boolean value indicating whether the Radio Button is enabled.