public class ColorValueConverter extends Object implements ValueConverter
Constructor and Description |
---|
ColorValueConverter()
Creates a new value converter.
|
Modifier and Type | Method and Description |
---|---|
static String |
colorToString(Color c) |
String |
toAttributeValue(Object o)
Converts the attribute to a string.
|
Object |
toPropertyValue(String value)
Converts a string to a
Integer . |
public String toAttributeValue(Object o) throws BeanException
toAttributeValue
in interface ValueConverter
o
- the attribute (Integer
expected).Integer
value.BeanException
- if there was an error during the conversion.public Object toPropertyValue(String value) throws BeanException
Integer
.toPropertyValue
in interface ValueConverter
value
- the string.Integer
.BeanException
- if there was an error during the conversion.