|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ou.kmi.buddyspace.gui.systemtray.DesktopIndicator
A JNI wrapper for desktop indicators (also called tray icons and taskbar icons).
The actual implementation is platform specific. Currently only Win32 is supported.
For unsupported platforms, the desktop indicator doesn't do anything, and is
otherwise harmless. Likewise, some platforms may not support the tooltip
feature.
IMPORTANT!
Relying on this feature will make your applet or application platform-
dependant. If possible, treat is as an "added benefit", not a required feature.
Constructor Summary | |
DesktopIndicator(int image,
java.lang.String tooltip)
Creates a desktop indicator, initially hidden. |
Method Summary | |
void |
addDesktopIndicatorListener(DesktopIndicatorListener listener)
Adds a listener for clicks. |
protected void |
finalize()
Makes sure that the desktop indicator is hidden. |
void |
fireClicked()
Notifies all listeners that the desktop indicator was clicked. |
void |
fireExit()
Notifies all listeners that exit was clicked. |
void |
firePresenceChange(java.lang.String presenceStr)
Notifies all listeners that presence was changed. |
static void |
freeImage(int image)
Frees memory used by a image previously loaded with loadImage. |
void |
hide()
Hides the desktop indicator. |
static boolean |
initialize()
Loads the JNI library, if available. |
boolean |
isScreenSaverActive()
Returns if a screen server is running. |
static int |
loadImage(java.lang.String filename)
Loads an image file to memory. |
void |
removeDesktopIndicatorListener(DesktopIndicatorListener listener)
Removes a listener for clicks. |
void |
show()
Enables the desktop indicator. |
void |
update(int image,
java.lang.String tooltip)
Updates the desktop indicator with an image and tooltip. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DesktopIndicator(int image, java.lang.String tooltip)
Method Detail |
public static boolean initialize()
public static int loadImage(java.lang.String filename)
public static void freeImage(int image)
public void show()
public void update(int image, java.lang.String tooltip)
public void hide()
public boolean isScreenSaverActive()
public void fireClicked()
public void firePresenceChange(java.lang.String presenceStr)
public void fireExit()
public void addDesktopIndicatorListener(DesktopIndicatorListener listener)
public void removeDesktopIndicatorListener(DesktopIndicatorListener listener)
protected void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |