|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.okapi.common.uidescription.AbstractPart
net.sf.okapi.common.uidescription.ListSelectionPart
public class ListSelectionPart
UI part descriptor for a string selection. This UI part supports the following types: String and int.
Use setListType(int) to specify the type of list the UI should use. By default
a simple list box will be used.
| Field Summary | |
|---|---|
static int |
LISTTYPE_DROPDOWN
|
static int |
LISTTYPE_SIMPLE
|
| Fields inherited from class net.sf.okapi.common.uidescription.AbstractPart |
|---|
container, enabledOnSelection, labelFlushed, masterPart, paramDescriptor, vertical, withLabel |
| Constructor Summary | |
|---|---|
ListSelectionPart(ParameterDescriptor paramDescriptor,
java.lang.String[] choicesValues)
Creates a new ListSelectionPart object with a given parameter descriptor. |
|
| Method Summary | |
|---|---|
protected void |
checkType()
Checks the types supported by this UI part. |
java.lang.String[] |
getChoicesLabels()
Gets the list of the localizable labels to use with the selectable values. |
java.lang.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(java.lang.String[] choicesLabels)
Sets the list of the localizable labels to use with the selectable values. |
void |
setChoicesValues(java.lang.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. |
| Methods inherited from class net.sf.okapi.common.uidescription.AbstractPart |
|---|
getContainer, getDisplayName, getMasterPart, getName, getParent, getReadMethod, getShortDescription, getType, getWriteMethod, isEnabledOnSelection, isLabelFlushed, isVertical, isWithLabel, setContainer, setDisplayName, setLabelFlushed, setMasterPart, setShortDescription, setVertical, setWithLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LISTTYPE_SIMPLE
public static final int LISTTYPE_DROPDOWN
| Constructor Detail |
|---|
public ListSelectionPart(ParameterDescriptor paramDescriptor,
java.lang.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.| Method Detail |
|---|
protected void checkType()
AbstractPart
checkType in class AbstractPartpublic java.lang.String[] getChoicesValues()
public void setChoicesValues(java.lang.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 list
listType - the new type of list this UI part should use.public java.lang.String[] getChoicesLabels()
public void setChoicesLabels(java.lang.String[] choicesLabels)
choicesLabels - the list of the localizable labels to use with the selectable values.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||