Class ConfigSectionInterfaceColorSWT.SkinColorValueProcessor
java.lang.Object
com.biglybt.ui.swt.views.configsections.ConfigSectionInterfaceColorSWT.SkinColorValueProcessor
- All Implemented Interfaces:
SwtParameterValueProcessor<ColorSwtParameter, int[]>
- Enclosing class:
ConfigSectionInterfaceColorSWT
private static class ConfigSectionInterfaceColorSWT.SkinColorValueProcessor
extends Object
implements SwtParameterValueProcessor<ColorSwtParameter, int[]>
Skin colors can be formatted as:
colorkey=paramkey:defaultcolor
paramkey is the override stored in ConfigurationManager
colorkey=paramkey:defaultcolor
paramkey is the override stored in ConfigurationManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]Return the default value.int[]Return the value for Parameter pbooleanWhether the Parameter is currently set to the default value.booleanReset key to default valuebooleansetValue(ColorSwtParameter p, int[] value) New value for Parameter p.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SwtParameterValueProcessor
dispose
-
Field Details
-
display
private final org.eclipse.swt.widgets.Display display
-
-
Constructor Details
-
SkinColorValueProcessor
public SkinColorValueProcessor(org.eclipse.swt.widgets.Display display)
-
-
Method Details
-
getValue
Description copied from interface:SwtParameterValueProcessorReturn the value for Parameter p- Specified by:
getValuein interfaceSwtParameterValueProcessor<ColorSwtParameter, int[]>
-
getDefaultValue
Description copied from interface:SwtParameterValueProcessorReturn 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:
getDefaultValuein interfaceSwtParameterValueProcessor<ColorSwtParameter, int[]>
-
isDefaultValue
Description copied from interface:SwtParameterValueProcessorWhether the Parameter is currently set to the default value. This may be used to enable ui related to reseting value- Specified by:
isDefaultValuein interfaceSwtParameterValueProcessor<ColorSwtParameter, int[]>
-
setValue
Description copied from interface:SwtParameterValueProcessorNew value for Parameter p. Handle things like storing value.- Specified by:
setValuein interfaceSwtParameterValueProcessor<ColorSwtParameter, int[]>- Returns:
- Whether the value changed from stored value. Returning true will trigger change listeners, and typically refresh UI controls
-
resetToDefault
Description copied from interface:SwtParameterValueProcessorReset key to default value- Specified by:
resetToDefaultin interfaceSwtParameterValueProcessor<ColorSwtParameter, int[]>- Returns:
- Whether the value was reset. Returning true will trigger change listeners, and typically refresh UI controls
-