ca.uhn.cache.internal.spring
Class CustomEnumEditor
java.lang.Object
java.beans.PropertyEditorSupport
ca.uhn.cache.internal.spring.CustomEnumEditor
- All Implemented Interfaces:
- java.beans.PropertyEditor
- public class CustomEnumEditor
- extends java.beans.PropertyEditorSupport
PropertyEditor for org.apache.commons.lang.enum.Enum.
- Version:
- $Revision: 1.1 $ updated on $Date: 2005/01/24 22:54:34 $ by $Author: bryan_tripp $
- Author:
- Alexei Guevara, Tadatoshi Takahashi (Ken)
Constructor Summary |
CustomEnumEditor(java.lang.Class theEnumClazz)
Create a new CustomEnumEditor instance, using the given Enum class. |
CustomEnumEditor(java.lang.String theClassName)
Create a new CustomEnumEditor instance, using the given Enum class name. |
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomEnumEditor
public CustomEnumEditor(java.lang.Class theEnumClazz)
- Create a new CustomEnumEditor instance, using the given Enum class.
- Parameters:
theEnumClazz
- Enum class used to create the Type Safe Enum instance.
CustomEnumEditor
public CustomEnumEditor(java.lang.String theClassName)
throws java.lang.ClassNotFoundException
- Create a new CustomEnumEditor instance, using the given Enum class name.
- Parameters:
theClassName
- the name of the Class
.
- Throws:
java.lang.ClassNotFoundException
- thrown when matching Class
is not found.
setAsText
public void setAsText(java.lang.String theText)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
- See Also:
PropertyEditorSupport.setAsText(java.lang.String)
getAsText
public java.lang.String getAsText()
- See Also:
PropertyEditorSupport.getAsText()
Copyright © 2004-2005 University Health Network. All Rights Reserved.