public final class ListBoxField extends ChoiceField
Class represents ListBox field.
_FileSelect, _Password
_disableUpdateAppearance
Constructor and Description |
---|
ListBoxField()
Constructor for ListBoxField to be used in Generator.
|
ListBoxField(IDocument doc,
Rectangle rect)
Constructor for ListBox field.
|
ListBoxField(Page page,
Rectangle rect)
Creates new ListBox field.
|
Modifier and Type | Method and Description |
---|---|
int |
getTopIndex()
Gets index of the top visible element of the list.
|
void |
setSelected(int value)
Gets index of the selected item.
|
void |
setSelectedItems(int[] value)
Sets array of the selected items in the multiselect list.
|
void |
setTopIndex(int value)
Sets index of the top visible element of the list.
|
addOption, addOption, deleteOption, getCommitImmediately, getMultiSelect, getOptions, getSelected, getSelectedItems, getValue, setCommitImmediately, setMultiSelect, setValue
add, clear, contains, copyTo, copyTo, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getMappingName, getMaxFontSize, getPageIndex, getPartialName, getRect, getSyncRoot, getTabOrder, isFitIntoRectangle, isGroup, isReadOnly, isSharedField, isSynchronized, iterator, recalculate, remove, setAlternateName, setAnnotationIndex, setFitIntoRectangle, setMappingName, setMaxFontSize, setPartialName, setPosition, setRect, setSharedField, setTabOrder, size, updateAppearances
accept, getAnnotationActions, getAnnotationType, getDefaultAppearance, getExportable, getHighlighting, getOnActivated, getParent, getReadOnly, getRequired, setDefaultAppearance, setExportable, setHighlighting, setOnActivated, setReadOnly, setRequired
createAnnotation, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPdfActions, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ListBoxField()
Constructor for ListBoxField to be used in Generator.
public ListBoxField(Page page, Rectangle rect)
Creates new ListBox field.
page
- Page where list box will be placed.rect
- Rectangle where list box will be placed on the page.public int getTopIndex()
Gets index of the top visible element of the list.
public void setTopIndex(int value)
Sets index of the top visible element of the list.
value
- int valuepublic void setSelected(int value)
Gets index of the selected item. Items are numbered from 1.
setSelected
in class ChoiceField
value
- int valuepublic void setSelectedItems(int[] value)
Sets array of the selected items in the multiselect list. For single-select list returns array with single item.
setSelectedItems
in class ChoiceField
value
- array of int values