|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.controller.tray.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 org.eclipse.swt.widgets.Display |
display
|
private org.eclipse.swt.widgets.MenuItem |
exitItem
|
(package private) boolean |
isMinimizedToTray
|
private org.eclipse.swt.widgets.MenuItem |
markAllReadItem
|
private org.eclipse.swt.widgets.MenuItem |
openItem
|
private org.eclipse.swt.widgets.MenuItem |
reloadAllItem
|
(package private) GUI |
rssOwlGui
|
private SystemTrayAlert |
rssOwlTrayPopup
|
(package private) org.eclipse.swt.widgets.Shell |
shell
|
private org.eclipse.swt.widgets.Listener |
shellIconifyListener
|
private org.eclipse.swt.widgets.Tray |
systemTray
|
(package private) org.eclipse.swt.widgets.TrayItem |
systemTrayItem
|
(package private) org.eclipse.swt.widgets.Menu |
systemTrayItemMenu
|
static boolean |
trayIsTeasing
Remember the status of teasing in the tray |
Constructor Summary | |
SystemTray(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.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 |
(package private) 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 org.eclipse.swt.widgets.Display display
private org.eclipse.swt.widgets.MenuItem exitItem
private org.eclipse.swt.widgets.MenuItem markAllReadItem
private org.eclipse.swt.widgets.MenuItem openItem
private org.eclipse.swt.widgets.MenuItem reloadAllItem
private SystemTrayAlert rssOwlTrayPopup
private org.eclipse.swt.widgets.Listener shellIconifyListener
private org.eclipse.swt.widgets.Tray systemTray
boolean isMinimizedToTray
GUI rssOwlGui
org.eclipse.swt.widgets.Shell shell
org.eclipse.swt.widgets.TrayItem systemTrayItem
org.eclipse.swt.widgets.Menu systemTrayItemMenu
Constructor Detail |
public SystemTray(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Shell shell, GUI rssOwlGui)
display
- The displayshell
- The shellrssOwlGui
- The MainControllerMethod Detail |
public void disable()
public boolean isMinimizedToTray()
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()
void restoreWindow()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |