|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.util.beans.ColorValueConverter
public class ColorValueConverter
A class that handles the conversion of Integer attributes to and from their String representation.
| Constructor Summary | |
|---|---|
ColorValueConverter()
Creates a new value converter. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorValueConverter()
| Method Detail |
|---|
public String toAttributeValue(Object o)
throws BeanException
toAttributeValue in interface ValueConvertero - 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 ValueConvertervalue - the string.
Integer.
BeanException - if there was an error during the conversion.public static String colorToString(Color c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||