|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.l2fprod.common.propertysheet.PropertyEditorRegistry
public class PropertyEditorRegistry
Mapping between Properties, Property Types and Property Editors.
Constructor Summary | |
---|---|
PropertyEditorRegistry()
|
Method Summary | |
---|---|
java.beans.PropertyEditor |
createPropertyEditor(Property property)
|
java.beans.PropertyEditor |
getEditor(java.lang.Class type)
Gets an editor for the given property type. |
java.beans.PropertyEditor |
getEditor(Property property)
Gets an editor for the given property. |
void |
registerDefaults()
Adds default editors. |
void |
registerEditor(java.lang.Class type,
java.lang.Class editorClass)
|
void |
registerEditor(java.lang.Class type,
java.beans.PropertyEditor editor)
|
void |
registerEditor(Property property,
java.lang.Class editorClass)
|
void |
registerEditor(Property property,
java.beans.PropertyEditor editor)
|
void |
unregisterEditor(java.lang.Class type)
|
void |
unregisterEditor(Property property)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyEditorRegistry()
Method Detail |
---|
public java.beans.PropertyEditor createPropertyEditor(Property property)
createPropertyEditor
in interface PropertyEditorFactory
public java.beans.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 java.beans.PropertyEditor getEditor(java.lang.Class type)
registerEditor(Class, PropertyEditor)
, it is returned,
elseregisterEditor(Class, Class)
, it is returned, else
type
-
public void registerEditor(java.lang.Class type, java.lang.Class editorClass)
public void registerEditor(java.lang.Class type, java.beans.PropertyEditor editor)
public void unregisterEditor(java.lang.Class type)
public void registerEditor(Property property, java.lang.Class editorClass)
public void registerEditor(Property property, java.beans.PropertyEditor editor)
public void unregisterEditor(Property property)
public void registerDefaults()
registerEditor
methods. Note: if overriden,
super.registerDefaults()
must be called before
plugging custom defaults.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |