Code example for PropertyEditorRegistrySupport

Methods: registerDefaultEditors

0
 * @since 6.4 
 */ 
public class DefaultPropertyEditorRegistry  
		extends PropertyEditorRegistrySupport {
 
	public DefaultPropertyEditorRegistry() { 
		registerDefaultEditors(); 
	} 
	 
	public PropertyEditor findEditor(Class<?> requiredType) {
		return findEditor(requiredType, null);
	} 
 
	public PropertyEditor findEditor(Class<?> requiredType, String propertyPath) {
		PropertyEditor pe = findCustomEditor(requiredType, propertyPath);
		if (pe == null) {
			pe = getDefaultEditor(requiredType);
		} 
		return pe;
	}