Package com.biglybt.ui.swt.config
Class ColorSwtParameter.ColorValueProcessor
java.lang.Object
com.biglybt.ui.swt.config.ColorSwtParameter.ColorValueProcessor
- All Implemented Interfaces:
ParameterListener
,SwtParameterValueProcessor<ColorSwtParameter,
int[]>
- Enclosing class:
ColorSwtParameter
private static class ColorSwtParameter.ColorValueProcessor
extends Object
implements SwtParameterValueProcessor<ColorSwtParameter,int[]>, ParameterListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]
Return the default value.int[]
Return the value for Parameter pboolean
Whether the Parameter is currently set to the default value.void
parameterChanged
(String parameterName) Called, when a parameter has changed.boolean
Reset key to default valueboolean
setValue
(ColorSwtParameter p, int[] value) New value for Parameter p.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.ui.swt.config.SwtParameterValueProcessor
dispose
-
Field Details
-
owner
-
changing
private boolean changing
-
-
Constructor Details
-
ColorValueProcessor
-
-
Method Details
-
parameterChanged
Description copied from interface:ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.- Specified by:
parameterChanged
in interfaceParameterListener
- Parameters:
parameterName
- the name of the parameter that has changed
-
getValue
Description copied from interface:SwtParameterValueProcessor
Return the value for Parameter p- Specified by:
getValue
in interfaceSwtParameterValueProcessor<ColorSwtParameter,
int[]>
-
setValue
Description copied from interface:SwtParameterValueProcessor
New value for Parameter p. Handle things like storing value.- Specified by:
setValue
in interfaceSwtParameterValueProcessor<ColorSwtParameter,
int[]> - Returns:
- Whether the value changed from stored value. Returning true will trigger change listeners, and typically refresh UI controls
-
isDefaultValue
Description copied from interface:SwtParameterValueProcessor
Whether the Parameter is currently set to the default value. This may be used to enable ui related to reseting value- Specified by:
isDefaultValue
in interfaceSwtParameterValueProcessor<ColorSwtParameter,
int[]>
-
getDefaultValue
Description copied from interface:SwtParameterValueProcessor
Return the default value.
This may be used to enable ui related to reseting value, or to show the default value to the user- Specified by:
getDefaultValue
in interfaceSwtParameterValueProcessor<ColorSwtParameter,
int[]>
-
resetToDefault
Description copied from interface:SwtParameterValueProcessor
Reset key to default value- Specified by:
resetToDefault
in interfaceSwtParameterValueProcessor<ColorSwtParameter,
int[]> - Returns:
- Whether the value was reset. Returning true will trigger change listeners, and typically refresh UI controls
-