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.
|
static void |
initDisplay() |
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.
|
static org.eclipse.swt.graphics.Image |
loadSwtImage(String fileName,
int targetSize)
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 static void initDisplay()
public List<Image> getFrameIcons()
getFrameIcons in interface DavGatewayTrayInterfacepublic void switchIcon()
switchIcon in interface DavGatewayTrayInterfacepublic void resetIcon()
resetIcon in interface DavGatewayTrayInterfacepublic void inactiveIcon()
inactiveIcon in interface DavGatewayTrayInterfacepublic boolean isActive()
isActive in interface DavGatewayTrayInterfacepublic void displayMessage(String message, org.apache.log4j.Level level)
displayMessage in interface DavGatewayTrayInterfacemessage - text messagelevel - log levelpublic static org.eclipse.swt.graphics.Image loadSwtImage(String fileName)
fileName - image resource file namepublic static org.eclipse.swt.graphics.Image loadSwtImage(String fileName, int targetSize)
fileName - image resource file nametargetSize - target image sizepublic void init()
init in interface DavGatewayTrayInterfacepublic void dispose()
DavGatewayTrayInterfacedispose in interface DavGatewayTrayInterfaceCopyright © 2001–2025 MickaĆ«l Guessant. All rights reserved.