|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction org.keridwen.core.messaging.ViewEvent<ResultType,MessageType>
public class ViewEvent<ResultType,MessageType>
Field Summary |
---|
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 | |
---|---|
ViewEvent(EventKey anEventKey,
MessageType aMessage)
|
|
ViewEvent(EventKey anEventKey,
MessageType aMessage,
String name,
Icon icon,
String tooltip)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
BundleController |
getDestination()
Gets the BundleController to which this Event should be sent (if known). |
Event<ResultType,MessageType> |
getEvent()
|
EventKey |
getKey()
Returns the unique EventKey of this Event . |
MessageType |
getMessage()
Gets the message transmitted with by the Event . |
Object |
getSource()
Gets the sender of the Event . |
Supervisor<ResultType> |
getSupervisor()
Gets the supervisor of the associated Command . |
void |
setMessage(MessageType aMessage)
Sets the message of the Event . |
void |
setSupervisor(Supervisor<ResultType> aSupervisor)
Sets the supervisor of the associated Command . |
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 |
Methods inherited from interface javax.swing.Action |
---|
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Constructor Detail |
---|
public ViewEvent(EventKey anEventKey, MessageType aMessage)
public ViewEvent(EventKey anEventKey, MessageType aMessage, String name, Icon icon, String tooltip)
Method Detail |
---|
public Event<ResultType,MessageType> getEvent()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public final EventKey getKey()
Event
EventKey
of this Event
.
getKey
in interface Event<ResultType,MessageType>
Event
public final MessageType getMessage()
Event
Event
.
getMessage
in interface Event<ResultType,MessageType>
Event
public final void setMessage(MessageType aMessage)
Event
Event
.
setMessage
in interface Event<ResultType,MessageType>
aMessage
- the message to set.public final BundleController getDestination()
Event
BundleController
to which this Event
should be sent (if known).
getDestination
in interface Event<ResultType,MessageType>
BundleController
that should process this Event
.public final Object getSource()
Event
Event
.
getSource
in interface Event<ResultType,MessageType>
Event
.public final Supervisor<ResultType> getSupervisor()
Event
Command
.
getSupervisor
in interface Event<ResultType,MessageType>
public final void setSupervisor(Supervisor<ResultType> aSupervisor)
Event
Command
.
setSupervisor
in interface Event<ResultType,MessageType>
aSupervisor
- the command supervisor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |