org.springframework.binding.format.support
Class FormatterPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.springframework.binding.format.support.FormatterPropertyEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class FormatterPropertyEditor
extends java.beans.PropertyEditorSupport

Adapts a formatter to the property editor contract.

Author:
Keith Donald

Constructor Summary
FormatterPropertyEditor(Formatter formatter)
          Creates a formatter property editor.
FormatterPropertyEditor(Formatter formatter, java.lang.Class targetClass)
          Creates a formatter property editor.
 
Method Summary
 java.lang.String getAsText()
           
 void setAsText(java.lang.String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, 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

FormatterPropertyEditor

public FormatterPropertyEditor(Formatter formatter)
Creates a formatter property editor.

Parameters:
formatter - the formatter to adapt

FormatterPropertyEditor

public FormatterPropertyEditor(Formatter formatter,
                               java.lang.Class targetClass)
Creates a formatter property editor.

Parameters:
formatter - the formatter to adapt
targetClass - the target class for "setAsText" conversions
Method Detail

getAsText

public java.lang.String getAsText()
Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText in class java.beans.PropertyEditorSupport

setAsText

public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
Specified by:
setAsText in interface java.beans.PropertyEditor
Overrides:
setAsText in class java.beans.PropertyEditorSupport
Throws:
java.lang.IllegalArgumentException


Copyright � 2004-2007. All Rights Reserved.