it.openutils.spring.editors
Class GenericSinglePropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by it.openutils.spring.editors.GenericSinglePropertyEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class GenericSinglePropertyEditor
extends java.beans.PropertyEditorSupport

Version:
$Revision$ ($Author$)
Author:
fgiust

Constructor Summary
GenericSinglePropertyEditor(java.lang.Object dao, java.lang.String propertyName, java.lang.Class propertyType)
          ProfiloPropertyEditor.
 
Method Summary
 java.lang.String getAsText()
           
 void setAsText(java.lang.String text)
           
 void setValue(java.lang.Object value)
          Set (or change) the object that is to be edited.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericSinglePropertyEditor

public GenericSinglePropertyEditor(java.lang.Object dao,
                                   java.lang.String propertyName,
                                   java.lang.Class propertyType)
ProfiloPropertyEditor.

Parameters:
dao - generic DAO
propertyName - property name
propertyType - property type
Method Detail

getAsText

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

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
See Also:
PropertyEditorSupport.setAsText(java.lang.String)

setValue

public void setValue(java.lang.Object value)
Set (or change) the object that is to be edited.

Specified by:
setValue in interface java.beans.PropertyEditor
Overrides:
setValue in class java.beans.PropertyEditorSupport
Parameters:
value - The new target object to be edited. Note that this object should not be modified by the PropertyEditor, rather the PropertyEditor should create a new object to hold any modified value.


Copyright {inceptionYear}-2006 Fabrizio Giustina. All Rights Reserved.