Package com.biglybt.pif.ui.config
Interface StringListParameter
-
- All Superinterfaces:
ConfigParameter
,Parameter
,ParameterWithSuffix
- All Known Implementing Classes:
StringListParameterImpl
public interface StringListParameter extends Parameter, ParameterWithSuffix
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:
IntListParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_DROPDOWN
Dropdown style.static int
TYPE_LISTBOX
Listbox style.-
Fields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String[]
getLabels()
List of labels displayed to userint
getListType()
java.lang.String
getValue()
java.lang.String[]
getValues()
List of values that can be stored to configvoid
setLabels(java.lang.String[] labels)
Set list of labels displayed to uservoid
setListType(int listType)
void
setValue(java.lang.String value)
-
Methods inherited from interface com.biglybt.pif.config.ConfigParameter
addConfigParameterListener, removeConfigParameterListener
-
Methods inherited from interface com.biglybt.pif.ui.config.Parameter
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 Detail
-
TYPE_DROPDOWN
static final int TYPE_DROPDOWN
Dropdown style. Default.- Since:
- BiglyBT 1.0.0.0
- See Also:
- Constant Field Values
-
TYPE_LISTBOX
static final int TYPE_LISTBOX
Listbox style. Typically will display each option on a new row- Since:
- BiglyBT 1.9.0.1
- See Also:
- Constant Field Values
-
-
Method Detail
-
setValue
void setValue(java.lang.String value)
-
getValue
java.lang.String getValue()
-
getLabels
java.lang.String[] getLabels()
List of labels displayed to user- Since:
- BiglyBT 1.9.0.1
-
setLabels
void setLabels(java.lang.String[] labels)
Set list of labels displayed to user- Since:
- BiglyBT 1.0.0.0
-
getValues
java.lang.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()
-
-