public class StaticFactoryConverter extends AbstractConverter
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
method |
Constructor and Description |
---|
StaticFactoryConverter(java.lang.Class type,
java.lang.reflect.Method method) |
Modifier and Type | Method and Description |
---|---|
static StaticFactoryConverter |
editor(java.lang.Class type) |
(package private) static java.util.List<java.lang.reflect.Method> |
getCandidates(java.lang.Class type) |
private static int |
grade(java.lang.reflect.Method a) |
(package private) static java.lang.reflect.Method |
select(java.util.List<java.lang.reflect.Method> candidates)
We want the selection to be stable and not dependent on
VM reflection ordering.
|
(package private) static void |
sort(java.util.List<java.lang.reflect.Method> candidates) |
protected java.lang.Object |
toObjectImpl(java.lang.String text)
Converts the supplied text in to an instance of the editor type.
|
getAsText, getType, getValue, setAsText, setValue, toObject, toString, toStringImpl
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
public StaticFactoryConverter(java.lang.Class type, java.lang.reflect.Method method)
protected java.lang.Object toObjectImpl(java.lang.String text)
AbstractConverter
toObjectImpl
in class AbstractConverter
text
- the text to convertpublic static StaticFactoryConverter editor(java.lang.Class type)
static java.util.List<java.lang.reflect.Method> getCandidates(java.lang.Class type)
static java.lang.reflect.Method select(java.util.List<java.lang.reflect.Method> candidates)
static void sort(java.util.List<java.lang.reflect.Method> candidates)
private static int grade(java.lang.reflect.Method a)