org.pdfbox.pdmodel.interactive.form

Class PDChoiceField

Implemented Interfaces:
COSObjectable

public class PDChoiceField
extends PDVariableText

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

Field Summary

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

FLAG_COMB, FLAG_DO_NOT_SCROLL, FLAG_DO_NOT_SPELL_CHECK, FLAG_FILE_SELECT, FLAG_MULTILINE, FLAG_PASSWORD, FLAG_RICH_TEXT, QUADDING_CENTERED, QUADDING_LEFT, QUADDING_RIGHT

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

FLAG_NO_EXPORT, FLAG_READ_ONLY, FLAG_REQUIRED

Constructor Summary

PDChoiceField(PDAcroForm theAcroForm, COSDictionary field)

Method Summary

void
setValue(String optionValue)

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

doNotScroll, doNotSpellCheck, getDefaultAppearance, getQ, getValue, isFileSelect, isMultiline, isPassword, isRichText, setComb, setDoNotScroll, setDoNotSpellCheck, setFileSelect, setMultiline, setPassword, setQ, setRichText, setValue, shouldComb

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

PDChoiceField

public PDChoiceField(PDAcroForm theAcroForm,
                     COSDictionary field)
Parameters:
theAcroForm - The acroForm for this field.
field - The field for this choice field.

Method Details

setValue

public void setValue(String optionValue)
            throws IOException
Overrides:
setValue in interface PDVariableText
Parameters:
optionValue - The new value for this text field.
See Also:
org.pdfbox.pdmodel.interactive.form.PDField.setValue(java.lang.String)