public class ListSelectionPart extends AbstractPart
Use setListType(int) to specify the type of list the UI should use. By default
a simple list box will be used.
| Modifier and Type | Field and Description |
|---|---|
static int |
LISTTYPE_DROPDOWN |
static int |
LISTTYPE_SIMPLE |
container, enabledOnSelection, labelFlushed, labelNextToInput, masterPart, paramDescriptor, vertical, withLabel| Constructor and Description |
|---|
ListSelectionPart(ParameterDescriptor paramDescriptor,
String[] choicesValues)
Creates a new ListSelectionPart object with a given parameter descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkType()
Checks the types supported by this UI part.
|
String[] |
getChoicesLabels()
Gets the list of the localizable labels to use with the selectable values.
|
String[] |
getChoicesValues()
Gets the list of items that can be selected.
|
int |
getListType()
Gets the type of list this UI part should use.
|
void |
setChoicesLabels(String[] choicesLabels)
Sets the list of the localizable labels to use with the selectable values.
|
void |
setChoicesValues(String[] choicesValues)
Sets the list of items that can be selected.
|
void |
setListType(int listType)
Sets the type of list this UI part should use.
|
getContainer, getDisplayName, getMasterPart, getName, getParent, getReadMethod, getShortDescription, getType, getWriteMethod, isEnabledOnSelection, isLabelFlushed, isLabelNextToInput, isVertical, isWithLabel, setContainer, setDisplayName, setLabelFlushed, setLabelNextToInput, setMasterPart, setShortDescription, setVertical, setWithLabelpublic static final int LISTTYPE_SIMPLE
public static final int LISTTYPE_DROPDOWN
public ListSelectionPart(ParameterDescriptor paramDescriptor, String[] choicesValues)
paramDescriptor - the parameter descriptor for this UI part.choicesValues - the list of the items that can be selected. When the type of the parameter
is an int, the list of values must be defined.protected void checkType()
AbstractPartcheckType in class AbstractPartpublic String[] getChoicesValues()
public void setChoicesValues(String[] choicesValues)
choicesValues - the new list of items that can be selected.public int getListType()
public void setListType(int listType)
The possible values are:
LISTTYPE_SIMPLE for a a simple listLISTTYPE_DROPDOWN for a drop-down listlistType - the new type of list this UI part should use.public String[] getChoicesLabels()
public void setChoicesLabels(String[] choicesLabels)
choicesLabels - the list of the localizable labels to use with the selectable values.Copyright © 2021. All rights reserved.