org.springframework.richclient.application.support
Class DefaultPropertyEditorRegistry

java.lang.Object
  extended by org.springframework.richclient.application.support.DefaultPropertyEditorRegistry

public class DefaultPropertyEditorRegistry
extends Object

This provides a default implementation of PropertyEditorRegistry

Author:
Jim Moore

Constructor Summary
DefaultPropertyEditorRegistry()
           
 
Method Summary
 PropertyEditor getPropertyEditor(Class typeClass)
           
 PropertyEditor getPropertyEditor(Class objectType, String propertyName)
           
protected  void initDefaultEditors()
          Initialize the default property editors, covering primitive and other basic value types.
 void setPropertyEditor(Class typeClass, Class propertyEditorClass)
           
 void setPropertyEditor(Class objectType, String propertyName, Class propertyEditorClass)
           
 void setPropertyEditor(Properties properties)
          Adds a property editor to the registry extracting the object class, property name and property editor class from the properties "objectClass", "propertyName" and "propertyEditorClass".
 void setPropertyEditors(List propertyEditors)
          Adds a list of property editors to the registry extracting the object class, property name and property editor class from the properties "objectClass", "propertyName" and "propertyEditorClass".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPropertyEditorRegistry

public DefaultPropertyEditorRegistry()
Method Detail

initDefaultEditors

protected void initDefaultEditors()
Initialize the default property editors, covering primitive and other basic value types.


setPropertyEditors

public void setPropertyEditors(List propertyEditors)
Adds a list of property editors to the registry extracting the object class, property name and property editor class from the properties "objectClass", "propertyName" and "propertyEditorClass".

Parameters:
propertyEditors - the list of property editors. Each element is expected to be an instance of java.lang.Properties.
See Also:
setPropertyEditor(Properties)

setPropertyEditor

public void setPropertyEditor(Properties properties)
Adds a property editor to the registry extracting the object class, property name and property editor class from the properties "objectClass", "propertyName" and "propertyEditorClass".

Parameters:
properties - the properties

setPropertyEditor

public void setPropertyEditor(Class typeClass,
                              Class propertyEditorClass)

setPropertyEditor

public void setPropertyEditor(Class objectType,
                              String propertyName,
                              Class propertyEditorClass)

getPropertyEditor

public PropertyEditor getPropertyEditor(Class typeClass)

getPropertyEditor

public PropertyEditor getPropertyEditor(Class objectType,
                                        String propertyName)


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.