org.swixml.converters
Class RectangleConverter
java.lang.Object
org.swixml.converters.RectangleConverter
- Converter
public final class RectangleConverter
extends java.lang.Object
A Converter that turns a Strings in the form: width,height into Rectangle objects.
Examples for Valid XML attribute notations:
static Class | TEMPLATE - converter's return type
|
Object | convert(Class type, Attribute attr, Localizer localizer) - Converts a String into a Rectangle object
|
Class | convertsTo() - A
Converters conversTo method informs about the Class type the converter
is returning when its convert method is called
|
TEMPLATE
public static final Class TEMPLATE
converter's return type
convert
public Object convert(Class type,
Attribute attr,
Localizer localizer)
Converts a String into a Rectangle object
- convert in interface Converter
type
- Class
not usedattr
- Attribute
value fields needs provides convertable String
Object
- runtime type is Dimension
convertsTo
public Class convertsTo()
A Converters
conversTo method informs about the Class type the converter
is returning when its convert
method is called
- convertsTo in interface Converter
Class
- the Class the converter is returning when its convert method is called
Copyright B) 2002 - 2005 - Wolf Paulus - CarlsbadCubes.com . All rights reserved.