Interface IntListParameter
- All Superinterfaces:
ConfigParameter, Parameter, ParameterWithSuffix
- All Known Implementing Classes:
IntListParameterImpl
An integer 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 intDropdown style.static final intCompact style of radio buttons.static final intList style of radio buttons.Fields inherited from interface Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE -
Method Summary
Modifier and TypeMethodDescriptionString[]List of labels displayed to userintGet List type.intgetValue()int[]List of values that can be stored to configvoidSet list of labels displayed to uservoidsetListType(int listType) Set List type.voidsetValue(int value) Methods inherited from interface ConfigParameter
addConfigParameterListener, removeConfigParameterListenerMethods inherited from interface Parameter
addAndFireListener, addListener, addValidator, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, getValueObject, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisibleMethods inherited from interface ParameterWithSuffix
getSuffixLabelKey, setSuffixLabelKey, setSuffixLabelText
-
Field Details
-
TYPE_DROPDOWN
static final int TYPE_DROPDOWNDropdown style. Default.- Since:
- BiglyBT 1.0.0.0
- See Also:
-
TYPE_RADIO_COMPACT
static final int TYPE_RADIO_COMPACTCompact style of radio buttons. Typically will display all options in one row- Since:
- BiglyBT 1.9.0.1
- See Also:
-
TYPE_RADIO_LIST
static final int TYPE_RADIO_LISTList style of radio buttons. Typically will display each option on a new row- Since:
- BiglyBT 1.9.0.1
- See Also:
-
-
Method Details
-
setValue
void setValue(int value) -
getValue
int getValue() -
getLabels
-
setLabels
-
getValues
int[] getValues()List of values that can be stored to config- Since:
- BiglyBT 1.9.0.1
-
setListType
void setListType(int listType) Set List type.- Since:
- BiglyBT 1.9.0.1
- See Also:
-
getListType
int getListType()Get List type.- Since:
- BiglyBT 1.9.0.1
- See Also:
-