org.apache.commons.jelly.tags.swing.converters
Class ColorConverter
java.lang.Object
org.apache.commons.jelly.tags.swing.converters.ColorConverter
- All Implemented Interfaces:
- org.apache.commons.beanutils.Converter
- public class ColorConverter
- extends java.lang.Object
- implements org.apache.commons.beanutils.Converter
A Converter that turns Strings in the form "#uuuuuu" (as RGB triple)
or the name of one of the Color
-constants of the class
Color
or SystemColor
.
TODO: provide support of ARGB colors as well.
Future: provide support for color-spaces, indexed colors...
(in particular theme-based colors)
- Version:
- $Revision: $
- Author:
- Paul Libbrecht
Field Summary |
private static java.lang.String |
usageText
|
Method Summary |
java.lang.Object |
convert(java.lang.Class type,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
usageText
private static java.lang.String usageText
ColorConverter
public ColorConverter()
convert
public java.lang.Object convert(java.lang.Class type,
java.lang.Object value)
- Specified by:
convert
in interface org.apache.commons.beanutils.Converter