| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.jfree.report.util.beans.GenericValueConverterInteger attributes to and from their
String representation.
Constructor Summary | |
| |
Method Summary | |
String |
|
Object |
|
public GenericValueConverter(PropertyDescriptor pd) throws IntrospectionException
Creates a new value converter.
public String toAttributeValue(Object o) throws BeanException
Converts the attribute to a string.
- Specified by:
- toAttributeValue in interface ValueConverter
- Parameters:
o- the attribute (Integerexpected).
- Returns:
- A string representing the
Integervalue.
- Throws:
BeanException- if there was an error during the conversion.
public Object toPropertyValue(String s)
Converts a string to aInteger.
- Specified by:
- toPropertyValue in interface ValueConverter
- Parameters:
s- the string.
- Returns:
- a
Integer.