| java.lang.Object com.l2fprod.common.propertysheet.PropertyEditorRegistry
PropertyEditorRegistry | public class PropertyEditorRegistry implements PropertyEditorFactory(Code) | | Mapping between Properties, Property Types and Property Editors.
|
PropertyEditorRegistry | public PropertyEditorRegistry()(Code) | | |
getEditor | public synchronized PropertyEditor getEditor(Property property)(Code) | | Gets an editor for the given property. The lookup is as follow:
- if propertyDescriptor.getPropertyEditorClass() returns a valid value,
it is returned, else,
- if an editor was registered with
PropertyEditorRegistry.registerEditor(Property,PropertyEditor) , it is
returned, else
- if an editor class was registered with
PropertyEditorRegistry.registerEditor(Property,Class) , it is returned, else
-
- look for editor for the property type using
PropertyEditorRegistry.getEditor(Class) .it is returned, else
- look for editor using PropertyEditorManager.findEditor(Class);
Parameters: property - an editor suitable for the Property. |
getEditor | public synchronized PropertyEditor getEditor(Class type)(Code) | | Gets an editor for the given property type. The lookup is as
follow:
Parameters: type - an editor suitable for the Property type or null if nonefound |
registerDefaults | public void registerDefaults()(Code) | | Adds default editors. This method is called by the constructor
but may be called later to reset any customizations made through
the registerEditor methods. Note: if overriden,
super.registerDefaults() must be called before
plugging custom defaults.
|
registerEditor | public synchronized void registerEditor(Class type, Class editorClass)(Code) | | |
registerEditor | public synchronized void registerEditor(Property property, Class editorClass)(Code) | | |
unregisterEditor | public synchronized void unregisterEditor(Class type)(Code) | | |
unregisterEditor | public synchronized void unregisterEditor(Property property)(Code) | | |
|
|