public final class PropertyEditorRegistry extends Object implements PropertyEditorFactory
| Modifier and Type | Field and Description |
|---|---|
static PropertyEditorRegistry |
INSTANCE |
| 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<? extends PropertyEditor> editorClass) |
void |
registerEditor(Class<?> type,
PropertyEditor editor) |
void |
registerEditor(Property property,
Class<? extends PropertyEditor> editorClass) |
void |
registerEditor(Property property,
PropertyEditor editor) |
void |
unregisterEditor(Class<?> type) |
void |
unregisterEditor(Property property) |
public static final PropertyEditorRegistry INSTANCE
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, Class<? extends PropertyEditor> editorClass)
public void registerEditor(Class<?> type, PropertyEditor editor)
public void registerEditor(Property property, Class<? extends PropertyEditor> editorClass)
public void registerEditor(Property property, PropertyEditor editor)
public void unregisterEditor(Class<?> type)
public void unregisterEditor(Property property)
public void registerDefaults()
registerEditor methods. Note: if overridden,
super.registerDefaults() must be called before plugging
custom defaults. Copyright © 2017. All rights reserved.