SysTray for Java

Class SysTrayMenuEvent

  extended byjava.util.EventObject
      extended bysnoozesoft.systray4j.SysTrayMenuEvent
All Implemented Interfaces:

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

Constructor Detail


public SysTrayMenuEvent(java.lang.Object source,
                        java.lang.String actionCommand)
Creates a new SysTrayMenuEvent object.

source - The object this event originates from.
actionCommand - The action command of the event.
Method Detail


public java.lang.String getActionCommand()
Getter for the action command of this event object.

This objects action command.

SysTray for Java