org.swixml.converters
Class ColorConverter
java.lang.Object
org.swixml.converters.ColorConverter
- Converter
public class ColorConverter
extends java.lang.Object
The ColorConverter class defines a Converter that turns the Strings into a Color object
Examples for Valid XML attribute notations:
The following example show valid xml attributes to create Color objects:
- background="3399CC"
- background="red"
- foreground="991144"
static Class | TEMPLATE - converter's return type
|
static Object | conv(Class type, Attribute attr) - Returns a
java.awt.Color runtime object
|
Object | convert(Class type, Attribute attr, Localizer localizer) - Returns a
java.awt.Color runtime 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
conv
public static Object conv(Class type,
Attribute attr)
Returns a java.awt.Color
runtime object
type
- Class
not usedattr
- Attribute
value needs to provide a String
- runtime type is subclass of
java.awt.Color
convert
public Object convert(Class type,
Attribute attr,
Localizer localizer)
Returns a java.awt.Color
runtime object
- convert in interface Converter
type
- Class
not usedattr
- Attribute
value needs to provide a String
- runtime type is subclass of
java.awt.Color
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.