|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.controller.tray.SystemTrayAlert
This class creates a small Shell which places itself to the bottom right corner and informs the user that unread news are available. A click on the content text will restore RSSOwl from the System Tray.
Field Summary | |
private static int |
ANIMATION_DELAY
Delay animation for performance reasons |
private static int |
AUTO_CLOSE_TIME
Time after the popup is closed automatically |
private ExtendedThread |
autoClosePopup
|
(package private) org.eclipse.swt.graphics.Image |
closeImageHot
|
(package private) org.eclipse.swt.graphics.Image |
closeImageNormal
|
(package private) org.eclipse.swt.widgets.Display |
display
|
private static SystemTrayAlert |
instance
Keep a single instance of the popup |
(package private) boolean |
mouseInPopup
|
(package private) org.eclipse.swt.graphics.Font |
popupBoldFont
|
(package private) org.eclipse.swt.graphics.Color |
popupBorderColor
|
(package private) boolean |
popupClosed
|
(package private) org.eclipse.swt.graphics.Color |
popupInnerCircleColor
|
(package private) org.eclipse.swt.graphics.Color |
popupOuterCircleColor
|
(package private) org.eclipse.swt.widgets.Shell |
popupShell
|
(package private) SystemTray |
rssOwlSystemTray
|
(package private) org.eclipse.swt.graphics.Image |
trayOwlTease
|
Constructor Summary | |
private |
SystemTrayAlert(org.eclipse.swt.widgets.Display display,
SystemTray rssOwlSystemTray)
Instantiate a new SystemTrayAlert |
Method Summary | |
(package private) void |
close()
Close the popup shell |
static SystemTrayAlert |
getInstance(org.eclipse.swt.widgets.Display display,
SystemTray rssOwlSystemTray)
Factory method to create or return the single instance of the popup. |
private org.eclipse.swt.graphics.Rectangle |
getPrimaryClientArea()
Get the Client Area of the primary Monitor. |
(package private) void |
hide()
Hide the Popup and set location outside client area. |
private void |
initComponents()
Init the popup components |
private void |
initResources()
Init Fonts, Colors and Images |
boolean |
isPopupClosed()
Get if the popup was closed already |
(package private) void |
move(int x,
int y)
Move the Popup in a timed exec. |
private void |
moveIn()
Move the Popup in, from right to left. |
(package private) void |
onDispose()
Dispose Resources |
void |
show()
Show the popup shell. |
private void |
startAutoCloseThread()
This thread will close the popup automatically after a certain amount of time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int ANIMATION_DELAY
private static final int AUTO_CLOSE_TIME
private static SystemTrayAlert instance
private ExtendedThread autoClosePopup
org.eclipse.swt.graphics.Image closeImageHot
org.eclipse.swt.graphics.Image closeImageNormal
org.eclipse.swt.widgets.Display display
boolean mouseInPopup
org.eclipse.swt.graphics.Font popupBoldFont
org.eclipse.swt.graphics.Color popupBorderColor
boolean popupClosed
org.eclipse.swt.graphics.Color popupInnerCircleColor
org.eclipse.swt.graphics.Color popupOuterCircleColor
org.eclipse.swt.widgets.Shell popupShell
SystemTray rssOwlSystemTray
org.eclipse.swt.graphics.Image trayOwlTease
Constructor Detail |
private SystemTrayAlert(org.eclipse.swt.widgets.Display display, SystemTray rssOwlSystemTray)
display
- The display of RSSOwlrssOwlSystemTray
- The calling System Tray classMethod Detail |
public static SystemTrayAlert getInstance(org.eclipse.swt.widgets.Display display, SystemTray rssOwlSystemTray)
display
- The displayrssOwlSystemTray
- The System Tray of RSSOwl
public boolean isPopupClosed()
public void show()
private org.eclipse.swt.graphics.Rectangle getPrimaryClientArea()
private void initComponents()
private void initResources()
private void moveIn()
private void startAutoCloseThread()
void close()
void hide()
void move(int x, int y)
x
- The X locationy
- The Y locationvoid onDispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |