org.jurvis.beans.editors
Class MnemonicEditor

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

public class MnemonicEditor
extends PropertyEditorSupport

A PropertyEditor for converting back and forth between a String and an int representing a character.


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

MnemonicEditor

public MnemonicEditor()
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.