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(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)
Gets 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, setValuecopyTo, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getMappingName, getPageIndex, getPartialName, getRect, getSyncRoot, isGroup, isSharedField, isSharedField, isSynchronized, iterator, recalculate, setAlternateName, setAnnotationIndex, setFieldImage, setFitIntoRectangle, setMappingName, setPartialName, setPosition, setRect, size, updateAppearancesaccept, getActions, getDefaultAppearance, getExportable, getHighlighting, getOnActivated, getParent, getReadOnly, getRequired, setDefaultAppearance, setExportable, setHighlighting, setOnActivated, setReadOnly, setRequiredcreateAnnotation, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getStates, getWidth, initialize, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setWidthdeepClone, getMargin, isKeptWithNext, isKeptWithNext, setHorizontalAlignment, setMargin, setVerticalAlignmentpublic ListBoxField()
Constructor for ListBoxField to be used in Generator.
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.
public void setSelected(int value)
Gets index of the selected item. Items are numbered from 1.
setSelected in class ChoiceFieldpublic void setSelectedItems(int[] value)
Gets array of the selected items in the multiselect list. For single-select list returns array with single item.
setSelectedItems in class ChoiceFieldCopyright © 2018 Aspose. All Rights Reserved.