The given group of events are all delivered as method calls on a single event listener interface, and an event listener object can be registered via a call on a registration method supplied by the event source.
| Modifier and Type | Field and Description |
|---|---|
| private MethodDescriptor | |
| private MethodDescriptor | |
| private boolean | |
| private MethodDescriptor[] | |
| private Reference | |
| private Reference | |
| private MethodDescriptor | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | EventSetDescriptor(Class<?>
The class firing the event. sourceClass, String The programmatic name of the event. E.g. "fred".
Note that this should normally start with a lower-case character. eventSetName, Class<?> The target interface that events
will get delivered to. listenerType, String The method that will get called when the event gets
delivered to its target listener interface. listenerMethodName)Creates an |
| public | EventSetDescriptor(Class<?>
The class firing the event. sourceClass, String The programmatic name of the event set.
Note that this should normally start with a lower-case character. eventSetName, Class<?> The Class of the target interface that events
will get delivered to. listenerType, String[] The names of the methods that will get called
when the event gets delivered to its target listener interface. listenerMethodNames, String The name of the method on the event source
that can be used to register an event listener object. addListenerMethodName, String The name of the method on the event source
that can be used to de-register an event listener object. removeListenerMethodName)Creates an |
| public | EventSetDescriptor(Class<?>
The class firing the event. sourceClass, String The programmatic name of the event set.
Note that this should normally start with a lower-case character. eventSetName, Class<?> The Class of the target interface that events
will get delivered to. listenerType, String[] The names of the methods that will get called
when the event gets delivered to its target listener interface. listenerMethodNames, String The name of the method on the event source
that can be used to register an event listener object. addListenerMethodName, String The name of the method on the event source
that can be used to de-register an event listener object. removeListenerMethodName, String The method on the event source that
can be used to access the array of event listener objects. getListenerMethodName)This constructor creates an EventSetDescriptor from scratch using string names. |
| public | EventSetDescriptor(String
The programmatic name of the event set. eventSetName, Class<?> The Class for the listener interface. listenerType, Method[] An array of Method objects describing each
of the event handling methods in the target listener. listenerMethods, Method The method on the event source
that can be used to register an event listener object. addListenerMethod, Method The method on the event source
that can be used to de-register an event listener object. removeListenerMethod)Creates an |
| public | EventSetDescriptor(String
The programmatic name of the event set. eventSetName, Class<?> The Class for the listener interface. listenerType, Method[] An array of Method objects describing each
of the event handling methods in the target listener. listenerMethods, Method The method on the event source
that can be used to register an event listener object. addListenerMethod, Method The method on the event source
that can be used to de-register an event listener object. removeListenerMethod, Method The method on the event source
that can be used to access the array of event listener objects. getListenerMethod)This constructor creates an EventSetDescriptor from scratch using java.lang.reflect.Method and java.lang.Class objects. |
| pack-priv | |
| public | EventSetDescriptor(String
The programmatic name of the event set. eventSetName, Class<?> The Class for the listener interface. listenerType, MethodDescriptor[] An array of MethodDescriptor objects
describing each of the event handling methods in the
target listener. listenerMethodDescriptors, Method The method on the event source
that can be used to register an event listener object. addListenerMethod, Method The method on the event source
that can be used to de-register an event listener object. removeListenerMethod)Creates an |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public synchronized Method | Returns: The method used to register a listener at the event source.Gets the method used to add event listeners. |
| public synchronized Method | Returns: The method used to access the array of listeners at the event source or null if it doesn't exist.Gets the method used to access the registered event listeners. |
| private static String | |
| public synchronized MethodDescriptor[] | Returns: An array ofMethodDescriptor objects for the target methods
within the target listener interface that will get called when
events are fired.Gets the |
| public synchronized Method[] | Returns: An array ofMethod objects for the target methods
within the target listener interface that will get called when
events are fired.Gets the methods of the target listener interface. |
| private Method[] | |
| public Class | Returns: The Class object for the target interface that will get invoked when the event is fired.Gets the |
| private static Method | |
| private static Method | |
| public synchronized Method | Returns: The method used to remove a listener at the event source.Gets the method used to remove event listeners. |
| public boolean | Returns: true if the event set is in
the "default" set. Defaults to true.Reports if an event set is in the "default" set. |
| public boolean | Returns: true if the event set is unicast.
Defaults to false.Normally event sources are multicast. |
| private synchronized void | |
| private synchronized void | |
| public void | setInDefaultEventSet(boolean
true if the event set is in
the "default" set,
false if notMarks an event set as being in the "default" set (or not). |
| private void | |
| private void | |
| private synchronized void | |
| public void |
| addMethodDescriptor | back to summary |
|---|---|
| private MethodDescriptor addMethodDescriptor | |
| getMethodDescriptor | back to summary |
|---|---|
| private MethodDescriptor getMethodDescriptor | |
| inDefaultEventSet | back to summary |
|---|---|
| private boolean inDefaultEventSet | |
| listenerMethodDescriptors | back to summary |
|---|---|
| private MethodDescriptor[] listenerMethodDescriptors | |
| listenerMethodsRef | back to summary |
|---|---|
| private Reference<Method[]> listenerMethodsRef | |
| listenerTypeRef | back to summary |
|---|---|
| private Reference<? extends Class<?>> listenerTypeRef | |
| removeMethodDescriptor | back to summary |
|---|---|
| private MethodDescriptor removeMethodDescriptor | |
| unicast | back to summary |
|---|---|
| private boolean unicast | |
| EventSetDescriptor | back to summary |
|---|---|
| public EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String listenerMethodName) throws IntrospectionException Creates an
| |
| EventSetDescriptor | back to summary |
|---|---|
| public EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName) throws IntrospectionException Creates an
| |
| EventSetDescriptor | back to summary |
|---|---|
| public EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName, String getListenerMethodName) throws IntrospectionException This constructor creates an EventSetDescriptor from scratch using string names.
| |
| EventSetDescriptor | back to summary |
|---|---|
| public EventSetDescriptor(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod) throws IntrospectionException Creates an
| |
| EventSetDescriptor | back to summary |
|---|---|
| public EventSetDescriptor(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod, Method getListenerMethod) throws IntrospectionException This constructor creates an EventSetDescriptor from scratch using java.lang.reflect.Method and java.lang.Class objects.
| |
| EventSetDescriptor | back to summary |
|---|---|
| pack-priv EventSetDescriptor(String base, EventSetInfo info, Method... methods) | |
| EventSetDescriptor | back to summary |
|---|---|
| public EventSetDescriptor(String eventSetName, Class<?> listenerType, MethodDescriptor[] listenerMethodDescriptors, Method addListenerMethod, Method removeListenerMethod) throws IntrospectionException Creates an
| |
| EventSetDescriptor | back to summary |
|---|---|
| pack-priv EventSetDescriptor(EventSetDescriptor x, EventSetDescriptor y) | |
| EventSetDescriptor | back to summary |
|---|---|
| pack-priv EventSetDescriptor(EventSetDescriptor old) | |
| appendTo | back to summary |
|---|---|
| pack-priv void appendTo(StringBuilder sb) Overrides java.
| |
| getAddListenerMethod | back to summary |
|---|---|
| public synchronized Method getAddListenerMethod() Gets the method used to add event listeners.
| |
| getGetListenerMethod | back to summary |
|---|---|
| public synchronized Method getGetListenerMethod() Gets the method used to access the registered event listeners.
| |
| getListenerClassName | back to summary |
|---|---|
| private static String getListenerClassName(Class<?> cls) | |
| getListenerMethodDescriptors | back to summary |
|---|---|
| public synchronized MethodDescriptor[] getListenerMethodDescriptors() Gets the
| |
| getListenerMethods | back to summary |
|---|---|
| public synchronized Method[] getListenerMethods() Gets the methods of the target listener interface.
| |
| getListenerMethods0 | back to summary |
|---|---|
| private Method[] getListenerMethods0() | |
| getListenerType | back to summary |
|---|---|
| public Class Gets the
| |
| getMethod | back to summary |
|---|---|
| private static Method getMethod(Class<?> cls, String name, int args) throws IntrospectionException | |
| getMethod | back to summary |
|---|---|
| private static Method getMethod(MethodDescriptor descriptor) | |
| getRemoveListenerMethod | back to summary |
|---|---|
| public synchronized Method getRemoveListenerMethod() Gets the method used to remove event listeners.
| |
| isInDefaultEventSet | back to summary |
|---|---|
| public boolean isInDefaultEventSet() Reports if an event set is in the "default" set.
| |
| isUnicast | back to summary |
|---|---|
| public boolean isUnicast() Normally event sources are multicast. However there are some exceptions that are strictly unicast.
| |
| setAddListenerMethod | back to summary |
|---|---|
| private synchronized void setAddListenerMethod(Method method) | |
| setGetListenerMethod | back to summary |
|---|---|
| private synchronized void setGetListenerMethod(Method method) | |
| setInDefaultEventSet | back to summary |
|---|---|
| public void setInDefaultEventSet(boolean inDefaultEventSet) Marks an event set as being in the "default" set (or not).
By default this is
| |
| setListenerMethods | back to summary |
|---|---|
| private void setListenerMethods(Method[] methods) | |
| setListenerType | back to summary |
|---|---|
| private void setListenerType(Class<?> cls) | |
| setRemoveListenerMethod | back to summary |
|---|---|
| private synchronized void setRemoveListenerMethod(Method method) | |
| setUnicast | back to summary |
|---|---|
| public void setUnicast(boolean unicast) Mark an event set as unicast (or not).
| |