Package net.infonode.properties.types
Class ColorProperty
- java.lang.Object
-
- net.infonode.properties.util.AbstractProperty
-
- net.infonode.properties.util.ValueHandlerProperty
-
- net.infonode.properties.types.ColorProperty
-
- All Implemented Interfaces:
Property
public class ColorProperty extends ValueHandlerProperty
A property of typeColor.
-
-
Constructor Summary
Constructors Constructor Description ColorProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Colorget(java.lang.Object valueContainer)Returns the color value of this property in a value container.voidset(java.lang.Object valueContainer, java.awt.Color color)Sets the color value of this property in a value container.-
Methods inherited from class net.infonode.properties.util.ValueHandlerProperty
getValue, removeValue, setValue, valueIsRemovable, valueIsSet
-
Methods inherited from class net.infonode.properties.util.AbstractProperty
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString
-
-
-
-
Constructor Detail
-
ColorProperty
public ColorProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler)
Constructor.- Parameters:
group- the property groupname- the property namedescription- the property descriptionvalueHandler- handles values for this property
-
-
Method Detail
-
get
public java.awt.Color get(java.lang.Object valueContainer)
Returns the color value of this property in a value container.- Parameters:
valueContainer- the value container- Returns:
- the color value of this property
-
set
public void set(java.lang.Object valueContainer, java.awt.Color color)Sets the color value of this property in a value container.- Parameters:
valueContainer- the value containercolor- the color value
-
-