|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.controller.tray.SystemTray
public class SystemTray
RSSOwl is supporting a simple system tray menu that allows to re-open and to exit RSSOwl. Supported on Windows and Linux.
| Field Summary | |
|---|---|
private Display |
display
|
private MenuItem |
exitItem
|
(package private) boolean |
isMinimizedToTray
|
private MenuItem |
markAllReadItem
|
private static int |
MIN_POPUP_GAP
Minimum time between two Tray Alerts in Miliseconds |
private MenuItem |
openItem
|
private long |
popupTimeLock
|
private MenuItem |
reloadAllItem
|
private static int |
RESTORE_DELAY
Delay the restoring of the application window |
(package private) GUI |
rssOwlGui
|
private SystemTrayAlert |
rssOwlTrayPopup
|
(package private) Shell |
shell
|
private Listener |
shellIconifyListener
|
private Tray |
systemTray
|
(package private) TrayItem |
systemTrayItem
|
(package private) Menu |
systemTrayItemMenu
|
static boolean |
trayIsTeasing
Remember the status of teasing in the tray |
| Constructor Summary | |
|---|---|
SystemTray(Display display,
Shell shell,
GUI rssOwlGui)
Instantiate a new SystemTray |
|
| Method Summary | |
|---|---|
void |
disable()
Disable systray icon |
private void |
initComponents()
Init the System Tray Menu |
boolean |
isMinimizedToTray()
Get wether RSSOwl is minimized to system tray |
(package private) void |
minimizeWindow()
Minimize RSSOwl to the system tray |
void |
resetPopupTimeLock()
Set the Popup Time Lock to 0 in order to have it reset. |
void |
restoreWindow()
Hide tray item and show RSSOwl |
void |
setTrayItemState(boolean teasing)
Set the trayitem state to either teasing or not. |
private void |
showTrayPopup()
Show Tray Popup if: - GlobalSettings allow it (GlobalSettings.showTrayPopup = TRUE) - Unread news are available (teasing = TRUE) - RSSOwl is minimized to the tray and not visible (isMinimizedToTray) - No tray popup was made before (rssOwlTrayPopup = NULL), or - The previous tray popup was already closed |
void |
updateI18N()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean trayIsTeasing
private static final int MIN_POPUP_GAP
private static final int RESTORE_DELAY
private Display display
private MenuItem exitItem
private MenuItem markAllReadItem
private MenuItem openItem
private long popupTimeLock
private MenuItem reloadAllItem
private SystemTrayAlert rssOwlTrayPopup
private Listener shellIconifyListener
private Tray systemTray
boolean isMinimizedToTray
GUI rssOwlGui
Shell shell
TrayItem systemTrayItem
Menu systemTrayItemMenu
| Constructor Detail |
|---|
public SystemTray(Display display,
Shell shell,
GUI rssOwlGui)
display - The displayshell - The shellrssOwlGui - The MainController| Method Detail |
|---|
public void disable()
public boolean isMinimizedToTray()
public void resetPopupTimeLock()
public void restoreWindow()
public void setTrayItemState(boolean teasing)
teasing - Set to TRUE to indicate unread news are availablepublic void updateI18N()
ITranslatable.updateI18N()private void initComponents()
private void showTrayPopup()
- GlobalSettings allow it (GlobalSettings.showTrayPopup = TRUE)
- Unread news are available (teasing = TRUE)
- RSSOwl is minimized to the tray and not visible (isMinimizedToTray)
- No tray popup was made before (rssOwlTrayPopup = NULL), or
- The previous tray popup was already closed
void minimizeWindow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||