Class IntListParameterImpl
java.lang.Object
com.biglybt.pifimpl.local.ui.config.ParameterImpl
com.biglybt.pifimpl.local.ui.config.IntListParameterImpl
- All Implemented Interfaces:
ParameterListener
,ConfigParameter
,EnablerParameter
,IntListParameter
,Parameter
,ParameterWithSuffix
-
Field Summary
FieldsFields inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
configKey
Fields inherited from interface com.biglybt.pif.ui.config.IntListParameter
TYPE_DROPDOWN, TYPE_RADIO_COMPACT, TYPE_RADIO_LIST
Fields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
Constructor Summary
ConstructorsConstructorDescriptionIntListParameterImpl
(String key, String labelKey, int[] values, String[] labels) -
Method Summary
Modifier and TypeMethodDescriptionString[]
List of labels displayed to userint
Get List type.int
getValue()
Retrieve the parameter's value as an Object.int[]
List of values that can be stored to configvoid
Set list of labels displayed to uservoid
setListType
(int listType) Set List type.void
setSuffixLabelKey
(String suffixLabelKey) void
setSuffixLabelText
(String text) void
setValue
(int value) Methods inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
addAndFireListener, addConfigParameterListener, addDisabledOnSelection, addDisabledOnSelection, addEnabledOnSelection, addEnabledOnSelection, addImplListener, addListener, addValidator, destroy, fireParameterChanged, getConfigKeyName, getDisabledOnSelectionParameters, getEnabledOnSelectionParameters, getGenerateIntermediateEvents, getGroup, getIndent, getKey, getLabelKey, getLabelText, getMinimumRequiredUserMode, getReferenceID, hasBeenSet, isEnabled, isForUIType, isIndentFancy, isVisible, parameterChanged, refreshControl, removeConfigParameterListener, removeImplListener, removeListener, resetToDefault, search, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setGroup, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setReferenceID, setVisible, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
-
Field Details
-
values
private int[] values -
labels
-
listType
private int listType -
suffixLabelKey
-
-
Constructor Details
-
IntListParameterImpl
-
-
Method Details
-
getValues
public int[] getValues()Description copied from interface:IntListParameter
List of values that can be stored to config- Specified by:
getValues
in interfaceIntListParameter
-
getLabels
Description copied from interface:IntListParameter
List of labels displayed to user- Specified by:
getLabels
in interfaceIntListParameter
-
setLabels
Description copied from interface:IntListParameter
Set list of labels displayed to user- Specified by:
setLabels
in interfaceIntListParameter
-
getValue
public int getValue()- Specified by:
getValue
in interfaceIntListParameter
-
getValueObject
Description copied from interface:Parameter
Retrieve the parameter's value as an Object. Subclasses will usually have a getValue() that will return a specific type.- Specified by:
getValueObject
in interfaceParameter
- Overrides:
getValueObject
in classParameterImpl
-
setValue
public void setValue(int value) - Specified by:
setValue
in interfaceIntListParameter
-
setListType
public void setListType(int listType) Description copied from interface:IntListParameter
Set List type.- Specified by:
setListType
in interfaceIntListParameter
- See Also:
-
getListType
public int getListType()Description copied from interface:IntListParameter
Get List type.- Specified by:
getListType
in interfaceIntListParameter
- See Also:
-
getSuffixLabelKey
- Specified by:
getSuffixLabelKey
in interfaceParameterWithSuffix
-
setSuffixLabelKey
- Specified by:
setSuffixLabelKey
in interfaceParameterWithSuffix
-
setSuffixLabelText
- Specified by:
setSuffixLabelText
in interfaceParameterWithSuffix
-