org.pdfbox.pdmodel.interactive.form
Class PDCheckbox
- COSObjectable
A class for handling the PDF field as a checkbox.
void | check()- Checks the radiobutton.
|
String | getOffValue()- This will get the value of the radio button.
|
String | getOnValue()- This will get the value of the radio button.
|
String | getValue()- getValue gets the fields value to as a string.
|
boolean | isChecked()- This will tell if this radio button is currently checked or not.
|
void | setValue(String newValue)-
|
void | unCheck()- Unchecks the radiobutton.
|
findFieldType, findKid, getAcroForm, getActions, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getKids, getParent, getPartialName, getValue, getWidget, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setFieldFlags, setKids, setNoExport, setParent, setPartialName, setReadonly, setRequired, setValue, toString |
PDCheckbox
public PDCheckbox(PDAcroForm theAcroForm,
COSDictionary field)theAcroForm - The acroForm for this field.field - The checkbox field dictionary
check
public void check()
Checks the radiobutton.
getOffValue
public String getOffValue()
This will get the value of the radio button.
- The value of the radio button.
getOnValue
public String getOnValue()
This will get the value of the radio button.
- The value of the radio button.
getValue
public String getValue()
throws IOException getValue gets the fields value to as a string.
- getValue in interface PDField
- The string value of this field.
isChecked
public boolean isChecked()
This will tell if this radio button is currently checked or not.
- true If the radio button is checked.
setValue
public void setValue(String newValue)
- setValue in interface PDField
unCheck
public void unCheck()
Unchecks the radiobutton.