public class SwtGatewayTray extends Object implements DavGatewayTrayInterface
Modifier | Constructor and Description |
---|---|
protected |
SwtGatewayTray() |
Modifier and Type | Method and Description |
---|---|
void |
displayMessage(String message,
org.apache.log4j.Level level)
Log and display balloon message according to 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).
|
static org.eclipse.swt.graphics.Image |
loadSwtImage(String fileName)
Load image with current class loader.
|
void |
resetIcon()
Set tray icon to inactive (network down)
|
void |
switchIcon()
Switch tray icon between active and standby icon.
|
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 static org.eclipse.swt.graphics.Image loadSwtImage(String fileName)
fileName
- image resource file namepublic void init()
init
in interface DavGatewayTrayInterface
public void dispose()
DavGatewayTrayInterface
dispose
in interface DavGatewayTrayInterface
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.