org.jurvis.beans.editors
Class CharEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.jurvis.beans.editors.CharEditor
All Implemented Interfaces:
PropertyEditor

public class CharEditor
extends PropertyEditorSupport

A PropertyEditor for converting back and forth between a String and a Character.


Constructor Summary
CharEditor()
           
 
Method Summary
 void setAsText(String text)
          Sets the property value by parsing a given String.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharEditor

public CharEditor()
Method Detail

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
text - The string to be parsed.
Throws:
IllegalArgumentException


Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.