Class PDCheckbox

All Implemented Interfaces:
COSObjectable

public class PDCheckbox extends PDChoiceButton
A class for handling the PDF field as a checkbox.
Version:
$Revision: 1.11 $
Author:
Ben Litchfield, sug
  • Constructor Details

  • Method Details

    • isChecked

      public boolean isChecked()
      This will tell if this radio button is currently checked or not.
      Returns:
      true If the radio button is checked.
    • check

      public void check()
      Checks the radiobutton.
    • unCheck

      public void unCheck()
      Unchecks the radiobutton.
    • setValue

      public void setValue(String newValue)
      setValue sets the fields value to a given string.
      Specified by:
      setValue in class PDField
      Parameters:
      newValue - the string value
    • getOffValue

      public String getOffValue()
      This will get the value of the radio button.
      Returns:
      The value of the radio button.
    • getOnValue

      public String getOnValue()
      This will get the value of the radio button.
      Returns:
      The value of the radio button.
    • getValue

      public String getValue() throws IOException
      getValue gets the fields value to as a string.
      Specified by:
      getValue in class PDField
      Returns:
      The string value of this field.
      Throws:
      IOException - If there is an error getting the value.