|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.scheisseichfindemalkeinen.systemtray.SystemTrayTool
public class SystemTrayTool
Class which handles the SystemTray
| Constructor Summary | |
|---|---|
SystemTrayTool()
Constructor |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addSystemTrayListener(ISystemTrayListener l)
Adds a listener |
void |
init()
Initializes the SystemTray, but does not show the trayicon |
static boolean |
isTraySupported()
Checks if SystemTray is supported or not |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
queueChanged(int queue,
int openSlots,
int maxSlots)
Download-Slots has changed. |
void |
remove()
Removes the icon from the SystemTray |
void |
removeSystemTrayListener(ISystemTrayListener l)
Removes a listener |
void |
sessionDownloadedBytesChanged(long count)
Changes of the count of downloaded bytes since application started |
void |
sessionDownloadedFilesChanged(int count)
Changes of the count of downloaded files since application started |
void |
settingsChanged()
This method is fired when settings had changed |
void |
showTrayIcon()
Now, here we add the icon to the SystemTray and register Listeners for the menuitems |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemTrayTool()
| Method Detail |
|---|
public static boolean isTraySupported()
public void init()
public void showTrayIcon()
public void remove()
public void addSystemTrayListener(ISystemTrayListener l)
l - Listenerpublic void removeSystemTrayListener(ISystemTrayListener l)
l - Listenerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener
public void queueChanged(int queue,
int openSlots,
int maxSlots)
IQueueDataListener
queueChanged in interface IQueueDataListenerqueue - Amount of downloads in the queueopenSlots - Free download-slotsmaxSlots - Maximum download-slotspublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListenerpublic void settingsChanged()
ISettingsListener
settingsChanged in interface ISettingsListenerpublic void sessionDownloadedBytesChanged(long count)
IQueueDataListener
sessionDownloadedBytesChanged in interface IQueueDataListenercount - Count of downloaded bytespublic void sessionDownloadedFilesChanged(int count)
IQueueDataListener
sessionDownloadedFilesChanged in interface IQueueDataListenercount - Count of downloaded files
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||