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, setValue
copyTo, 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, updateAppearances
accept, getActions, getDefaultAppearance, getExportable, getHighlighting, getOnActivated, getParent, getReadOnly, getRequired, setDefaultAppearance, setExportable, setHighlighting, setOnActivated, setReadOnly, setRequired
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, setWidth
deepClone, getMargin, isKeptWithNext, isKeptWithNext, setHorizontalAlignment, setMargin, setVerticalAlignment
public 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 ChoiceField
public 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 ChoiceField
Copyright © 2017 Aspose. All Rights Reserved.