public class AwtGatewayTray extends Object implements DavGatewayTrayInterface
Modifier and Type | Field and Description |
---|---|
protected static BufferedImage |
activeImage |
protected static ArrayList<Image> |
frameIcons |
protected static BufferedImage |
image |
protected static BufferedImage |
inactiveImage |
protected static String |
TRAY_ACTIVE_PNG |
protected static String |
TRAY_INACTIVE_PNG |
protected static String |
TRAY_PNG |
protected static String |
TRAY128_ACTIVE_PNG |
protected static String |
TRAY128_INACTIVE_PNG |
protected static String |
TRAY128_PNG |
Modifier | Constructor and Description |
---|---|
protected |
AwtGatewayTray() |
Modifier and Type | Method and Description |
---|---|
void |
about()
Open about window
|
protected void |
createAndShowGUI() |
void |
displayMessage(String message,
org.apache.log4j.Level level)
Display balloon message for log level.
|
void |
dispose()
destroy frames
|
List<Image> |
getFrameIcons()
Return AWT Image icon for frame title.
|
void |
inactiveIcon()
Set tray icon to inactive (network down)
|
void |
init()
Create tray icon and register frame listeners.
|
boolean |
isActive()
Check if current tray status is inactive (network down).
|
protected void |
loadIcons() |
void |
preferences()
Open settings window
|
void |
resetIcon()
Set tray icon to inactive (network down)
|
void |
switchIcon()
Switch tray icon between active and standby icon.
|
protected static final String TRAY_PNG
protected static final String TRAY_ACTIVE_PNG
protected static final String TRAY_INACTIVE_PNG
protected static final String TRAY128_PNG
protected static final String TRAY128_ACTIVE_PNG
protected static final String TRAY128_INACTIVE_PNG
protected static BufferedImage image
protected static BufferedImage activeImage
protected static BufferedImage inactiveImage
public List<Image> getFrameIcons()
getFrameIcons
in interface DavGatewayTrayInterface
public void switchIcon()
switchIcon
in interface DavGatewayTrayInterface
public void resetIcon()
resetIcon
in interface DavGatewayTrayInterface
public void inactiveIcon()
inactiveIcon
in interface DavGatewayTrayInterface
public boolean isActive()
isActive
in interface DavGatewayTrayInterface
public void displayMessage(String message, org.apache.log4j.Level level)
displayMessage
in interface DavGatewayTrayInterface
message
- text messagelevel
- log levelpublic void about()
public void preferences()
public void init()
init
in interface DavGatewayTrayInterface
public void dispose()
DavGatewayTrayInterface
dispose
in interface DavGatewayTrayInterface
protected void loadIcons()
protected void createAndShowGUI()
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.