|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
org.bushe.swing.event.EventServiceAction
org.bushe.swing.event.ContainerEventServiceAction
public class ContainerEventServiceAction
When fired, this action publishes an ActionEvent on a Container EventService.
See EventServiceAction for more information.
ContainerEventServiceFinder.CLIENT_PROPERTY_KEY_TOP_LEVEL_EVENT_SERVICE.
If the event is from a JPopupMenu then the popup menu's invoker's hierarchy is walked.
To exhibit other behavior, override the getSwingEventService() to return another EventService. For example, the
creator of a popup menu may pass itself to the ContainerEventServiceFinder to return a parent's EventService.
for further documentation,
on how the service is found,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.bushe.swing.event.EventServiceAction |
|---|
EVENT_BUS_EVENT_CLASS_NAME, EVENT_SERVICE_TOPIC_NAME |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| 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 |
| Constructor Summary | |
|---|---|
ContainerEventServiceAction()
|
|
ContainerEventServiceAction(java.lang.String actionName,
javax.swing.ImageIcon icon)
|
|
| Method Summary | |
|---|---|
protected EventService |
getEventService(java.awt.event.ActionEvent event)
Override to return the EventService on which to publish. |
| Methods inherited from class org.bushe.swing.event.EventServiceAction |
|---|
actionPerformed, getEventServiceEvent, getName, getThrowsExceptionOnNullEventService, getTopicName, getTopicValue, isPublishesOnTopic, setPublishesOnTopic, setThrowsExceptionOnNullEventService, setTopicName |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerEventServiceAction()
public ContainerEventServiceAction(java.lang.String actionName,
javax.swing.ImageIcon icon)
| Method Detail |
|---|
protected EventService getEventService(java.awt.event.ActionEvent event)
EventServiceAction
getEventService in class EventServiceActionevent - the event passed to #execute(ActionEvent)
EventBusAction,
ContainerEventServiceAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||