Package davmail.ui.tray
Class FrameGatewayTray
java.lang.Object
davmail.ui.tray.FrameGatewayTray
- All Implemented Interfaces:
DavGatewayTrayInterface
- Direct Known Subclasses:
OSXFrameGatewayTray
Failover GUI for Java 1.5 without SWT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabout()Open about window dialogprotected voidprotected voidvoiddisplayMessage(String message, org.apache.log4j.Level level) Log and display the balloon message according to log level.voiddispose()destroy framesReturn AWT Image icon for the frame title.voidSet the tray icon to inactive (network down)voidinit()Create the tray icon and register frame listeners.booleanisActive()Check if the current tray status is inactive (network down).voidOpen the settings window dialogvoidSet the tray icon to inactive (network down)voidSwitch tray icon between active and standby icon.
-
Constructor Details
-
FrameGatewayTray
protected FrameGatewayTray()
-
-
Method Details
-
getFrameIcons
Return AWT Image icon for the frame title.- Specified by:
getFrameIconsin interfaceDavGatewayTrayInterface- Returns:
- frame icon
-
switchIcon
public void switchIcon()Switch tray icon between active and standby icon.- Specified by:
switchIconin interfaceDavGatewayTrayInterface
-
resetIcon
public void resetIcon()Set the tray icon to inactive (network down)- Specified by:
resetIconin interfaceDavGatewayTrayInterface
-
inactiveIcon
public void inactiveIcon()Set the tray icon to inactive (network down)- Specified by:
inactiveIconin interfaceDavGatewayTrayInterface
-
isActive
public boolean isActive()Check if the current tray status is inactive (network down).- Specified by:
isActivein interfaceDavGatewayTrayInterface- Returns:
- true if inactive
-
displayMessage
Log and display the balloon message according to log level.- Specified by:
displayMessagein interfaceDavGatewayTrayInterface- Parameters:
message- text messagelevel- log level
-
about
public void about()Open about window dialog -
preferences
public void preferences()Open the settings window dialog -
init
public void init()Create the tray icon and register frame listeners.- Specified by:
initin interfaceDavGatewayTrayInterface
-
dispose
public void dispose()Description copied from interface:DavGatewayTrayInterfacedestroy frames- Specified by:
disposein interfaceDavGatewayTrayInterface
-
buildMenu
protected void buildMenu() -
createAndShowGUI
protected void createAndShowGUI()
-