|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.pdmodel.interactive.form.PDField
org.apache.pdfbox.pdmodel.interactive.form.PDChoiceButton
org.apache.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.apache.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.apache.pdfbox.pdmodel.interactive.form.PDChoiceButton |
|---|
getOptions, setOptions |
| Methods inherited from class org.apache.pdfbox.pdmodel.interactive.form.PDField |
|---|
findFieldType, findKid, getAcroForm, getActions, getAlternateFieldName, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getKids, getParent, getPartialName, getWidget, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setAlternateFieldName, 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 PDFieldnewValue - the string valuepublic String getOffValue()
public String getOnValue()
public String getValue()
throws IOException
getValue in class PDFieldIOException - If there is an error getting the value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||