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
public class IntListParameterImpl extends ParameterImpl implements IntListParameter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]
labels
private int
listType
private java.lang.String
suffixLabelKey
private int[]
values
-
Fields 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
Constructors Constructor Description IntListParameterImpl(java.lang.String key, java.lang.String labelKey, int[] values, java.lang.String[] labels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getLabels()
List of labels displayed to userint
getListType()
Get List type.java.lang.String
getSuffixLabelKey()
int
getValue()
java.lang.Object
getValueObject()
Retrieve the parameter's value as an Object.int[]
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)
Set List type.void
setSuffixLabelKey(java.lang.String suffixLabelKey)
void
setSuffixLabelText(java.lang.String text)
void
setValue(int value)
-
Methods inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
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
addListener, addValidator, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setEnabled, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
-
-
-
-
Method Detail
-
getValues
public int[] getValues()
Description copied from interface:IntListParameter
List of values that can be stored to config- Specified by:
getValues
in interfaceIntListParameter
-
getLabels
public java.lang.String[] getLabels()
Description copied from interface:IntListParameter
List of labels displayed to user- Specified by:
getLabels
in interfaceIntListParameter
-
setLabels
public void setLabels(java.lang.String[] _labels)
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
public java.lang.Object 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:
IntListParameter.TYPE_DROPDOWN
,IntListParameter.TYPE_RADIO_COMPACT
,IntListParameter.TYPE_RADIO_LIST
-
getListType
public int getListType()
Description copied from interface:IntListParameter
Get List type.- Specified by:
getListType
in interfaceIntListParameter
- See Also:
IntListParameter.TYPE_DROPDOWN
,IntListParameter.TYPE_RADIO_COMPACT
,IntListParameter.TYPE_RADIO_LIST
-
getSuffixLabelKey
public java.lang.String getSuffixLabelKey()
- Specified by:
getSuffixLabelKey
in interfaceParameterWithSuffix
-
setSuffixLabelKey
public void setSuffixLabelKey(java.lang.String suffixLabelKey)
- Specified by:
setSuffixLabelKey
in interfaceParameterWithSuffix
-
setSuffixLabelText
public void setSuffixLabelText(java.lang.String text)
- Specified by:
setSuffixLabelText
in interfaceParameterWithSuffix
-
-