|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.feednread.frontend.tray.TrayHandler
Controls the Tray and TrayItem of the application.
| Nested Class Summary | |
private class |
TrayHandler.TrayItemHandler
Internal Event Handler class to make the application's system tray popup menu visible. |
private class |
TrayHandler.TraySelectionHandler
Internal Event Handler class to restore the application window after is has been minimized to tray. |
| Field Summary | |
private TrayItem |
appTrayItem
The application's TrayItem |
private Menu |
appTrayItemMenu
The application's tray item context Menu |
private MenuManager |
appTrayItemMenuManager
The MenuManager used to construct the context
Menu
|
private TrayHandler.TrayItemHandler |
itemHandler
Handles clicks to the TrayItem |
private MainApplicationWindow |
mainWindow
The Feed'n Read main window |
private TrayHandler.TraySelectionHandler |
selectionHandler
Handles selections with the TrayItem's context
Menu
|
private Tray |
tray
The system Tray to handle |
| Constructor Summary | |
TrayHandler(MainApplicationWindow mainWindow)
Creates a new TrayHandler if the system the application
is running on supports a system tray area.
|
|
| Method Summary | |
private void |
createMenuManager()
Creates the internal MenuManager used to manage the
system tray menu of this application.
|
private void |
createTrayItem()
Creates the TrayItem for this application.
|
void |
dispose()
Disposes the TrayItem of this application if the system
it is running on supports a system tray area.
|
private void |
registerEventHandler()
Creates and registers all event handler used in the context of this TrayHandler.
|
private void |
unregisterEventHandler()
Unregisters all event handler used in the context of this TrayHandler.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private MainApplicationWindow mainWindow
The Feed'n Read main window
private Tray tray
The system Tray to handle
private TrayItem appTrayItem
The application's TrayItem
private Menu appTrayItemMenu
The application's tray item context Menu
private MenuManager appTrayItemMenuManager
The MenuManager used to construct the context
Menu
private TrayHandler.TraySelectionHandler selectionHandler
Handles selections with the TrayItem's context
Menu
private TrayHandler.TrayItemHandler itemHandler
Handles clicks to the TrayItem
| Constructor Detail |
public TrayHandler(MainApplicationWindow mainWindow)
Creates a new TrayHandler if the system the application
is running on supports a system tray area.
mainWindow - the Feed'n Read main window| Method Detail |
public void dispose()
Disposes the TrayItem of this application if the system
it is running on supports a system tray area.
private void createTrayItem()
Creates the TrayItem for this application.
private void createMenuManager()
Creates the internal MenuManager used to manage the
system tray menu of this application.
private void registerEventHandler()
Creates and registers all event handler used in the context of this
TrayHandler.
private void unregisterEventHandler()
Unregisters all event handler used in the context of this
TrayHandler.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||