|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.interactive.form.PDField
org.pdfbox.pdmodel.interactive.form.PDChoiceButton
org.pdfbox.pdmodel.interactive.form.PDCheckbox
A class for handling the PDF field as a checkbox.
Field Summary |
Fields inherited from class org.pdfbox.pdmodel.interactive.form.PDField |
FLAG_NO_EXPORT, FLAG_READ_ONLY, FLAG_REQUIRED |
Constructor Summary | |
PDCheckbox(PDAcroForm theAcroForm,
COSDictionary field)
|
Method Summary | |
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)
setValue sets the fields value to a given string. |
void |
unCheck()
Unchecks the radiobutton. |
Methods inherited from class org.pdfbox.pdmodel.interactive.form.PDChoiceButton |
getOptions, setOptions |
Methods inherited from class org.pdfbox.pdmodel.interactive.form.PDField |
findFieldType, findKid, getAcroForm, getActions, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getKids, getParent, getPartialName, getWidget, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setFieldFlags, setKids, setNoExport, setParent, setPartialName, setReadonly, setRequired, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PDCheckbox(PDAcroForm theAcroForm, COSDictionary field)
theAcroForm
- The acroForm for this field.field
- The checkbox field dictionaryPDField.PDField(PDAcroForm,COSDictionary)
Method Detail |
public boolean isChecked()
public void check()
public void unCheck()
public void setValue(String newValue)
setValue
in class PDField
newValue
- the string valuepublic String getOffValue()
public String getOnValue()
public String getValue() throws IOException
getValue
in class PDField
IOException
- If there is an error getting the value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |