public final class PropertyEditorRegistry extends Object implements PropertyEditorFactory
| Constructor and Description |
|---|
PropertyEditorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
PropertyEditor |
createPropertyEditor(Property property) |
PropertyEditor |
getEditor(Class type)
Gets an editor for the given property type.
|
PropertyEditor |
getEditor(Property property)
Gets an editor for the given property.
|
void |
registerDefaults()
Adds default editors.
|
void |
registerEditor(Class type,
Class editorClass) |
void |
registerEditor(Class type,
PropertyEditor editor) |
void |
registerEditor(Property property,
Class editorClass) |
void |
registerEditor(Property property,
PropertyEditor editor) |
void |
unregisterEditor(Class type) |
void |
unregisterEditor(Property property) |
public PropertyEditor createPropertyEditor(Property property)
createPropertyEditor in interface PropertyEditorFactorypublic PropertyEditor getEditor(Property property)
registerEditor(Property, PropertyEditor), it is returned,
elseregisterEditor(Property, Class), it is returned, else
getEditor(Class).it is returned, else
property - public PropertyEditor getEditor(Class type)
registerEditor(Class, PropertyEditor), it is returned, elseregisterEditor(Class, Class), it is returned, else
type - public void registerEditor(Class type, PropertyEditor editor)
public void unregisterEditor(Class type)
public void registerEditor(Property property, PropertyEditor editor)
public void unregisterEditor(Property property)
public void registerDefaults()
registerEditor methods. Note: if overridden,
super.registerDefaults() must be called before plugging
custom defaults. Copyright © 2015. All rights reserved.