org.pdfbox.pdmodel.interactive.form

Class PDPushButton

Implemented Interfaces:
COSObjectable

public class PDPushButton
extends PDField

A class for handling the PDF field as a PDPushButton.
Version:
$Revision: 1.3 $
Author:
sug

Field Summary

Fields inherited from class org.pdfbox.pdmodel.interactive.form.PDField

FLAG_NO_EXPORT, FLAG_READ_ONLY, FLAG_REQUIRED

Constructor Summary

PDPushButton(PDAcroForm theAcroForm, COSDictionary field)

Method Summary

String
getValue()
getValue gets the fields value to as a string.
void
setValue(String value)

Methods inherited from class org.pdfbox.pdmodel.interactive.form.PDField

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

Constructor Details

PDPushButton

public PDPushButton(PDAcroForm theAcroForm,
                    COSDictionary field)
Parameters:
theAcroForm - The acroForm for this field.
field - The field for this push button.
See Also:
org.pdfbox.pdmodel.field.PDField.COSField(org.pdfbox.cos.COSDictionary)

Method Details

getValue

public String getValue()
            throws IOException
getValue gets the fields value to as a string.
Overrides:
getValue in interface PDField
Returns:
The string value of this field.

setValue

public void setValue(String value)
            throws IOException
Overrides:
setValue in interface PDField
Parameters:
value - The new value for the field.
See Also:
as.interactive.pdf.form.cos.COSField.setValue(java.lang.String)