COSObjectablepublic class PDChoiceField extends PDVariableText
| Modifier and Type | Field | Description |
|---|---|---|
static int |
FLAG_COMBO |
A Ff flag.
|
static int |
FLAG_EDIT |
A Ff flag.
|
FLAG_NO_EXPORT, FLAG_READ_ONLY, FLAG_REQUIREDFLAG_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| Constructor | Description |
|---|---|
PDChoiceField(PDAcroForm theAcroForm,
COSDictionary field) |
| Modifier and Type | Method | 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(java.lang.String optionValue) |
setValue sets the fields value to a given string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindFieldType, 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, toStringdoNotScroll, doNotSpellCheck, getDefaultAppearance, getQ, getValue, isFileSelect, isMultiline, isPassword, isRichText, setComb, setDoNotScroll, setDoNotSpellCheck, setFileSelect, setMultiline, setPassword, setQ, setRichText, shouldCombpublic 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(PDAcroForm,COSDictionary)public void setValue(java.lang.String optionValue)
throws java.io.IOException
PDFieldsetValue in class PDVariableTextoptionValue - The new value for this text field.java.io.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()