Search in sources :

Example 1 with EnumEditor

use of com.sun.beans.editors.EnumEditor in project jdk8u_jdk by JetBrains.

the class PropertyEditorFinder method find.

@Override
public PropertyEditor find(Class<?> type) {
    Class<?> predefined;
    synchronized (this.registry) {
        predefined = this.registry.get(type);
    }
    PropertyEditor editor = instantiate(predefined, null);
    if (editor == null) {
        editor = super.find(type);
        if ((editor == null) && (null != type.getEnumConstants())) {
            editor = new EnumEditor(type);
        }
    }
    return editor;
}
Also used : PropertyEditor(java.beans.PropertyEditor) EnumEditor(com.sun.beans.editors.EnumEditor)

Aggregations

EnumEditor (com.sun.beans.editors.EnumEditor)1 PropertyEditor (java.beans.PropertyEditor)1