org.swixml.converters
Class InsetsConverter
java.lang.Object
org.swixml.converters.InsetsConverter
- Converter
public class InsetsConverter
extends java.lang.Object
The
InsetsConverter
class defines a converter that creates Insets objects based on a provided String.
Examples for Valid XML attribute notations:
- border="MatteBorder(4,4,4,4,red)"
- insets="2,2,2,2"
static Class | TEMPLATE - converter's return type
|
Object | convert(Class type, Attribute attr, Localizer localizer) - Converts a Strings into an Insets 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 Strings into an Insets object
- convert in interface Converter
type
- Class
not usedattr
- Attribute
value needs to provide String containing comma sep. integers
Object
runtime type is subclass of Insets
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.