Package | Description |
---|---|
org.bushe.swing.event |
The main package, provides publish/subscribe services for Swing and non-Swing applications.
|
org.bushe.swing.event.annotation |
EventBus annotations to make it much simpler to publish and subscribe to events.
|
Modifier and Type | Interface and Description |
---|---|
interface |
PrioritizedEventSubscriber
This is a convenience interface, particularly for inner classes, that implements
EventSubscriber and Prioritized . |
Modifier and Type | Method and Description |
---|---|
EventSubscriber |
SubscriberTimingEvent.getSubscriber() |
Modifier and Type | Method and Description |
---|---|
protected void |
ThreadSafeEventService.handleException(Object event,
Throwable e,
StackTraceElement[] callingStack,
EventSubscriber eventSubscriber)
Called during event handling exceptions, calls handleException
|
boolean |
EventService.subscribe(Class eventClass,
EventSubscriber subscriber)
Subscribes an EventSubscriber to the publication of objects matching a type.
|
static boolean |
EventBus.subscribe(Class eventClass,
EventSubscriber subscriber) |
boolean |
ThreadSafeEventService.subscribe(Class cl,
EventSubscriber eh) |
boolean |
EventService.subscribe(Type type,
EventSubscriber subscriber)
Subscribe an EventSubscriber to publication of generic Types.
|
static boolean |
EventBus.subscribe(Type genericType,
EventSubscriber subscriber) |
boolean |
ThreadSafeEventService.subscribe(Type type,
EventSubscriber eh) |
boolean |
EventService.subscribeExactly(Class eventClass,
EventSubscriber subscriber)
Subscribes an EventSubscriber to the publication of objects exactly matching a type.
|
static boolean |
EventBus.subscribeExactly(Class eventClass,
EventSubscriber subscriber) |
boolean |
ThreadSafeEventService.subscribeExactly(Class cl,
EventSubscriber eh) |
boolean |
EventService.subscribeExactlyStrongly(Class eventClass,
EventSubscriber subscriber)
Subscribes an EventSubscriber to the publication of objects matching a type exactly.
|
static boolean |
EventBus.subscribeExactlyStrongly(Class eventClass,
EventSubscriber subscriber) |
boolean |
ThreadSafeEventService.subscribeExactlyStrongly(Class cl,
EventSubscriber eh) |
boolean |
EventService.subscribeStrongly(Class eventClass,
EventSubscriber subscriber)
Subscribes an EventSubscriber to the publication of objects matching a type.
|
static boolean |
EventBus.subscribeStrongly(Class eventClass,
EventSubscriber subscriber) |
boolean |
ThreadSafeEventService.subscribeStrongly(Class cl,
EventSubscriber eh) |
boolean |
EventService.unsubscribe(Class eventClass,
EventSubscriber subscriber)
Stop the subscription for a subscriber that is subscribed to a class.
|
static boolean |
EventBus.unsubscribe(Class eventClass,
EventSubscriber subscriber) |
boolean |
ThreadSafeEventService.unsubscribe(Class cl,
EventSubscriber eh) |
boolean |
EventService.unsubscribeExactly(Class eventClass,
EventSubscriber subscriber)
Stop the subscription for a subscriber that is subscribed to an exact class.
|
static boolean |
EventBus.unsubscribeExactly(Class eventClass,
EventSubscriber subscriber) |
boolean |
ThreadSafeEventService.unsubscribeExactly(Class cl,
EventSubscriber eh) |
Constructor and Description |
---|
ContainerEventServiceRegistrar(JComponent jComp,
EventSubscriber eventSubscriber,
Class eventClass)
Create a registrar that will keep track of the container event service, and subscribe the subscriber to the
eventClass when the ContainerEventService is available and when it changes.
|
ContainerEventServiceRegistrar(JComponent jComp,
EventSubscriber eventSubscriber,
Class[] eventClasses)
Create a registrar that will keep track of the container event service, and subscribe the subscriber to the event
classes when the ContainerEventService is available and when it changes.
|
ContainerEventServiceRegistrar(JComponent jComp,
EventSubscriber eventSubscriber,
Class[] eventClasses,
EventTopicSubscriber eventTopicSubscriber,
String[] topics)
Create a registrar that will keep track of the container event service, and subscribe the subscriber to the topics
and the event classes when the ContainerEventService is available and when it changes.
|
SubscriberTimingEvent(Object source,
Long start,
Long end,
Long timeLimitMilliseconds,
Object event,
EventSubscriber subscriber,
VetoEventListener vetoEventListener)
Create a timing event
|
Modifier and Type | Class and Description |
---|---|
class |
BaseProxySubscriber
A class is subscribed to an EventService on behalf of another object.
|
Copyright © 2013 Bushe Enterprises, Inc.. All rights reserved.