Package com.biglybt.pif.ui.config
Interface StringListParameter
- All Superinterfaces:
ConfigParameter
,Parameter
,ParameterWithSuffix
- All Known Implementing Classes:
StringListParameterImpl
An String config parameter that's limited to a list of values. Values are
usually shown to user in friendly text representations.
- Since:
- BiglyBT 1.0.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Dropdown style.static final int
Listbox style.Fields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
Method Summary
Modifier and TypeMethodDescriptionString[]
List of labels displayed to userint
getValue()
String[]
List of values that can be stored to configvoid
Set list of labels displayed to uservoid
setListType
(int listType) void
Methods inherited from interface com.biglybt.pif.config.ConfigParameter
addConfigParameterListener, removeConfigParameterListener
Methods inherited from interface com.biglybt.pif.ui.config.Parameter
addAndFireListener, addListener, addValidator, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, getValueObject, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
Methods inherited from interface com.biglybt.pif.ui.config.ParameterWithSuffix
getSuffixLabelKey, setSuffixLabelKey, setSuffixLabelText
-
Field Details
-
TYPE_DROPDOWN
static final int TYPE_DROPDOWNDropdown style. Default.- Since:
- BiglyBT 1.0.0.0
- See Also:
-
TYPE_LISTBOX
static final int TYPE_LISTBOXListbox style. Typically will display each option on a new row- Since:
- BiglyBT 1.9.0.1
- See Also:
-
-
Method Details
-
setValue
-
getValue
String getValue() -
getLabels
String[] getLabels()List of labels displayed to user- Since:
- BiglyBT 1.9.0.1
-
setLabels
Set list of labels displayed to user- Since:
- BiglyBT 1.0.0.0
-
getValues
String[] getValues()List of values that can be stored to config- Since:
- BiglyBT 1.9.0.1
-
setListType
void setListType(int listType) -
getListType
int getListType()
-