public final class DavGatewayTray extends Object
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
adjustTrayIcon(BufferedImage image) |
static void |
debug(BundleMessage message)
Log message at level DEBUG.
|
static void |
debug(BundleMessage message,
Exception e)
Log message and exception at level DEBUG.
|
static void |
dispose()
Dispose application tray icon
|
static void |
error(BundleMessage message)
Log message at level ERROR.
|
static void |
error(BundleMessage message,
Exception e)
Log message and exception at level ERROR.
|
static void |
error(Exception e)
Log exception at level ERROR.
|
static List<Image> |
getFrameIcons()
Return AWT Image icon for frame title.
|
static void |
info(BundleMessage message)
Log message at level INFO.
|
static void |
init(boolean notray)
Create tray icon and register frame listeners.
|
static boolean |
isActive()
Check if current tray status is inactive (network down).
|
static boolean |
isLinux()
Test if running on Linux
|
static boolean |
isOSX()
Test if running on OSX
|
static boolean |
isWindows()
Test if running on Windows
|
static BufferedImage |
loadImage(String fileName)
Load image with current class loader.
|
static void |
log(Exception e)
Log exception at level WARN for NetworkDownException,
ERROR for other exceptions.
|
static void |
resetIcon()
Set tray icon to inactive (network down)
|
static void |
showLogs()
Open logging window.
|
static void |
switchIcon()
Switch tray icon between active and standby icon.
|
static void |
warn(BundleMessage message)
Log message at level WARN.
|
static void |
warn(BundleMessage message,
Exception e)
Log message and exception at level WARN.
|
static void |
warn(Exception e)
Log exception at level WARN.
|
public static List<Image> getFrameIcons()
public static void switchIcon()
public static void resetIcon()
public static boolean isActive()
public static void debug(BundleMessage message)
message
- bundle messagepublic static void info(BundleMessage message)
message
- bundle messagepublic static void warn(BundleMessage message)
message
- bundle messagepublic static void warn(Exception e)
e
- exceptionpublic static void error(BundleMessage message)
message
- bundle messagepublic static void log(Exception e)
e
- exceptionpublic static void error(Exception e)
e
- exceptionpublic static void debug(BundleMessage message, Exception e)
message
- bundle messagee
- exceptionpublic static void warn(BundleMessage message, Exception e)
message
- bundle messagee
- exceptionpublic static void error(BundleMessage message, Exception e)
message
- bundle messagee
- exceptionpublic static void init(boolean notray)
public static boolean isOSX()
public static boolean isWindows()
public static boolean isLinux()
public static BufferedImage loadImage(String fileName)
fileName
- image resource file namepublic static BufferedImage adjustTrayIcon(BufferedImage image)
public static void dispose()
public static void showLogs()
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.