|
Regain 2.1.0-STABLE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.regain.ui.desktop.TrayIconHandler
public class TrayIconHandler
Manages the tray icon.
| Field Summary | |
|---|---|
private boolean |
active
Should a tray icon be displayed? |
private static Localizer |
localizer
The localizer for this class. |
private TrayIcon |
trayIcon
the TrayIcon itself. |
private static TrayIconHandler |
trayIconHandlerSingleton
The singleton instance of the TrayIconHandler. |
| Constructor Summary | |
|---|---|
TrayIconHandler()
|
|
| Method Summary | |
|---|---|
static TrayIconHandler |
getInstance()
Gets or create the singleton instances of TrayIconHandler. |
void |
init(boolean useTrayIcon)
Initializes the tray icon. |
private Image |
loadImageFromClasspath(String name)
Load the image from the classpath. |
void |
setIndexUpdateRunning(boolean updateRunning)
Sets whether there is currently an index update running. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Localizer localizer
private static TrayIconHandler trayIconHandlerSingleton
private boolean active
private TrayIcon trayIcon
| Constructor Detail |
|---|
public TrayIconHandler()
| Method Detail |
|---|
public static TrayIconHandler getInstance()
public void init(boolean useTrayIcon)
useTrayIcon - should the tray icon be displayedpublic void setIndexUpdateRunning(boolean updateRunning)
updateRunning - Whether there is currently an index update running.private Image loadImageFromClasspath(String name)
name - qualified name of the image (package + image name)
|
Regain 2.1.0-STABLE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||