|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.swixml.converters.RectangleConverter
public final class RectangleConverter
A Converter that turns a Strings in the form: width,height into Rectangle objects.
Rectangle
,
ConverterLibrary
Field Summary | |
---|---|
static Class |
TEMPLATE
converter's return type |
Constructor Summary | |
---|---|
RectangleConverter()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Class TEMPLATE
Constructor Detail |
---|
public RectangleConverter()
Method Detail |
---|
public Object convert(Class type, Attribute attr, Localizer localizer)
convert
in interface Converter
type
- Class
not usedattr
- Attribute
value fields needs provides convertable String
Object
- runtime type is Dimension
public Class convertsTo()
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
|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |