com.regexlab.j2e
Class SystemTray

java.lang.Object
  extended by com.regexlab.j2e.SystemTray

public class SystemTray
extends java.lang.Object

System Tray icon class.


Field Summary
static int INFOTYPE_ERROR
          win2k style balloon info type
static int INFOTYPE_INFO
          win2k style balloon info type
static int INFOTYPE_NONE
          win2k style balloon info type
static int INFOTYPE_WARNING
          win2k style balloon info type
static int LEFT_CLICK
          system tray mouse event
static int LEFT_DOUBLE_CLICK
          system tray mouse event
static int MIDDLE_CLICK
          system tray mouse event
static int MIDDLE_DOUBLE_CLICK
          system tray mouse event
static int MOUSE_MOVE
          system tray mouse event
static int RIGHT_CLICK
          system tray mouse event
static int RIGHT_DOUBLE_CLICK
          system tray mouse event
 
Constructor Summary
SystemTray(int nIcon, java.lang.String szTip)
          Construct a SystemTray without windows 2000 style balloon info.
SystemTray(int nIcon, java.lang.String szTip, java.lang.String szInfo, java.lang.String szInfoTitle, int nInfoType)
          Construct a SystemTray with windows 2000 style balloon info.
 
Method Summary
 void Change(int nIcon, java.lang.String szTip)
          Change the system tray.
 void Change(int nIcon, java.lang.String szTip, java.lang.String szInfo, java.lang.String szInfoTitle, int nInfoType)
          Change the system tray.
 void Hide()
          Hide system tray.
static void setSystemTrayCallback(SystemTrayCallback callback)
          Set the mouse event callback handler.
 void Show()
          Show system tray.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFOTYPE_NONE

public static final int INFOTYPE_NONE
win2k style balloon info type

See Also:
Constant Field Values

INFOTYPE_INFO

public static final int INFOTYPE_INFO
win2k style balloon info type

See Also:
Constant Field Values

INFOTYPE_WARNING

public static final int INFOTYPE_WARNING
win2k style balloon info type

See Also:
Constant Field Values

INFOTYPE_ERROR

public static final int INFOTYPE_ERROR
win2k style balloon info type

See Also:
Constant Field Values

MOUSE_MOVE

public static final int MOUSE_MOVE
system tray mouse event

See Also:
Constant Field Values

LEFT_CLICK

public static final int LEFT_CLICK
system tray mouse event

See Also:
Constant Field Values

LEFT_DOUBLE_CLICK

public static final int LEFT_DOUBLE_CLICK
system tray mouse event

See Also:
Constant Field Values

RIGHT_CLICK

public static final int RIGHT_CLICK
system tray mouse event

See Also:
Constant Field Values

RIGHT_DOUBLE_CLICK

public static final int RIGHT_DOUBLE_CLICK
system tray mouse event

See Also:
Constant Field Values

MIDDLE_CLICK

public static final int MIDDLE_CLICK
system tray mouse event

See Also:
Constant Field Values

MIDDLE_DOUBLE_CLICK

public static final int MIDDLE_DOUBLE_CLICK
system tray mouse event

See Also:
Constant Field Values
Constructor Detail

SystemTray

public SystemTray(int nIcon,
                  java.lang.String szTip)
Construct a SystemTray without windows 2000 style balloon info.

Parameters:
nIcon - - Icon number in the exefile. The first icon's number is 1.
szTip - - Tooltip text of the icon.

SystemTray

public SystemTray(int nIcon,
                  java.lang.String szTip,
                  java.lang.String szInfo,
                  java.lang.String szInfoTitle,
                  int nInfoType)
Construct a SystemTray with windows 2000 style balloon info. If this exe is runing under win9x or winnt4.0, the balloon info will not be shown.

Parameters:
nIcon - - Icon number in the exefile. The first icon's number is 1.
szTip - - Tooltip text of the icon.
szInfo - - Balloon info text.
szInfoTitle - - Balloon info title.
nInfoType - - Icon type of the balloon info.
Method Detail

Change

public void Change(int nIcon,
                   java.lang.String szTip)
Change the system tray.

Parameters:
nIcon - - Icon number in the exefile. The first icon's number is 1.
szTip - - Tooltip text of the icon.

Change

public void Change(int nIcon,
                   java.lang.String szTip,
                   java.lang.String szInfo,
                   java.lang.String szInfoTitle,
                   int nInfoType)
Change the system tray.

Parameters:
nIcon - - Icon number in the exefile. The first icon's number is 1.
szTip - - Tooltip text of the icon.
szInfo - - Balloon info text.
szInfoTitle - - Balloon info title.
nInfoType - - Icon type of the balloon info.

Show

public void Show()
Show system tray.


Hide

public void Hide()
Hide system tray.


setSystemTrayCallback

public static void setSystemTrayCallback(SystemTrayCallback callback)
Set the mouse event callback handler.

Parameters:
callback - - Handler to receive mouse event.