org.bushe.swing.event
Class EventBusAction
java.lang.Object
javax.swing.AbstractAction
org.bushe.swing.event.EventServiceAction
org.bushe.swing.event.EventBusAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class EventBusAction
- extends EventServiceAction
When fired, this action publishes events on the EventBus.
- See Also:
EventServiceAction
,
Serialized Form
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
EventBusAction
public EventBusAction()
EventBusAction
public EventBusAction(String actionName,
ImageIcon icon)
getEventService
protected EventService getEventService(ActionEvent event)
- Description copied from class:
EventServiceAction
- Override to return the EventService on which to publish.
- Specified by:
getEventService
in class EventServiceAction
- Parameters:
event
- the event passed to #execute(ActionEvent)
- Returns:
- the event service to publish on, if null and
getThrowsExceptionOnNullEventService() is true (default) an exception is thrown
- See Also:
EventBusAction
,
ContainerEventServiceAction
Copyright © 2011 Bushe Enterprises, Inc.. All Rights Reserved.