public class PDChoiceField extends PDVariableText
| Modifier and Type | Field and Description | 
|---|---|
| static int | FLAG_COMBOA Ff flag. | 
| static int | FLAG_EDITA Ff flag. | 
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_RIGHTFLAG_NO_EXPORT, FLAG_READ_ONLY, FLAG_REQUIRED| Constructor and Description | 
|---|
| PDChoiceField(PDAcroForm theAcroForm,
             COSDictionary field) | 
| Modifier and Type | Method and Description | 
|---|---|
| COSArray | getOptions()This will get the option values "Opt". | 
| COSArray | getSelectedOptions()This will get the indices of the selected options "I". | 
| int | getTopIndex()This will get the top index "TI" value. | 
| void | setValue(String optionValue)setValue sets the fields value to a given string. | 
doNotScroll, doNotSpellCheck, getDefaultAppearance, getQ, getValue, isFileSelect, isMultiline, isPassword, isRichText, setComb, setDoNotScroll, setDoNotSpellCheck, setFileSelect, setMultiline, setPassword, setQ, setRichText, shouldCombfindFieldType, findKid, getAcroForm, getActions, getAlternateFieldName, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getKids, getParent, getPartialName, getWidget, getWidgets, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setAlternateFieldName, setFieldFlags, setFieldType, setKids, setNoExport, setParent, setPartialName, setReadonly, setRequired, toStringpublic static final int FLAG_COMBO
public static final int FLAG_EDIT
public PDChoiceField(PDAcroForm theAcroForm, COSDictionary field)
theAcroForm - The acroForm for this field.field - The field for this choice field.PDField.PDField(PDAcroForm,COSDictionary)public void setValue(String optionValue) throws IOException
PDFieldsetValue in class PDVariableTextoptionValue - The new value for this text field.IOException - If there is an error calculating the appearance stream or the value in not one of the existing
             options.PDField.setValue(java.lang.String)public COSArray getSelectedOptions()
public int getTopIndex()
public COSArray getOptions()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.