|
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.ColorConverter
public class ColorConverter
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"
Field Summary | |
---|---|
static Class |
TEMPLATE
converter's return type |
Constructor Summary | |
---|---|
ColorConverter()
|
Method Summary | |
---|---|
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 |
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 ColorConverter()
Method Detail |
---|
public Object convert(Class type, Attribute attr, Localizer localizer)
java.awt.Color
runtime object
convert
in interface Converter
type
- Class
not usedattr
- Attribute
value needs to provide a String
java.awt.Color
public static Object conv(Class type, Attribute attr)
java.awt.Color
runtime object
type
- Class
not usedattr
- Attribute
value needs to provide a String
java.awt.Color
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 |