|
||||||||||
| 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
public class 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. |
java.lang.String |
getOffValue()
This will get the value of the radio button. |
java.lang.String |
getOnValue()
This will get the value of the radio button. |
java.lang.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(java.lang.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(java.lang.String newValue)
setValue in class PDFieldnewValue - the string valuepublic java.lang.String getOffValue()
public java.lang.String getOnValue()
public java.lang.String getValue()
throws java.io.IOException
getValue in class PDFieldjava.io.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 | |||||||||