com.maxistech.desktopex
Class SystemTrayEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.maxistech.desktopex.SystemTrayEvent
All Implemented Interfaces:
Serializable

public class SystemTrayEvent
extends EventObject

An event that indicates that notification is generated from a system tray. Notification occurs when mouse cursor is over or a mouse button is clicked on a system tray.

See Also:
Serialized Form

Field Summary
static int BUTTON1
          Indicates mouse button #1; used by getButton()
static int BUTTON2
          Indicates mouse button #2; used by getButton()
static int BUTTON3
          Indicates mouse button #3; used by getButton()
static int NOBUTTON
          Indicates no mouse buttons; used by getButton()
 
Constructor Summary
SystemTrayEvent(SystemTray source, int button, int x, int y)
          Constructs a new SystemTrayEvent
 
Method Summary
 int getButton()
          Returns which, if any, of the mouse buttons has changed state.
 int getX()
          Gets the horizontal x position of this event relative to the screen.
 int getY()
          Gets the horizontal x position of this event relative to the screen.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOBUTTON

public static final int NOBUTTON
Indicates no mouse buttons; used by getButton()

See Also:
Constant Field Values

BUTTON1

public static final int BUTTON1
Indicates mouse button #1; used by getButton()

See Also:
Constant Field Values

BUTTON2

public static final int BUTTON2
Indicates mouse button #2; used by getButton()

See Also:
Constant Field Values

BUTTON3

public static final int BUTTON3
Indicates mouse button #3; used by getButton()

See Also:
Constant Field Values
Constructor Detail

SystemTrayEvent

public SystemTrayEvent(SystemTray source,
                       int button,
                       int x,
                       int y)
Constructs a new SystemTrayEvent

Parameters:
source - the system tray that generates this event
button - mouse button, if any, that triggers this event
x - horizontal x position of the event relative to the screen
y - vertical y position of the event relative to the screen
Method Detail

getButton

public int getButton()
Returns which, if any, of the mouse buttons has changed state.

See Also:
NOBUTTON, BUTTON1, BUTTON2, BUTTON3

getX

public int getX()
Gets the horizontal x position of this event relative to the screen.


getY

public int getY()
Gets the horizontal x position of this event relative to the screen.


toString

public String toString()
Overrides:
toString in class EventObject


Copyright (c) 2001-2002 mAxis Technology Company. All Rights Reserved.