org.apache.pdfbox.pdmodel.interactive.form
Class PDChoiceField
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.form.PDField
org.apache.pdfbox.pdmodel.interactive.form.PDVariableText
org.apache.pdfbox.pdmodel.interactive.form.PDChoiceField
- All Implemented Interfaces:
- COSObjectable
public class PDChoiceField
- extends PDVariableText
A class for handling the PDF field as a choicefield.
- Version:
- $Revision: 1.7 $
- Author:
- sug
Method Summary |
void |
setValue(String optionValue)
setValue sets the fields value to a given string. |
Methods inherited from class org.apache.pdfbox.pdmodel.interactive.form.PDVariableText |
doNotScroll, doNotSpellCheck, getDefaultAppearance, getQ, getValue, isFileSelect, isMultiline, isPassword, isRichText, setComb, setDoNotScroll, setDoNotSpellCheck, setFileSelect, setMultiline, setPassword, setQ, setRichText, shouldComb |
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 |
PDChoiceField
public PDChoiceField(PDAcroForm theAcroForm,
COSDictionary field)
- Parameters:
theAcroForm
- The acroForm for this field.field
- The field for this choice field.- See Also:
PDField.PDField(PDAcroForm,COSDictionary)
setValue
public void setValue(String optionValue)
throws IOException
- Description copied from class:
PDField
- setValue sets the fields value to a given string.
- Overrides:
setValue
in class PDVariableText
- Parameters:
optionValue
- The new value for this text field.
- Throws:
IOException
- If there is an error calculating the appearance stream or the value in not one
of the existing options.- See Also:
PDField.setValue(java.lang.String)
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.