Package com.bc.ceres.swing.binding
Class PropertyEditorRegistry
java.lang.Object
com.bc.ceres.swing.binding.PropertyEditorRegistry
A registry for
PropertyEditor.- Since:
- BEAM 4.6
- Version:
- $Revision$ $Date$
-
Method Summary
Modifier and TypeMethodDescriptionfindPropertyEditor(PropertyDescriptor propertyDescriptor) Finds a matchingPropertyEditorfor the givenPropertyDescriptor.static PropertyEditorRegistrygetPropertyEditor(String className) Gets aPropertyEditorby its class name.static voidsetInstance(PropertyEditorRegistry registry)
-
Method Details
-
getInstance
-
setInstance
-
getPropertyEditor
Gets aPropertyEditorby its class name.- Parameters:
className- The class name of thePropertyEditor.- Returns:
- the value editor or
nullif no editor exist for the given class name.
-
findPropertyEditor
Finds a matchingPropertyEditorfor the givenPropertyDescriptor.At first , if set, the property
"propertyEditor"of the property descriptor is used. Afterwards all registeredPropertyEditors are tested, whether the can provide an editor. As a fallback aTextFieldEditoris returned.- Parameters:
propertyDescriptor- the value descriptor- Returns:
- the editor that can edit values described by the value descriptor
-