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 |
PrioritizedEventTopicSubscriber
This is a convenience interface, particularly for inner classes, that implements
EventTopicSubscriber and Prioritized . |
Modifier and Type | Method and Description |
---|---|
protected void |
ThreadSafeEventService.onEventException(String topic,
Object eventObj,
Throwable e,
StackTraceElement[] callingStack,
EventTopicSubscriber eventTopicSubscriber)
Called during event handling exceptions, calls handleException
|
boolean |
EventService.subscribe(Pattern topicPattern,
EventTopicSubscriber subscriber)
Subscribes an EventSubscriber to the publication of all the topic names that match a RegEx Pattern.
|
static boolean |
EventBus.subscribe(Pattern topicPattern,
EventTopicSubscriber subscriber) |
boolean |
ThreadSafeEventService.subscribe(Pattern pat,
EventTopicSubscriber eh) |
boolean |
EventService.subscribe(String topic,
EventTopicSubscriber subscriber)
Subscribes an EventTopicSubscriber to the publication of a topic name.
|
static boolean |
EventBus.subscribe(String topic,
EventTopicSubscriber subscriber) |
boolean |
ThreadSafeEventService.subscribe(String topic,
EventTopicSubscriber eh) |
boolean |
EventService.subscribeStrongly(Pattern topicPattern,
EventTopicSubscriber subscriber)
Subscribes a subscriber to all the event topic names that match a RegEx expression.
|
static boolean |
EventBus.subscribeStrongly(Pattern topicPattern,
EventTopicSubscriber subscriber) |
boolean |
ThreadSafeEventService.subscribeStrongly(Pattern pat,
EventTopicSubscriber eh) |
boolean |
EventService.subscribeStrongly(String topic,
EventTopicSubscriber subscriber)
Subscribes a subscriber to an event topic name.
|
static boolean |
EventBus.subscribeStrongly(String topic,
EventTopicSubscriber subscriber) |
boolean |
ThreadSafeEventService.subscribeStrongly(String name,
EventTopicSubscriber eh) |
boolean |
EventService.unsubscribe(Pattern topicPattern,
EventTopicSubscriber subscriber)
Stop the subscription for a subscriber that is subscribed to event topics via a Pattern.
|
static boolean |
EventBus.unsubscribe(Pattern topicPattern,
EventTopicSubscriber subscriber) |
boolean |
ThreadSafeEventService.unsubscribe(Pattern topicPattern,
EventTopicSubscriber eh) |
boolean |
EventService.unsubscribe(String topic,
EventTopicSubscriber subscriber)
Stop the subscription for a subscriber that is subscribed to an event topic.
|
static boolean |
EventBus.unsubscribe(String topic,
EventTopicSubscriber subscriber) |
boolean |
ThreadSafeEventService.unsubscribe(String name,
EventTopicSubscriber eh) |
Constructor and Description |
---|
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.
|
ContainerEventServiceRegistrar(JComponent jComp,
EventTopicSubscriber eventTopicSubscriber,
String topic)
Create a registrar that will keep track of the container event service, and subscribe the subscriber to the topic
when the ContainerEventService is available and when it changes.
|
ContainerEventServiceRegistrar(JComponent jComp,
EventTopicSubscriber eventTopicSubscriber,
String[] topics)
Create a registrar that will keep track of the container event service, and subscribeStrongly the subscriber to
the topics when the ContainerEventService is available and when it changes.
|
Modifier and Type | Class and Description |
---|---|
class |
ProxyTopicPatternSubscriber
A Proxy Subscriber for Annotations that use topic patterns
|
class |
ProxyTopicSubscriber
A class that subscribes to an EventService on behalf of another object.
|
Copyright © 2013 Bushe Enterprises, Inc.. All rights reserved.