public class PropertyDescriptor extends ReadOnlyPropertyDescriptor
Modifier and Type | Class and Description |
---|---|
class |
PropertyDescriptor.Listener<T> |
ReadOnlyPropertyDescriptor.ReadOnlyListener<T>
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ADD_PREFIX |
private static java.lang.String |
ADD_VETOABLE_LISTENER_METHOD_NAME |
private static int |
ADD_VETOABLE_LISTENER_TAKES_NAME |
private java.lang.reflect.Method |
addVetoListener |
private int |
flags |
private static java.lang.String |
REMOVE_PREFIX |
private static java.lang.String |
REMOVE_VETOABLE_LISTENER_METHOD_NAME |
private static int |
REMOVE_VETOABLE_LISTENER_TAKES_NAME |
private java.lang.reflect.Method |
removeVetoListener |
private java.lang.reflect.Method |
setter |
private static java.lang.String |
SUFFIX |
beanClass, name
Constructor and Description |
---|
PropertyDescriptor(java.lang.String propertyName,
java.lang.Class<?> beanClass,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ReadOnlyPropertyDescriptor.ReadOnlyListener listener) |
java.lang.reflect.Method |
getSetter() |
void |
removeListener(ReadOnlyPropertyDescriptor.ReadOnlyListener listener) |
capitalizedName, getGetter, getName, getType
private static final java.lang.String ADD_VETOABLE_LISTENER_METHOD_NAME
private static final java.lang.String REMOVE_VETOABLE_LISTENER_METHOD_NAME
private static final java.lang.String ADD_PREFIX
private static final java.lang.String REMOVE_PREFIX
private static final java.lang.String SUFFIX
private static final int ADD_VETOABLE_LISTENER_TAKES_NAME
private static final int REMOVE_VETOABLE_LISTENER_TAKES_NAME
private final java.lang.reflect.Method setter
private final java.lang.reflect.Method addVetoListener
private final java.lang.reflect.Method removeVetoListener
private final int flags
public PropertyDescriptor(java.lang.String propertyName, java.lang.Class<?> beanClass, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
public java.lang.reflect.Method getSetter()
public void addListener(ReadOnlyPropertyDescriptor.ReadOnlyListener listener)
addListener
in class ReadOnlyPropertyDescriptor
public void removeListener(ReadOnlyPropertyDescriptor.ReadOnlyListener listener)
removeListener
in class ReadOnlyPropertyDescriptor