|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.jockey.util.tooltray.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.
Field Summary | |
static int |
OPTION_EXIT
|
static int |
OPTION_USER1
|
static int |
OPTION_USER2
|
static int |
OPTION_USER3
|
static int |
OPTION_USER4
|
static int |
OPTION_USER5
|
static int |
OPTION_USER6
|
static int |
OPTION_USER7
|
static int |
OPTION_USER8
|
static int |
OPTION_USER9
|
Constructor Summary | |
DesktopIndicator()
Creates a desktop indicator, initially hidden. |
|
DesktopIndicator(int image,
java.lang.String tooltip)
Creates a desktop indicator, initially hidden. |
Method Summary | |
void |
addDesktopIndicatorListener(DesktopIndicatorListener listener)
Adds a listener for clicks. |
int |
addOption(java.lang.String option)
Add an option to the menu of choices available from the desktop indicator. |
protected void |
finalize()
Makes sure that the desktop indicator is hidden. |
void |
fireClicked()
Notifies all listeners that the desktop indicator was clicked. |
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. |
static boolean |
initialize(boolean useCrossPlat)
Loads the JNI library, if available. |
static int |
loadImage(java.lang.String filename)
Loads an image file to memory. |
static int |
loadImageFromResource(int inResourceNum)
Loads an image file to memory. |
void |
removeDesktopIndicatorListener(DesktopIndicatorListener listener)
Removes a listener for clicks. |
void |
sendMessage(int option)
Notifies all listeners that the desktop indicator was clicked. |
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 |
Field Detail |
public static final int OPTION_EXIT
public static final int OPTION_USER1
public static final int OPTION_USER2
public static final int OPTION_USER3
public static final int OPTION_USER4
public static final int OPTION_USER5
public static final int OPTION_USER6
public static final int OPTION_USER7
public static final int OPTION_USER8
public static final int OPTION_USER9
Constructor Detail |
public DesktopIndicator()
public DesktopIndicator(int image, java.lang.String tooltip)
Method Detail |
public int addOption(java.lang.String option)
string
- to describe optionpublic void addDesktopIndicatorListener(DesktopIndicatorListener listener)
public void fireClicked()
public void sendMessage(int option)
public static void freeImage(int image)
public void hide()
public void removeDesktopIndicatorListener(DesktopIndicatorListener listener)
public void show()
public void update(int image, java.lang.String tooltip)
public static boolean initialize()
public static boolean initialize(boolean useCrossPlat)
public static int loadImage(java.lang.String filename)
public static int loadImageFromResource(int inResourceNum)
protected void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |