org.apache.commons.jelly.tags.swing.converters
Class ColorConverter

java.lang.Object
  extended byorg.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: 155420 $
Author:
Paul Libbrecht

Constructor Summary
ColorConverter()
           
 
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
 

Constructor Detail

ColorConverter

public ColorConverter()
Method Detail

convert

public java.lang.Object convert(java.lang.Class type,
                                java.lang.Object value)
Specified by:
convert in interface org.apache.commons.beanutils.Converter


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.