snoozesoft.systray4j
Class SysTrayMenuEvent
java.lang.Object
java.util.EventObject
snoozesoft.systray4j.SysTrayMenuEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class SysTrayMenuEvent
- extends java.util.EventObject
Instances of this class are passed to systray menu listeners who want to be informed
whenever a systray icon or a menu item is clicked.
The sender of this event can be
extracted either directly by accessing the source member, or looking at the action
command of this event.
- See Also:
- Serialized Form
Constructor Summary |
SysTrayMenuEvent(java.lang.Object source,
java.lang.String actionCommand)
Creates a new SysTrayMenuEvent object. |
Method Summary |
java.lang.String |
getActionCommand()
Getter for the action command of this event object. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SysTrayMenuEvent
public SysTrayMenuEvent(java.lang.Object source,
java.lang.String actionCommand)
- Creates a new
SysTrayMenuEvent
object.
- Parameters:
source
- The object this event originates from.actionCommand
- The action command of the event.
getActionCommand
public java.lang.String getActionCommand()
- Getter for the action command of this event object.
- Returns:
- This objects action command.