public final class ListBoxField extends ChoiceField
Class represents ListBox field.
_FileSelect, _Password| 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, setOptions, setValueadd, clear, contains, copyTo_Rename_Namesake, copyTo, copyTo, executeFieldJavaScript, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getMappingName, getMaxFontSize, getMinFontSize, getPageIndex, getPartialName, getRect, getSyncRoot, getTabOrder, isFitIntoRectangle, isGroup, isReadOnly, isSharedField, isSynchronized, iterator, recalculate, remove, setAlternateName, setAnnotationIndex, setFitIntoRectangle, setMappingName, setMaxFontSize, setMinFontSize, setPartialName, setPosition, setRect, setSharedField, setTabOrder, size, updateAppearancesaccept, getAnnotationActions, getAnnotationType, getCheckedStateName, getDefaultAppearance, getExportable, getHighlighting, getOnActivated, getParent, getReadOnly, getRequired, setDefaultAppearance, setExportable, setHighlighting, setOnActivated, setReadOnly, setRequiredchangeAfterResize, 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, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidthdeepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndexequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic 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 ChoiceFieldvalue - 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 ChoiceFieldvalue - array of int valuesCopyright © 2025 Aspose. All Rights Reserved.