java.lang.Object
org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
org.sejda.sambox.pdmodel.interactive.form.PDField
org.sejda.sambox.pdmodel.interactive.form.PDTerminalField
org.sejda.sambox.pdmodel.interactive.form.PDVariableText
org.sejda.sambox.pdmodel.interactive.form.PDChoice
org.sejda.sambox.pdmodel.interactive.form.PDListBox
- All Implemented Interfaces:
COSObjectable
A scrollable list box. Contains several text items, one or more of which shall be selected as the field value.
-
Field Summary
Fields inherited from class org.sejda.sambox.pdmodel.interactive.form.PDChoice
FLAG_COMBOFields inherited from class org.sejda.sambox.pdmodel.interactive.form.PDVariableText
QUADDING_CENTERED, QUADDING_LEFT, QUADDING_RIGHT -
Constructor Summary
ConstructorsConstructorDescriptionPDListBox(PDAcroForm acroForm) PDListBox(PDAcroForm acroForm, COSDictionary field, PDNonTerminalField parent) Constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) voidConstructs appearance streams and appearance dictionaries for all widget annotations.intThis will get the top index "TI" value.voidsetTopIndex(Integer topIndex) This will set top index "TI" value.Methods inherited from class org.sejda.sambox.pdmodel.interactive.form.PDChoice
getDefaultValue, getOptions, getOptionsDisplayValues, getOptionsExportValues, getSelectedOptionsIndex, getValue, getValueAsString, isCombo, isCommitOnSelChange, isDoNotSpellCheck, isMultiSelect, isSort, setCombo, setCommitOnSelChange, setDefaultValue, setDoNotSpellCheck, setMultiSelect, setOptions, setOptions, setSelectedOptionsIndex, setSort, setValue, setValueMethods inherited from class org.sejda.sambox.pdmodel.interactive.form.PDVariableText
getAppearanceFont, getAppearanceOverrideFont, getDefaultAppearance, getDefaultAppearanceString, getDefaultStyleString, getQ, getRichTextValue, getStringOrStream, setAppearanceOverrideFont, setDefaultAppearance, setDefaultStyleString, setQ, setRichTextValueMethods inherited from class org.sejda.sambox.pdmodel.interactive.form.PDTerminalField
addWidgetIfMissing, applyChange, getFieldFlags, getFieldType, getWidgets, isTerminal, removeWidget, setActions, setWidgetsMethods inherited from class org.sejda.sambox.pdmodel.interactive.form.PDField
findKid, fromDictionary, getAcroForm, getActions, getAlternateFieldName, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadonly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadonly, setRequired, toStringMethods inherited from class org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
equals, getCOSObject, hashCode
-
Constructor Details
-
PDListBox
- Parameters:
acroForm- The acroform.- See Also:
-
PDListBox
PDListBox(PDAcroForm acroForm, COSDictionary field, PDNonTerminalField parent) Constructor.- Parameters:
acroForm- The form that this field is part of.field- the PDF object to represent as a field.parent- the parent node of the node
-
-
Method Details
-
getTopIndex
public int getTopIndex()This will get the top index "TI" value.- Returns:
- the top index, default value 0.
-
setTopIndex
This will set top index "TI" value.- Parameters:
topIndex- the value for the top index, null will remove the value.
-
constructAppearances
Description copied from class:PDTerminalFieldConstructs appearance streams and appearance dictionaries for all widget annotations. Subclasses should not call this method directly but viaPDTerminalField.applyChange().- Specified by:
constructAppearancesin classPDChoice- Throws:
IOException- if the appearance couldn't be generated
-