Class FrameGatewayTray

java.lang.Object
davmail.ui.tray.FrameGatewayTray
All Implemented Interfaces:
DavGatewayTrayInterface
Direct Known Subclasses:
OSXFrameGatewayTray

public class FrameGatewayTray extends Object implements DavGatewayTrayInterface
Failover GUI for Java 1.5 without SWT
  • Constructor Details

    • FrameGatewayTray

      protected FrameGatewayTray()
  • Method Details

    • getFrameIcons

      public List<Image> getFrameIcons()
      Return AWT Image icon for the frame title.
      Specified by:
      getFrameIcons in interface DavGatewayTrayInterface
      Returns:
      frame icon
    • switchIcon

      public void switchIcon()
      Switch tray icon between active and standby icon.
      Specified by:
      switchIcon in interface DavGatewayTrayInterface
    • resetIcon

      public void resetIcon()
      Set the tray icon to inactive (network down)
      Specified by:
      resetIcon in interface DavGatewayTrayInterface
    • inactiveIcon

      public void inactiveIcon()
      Set the tray icon to inactive (network down)
      Specified by:
      inactiveIcon in interface DavGatewayTrayInterface
    • isActive

      public boolean isActive()
      Check if the current tray status is inactive (network down).
      Specified by:
      isActive in interface DavGatewayTrayInterface
      Returns:
      true if inactive
    • displayMessage

      public void displayMessage(String message, org.apache.log4j.Level level)
      Log and display the balloon message according to log level.
      Specified by:
      displayMessage in interface DavGatewayTrayInterface
      Parameters:
      message - text message
      level - 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:
      init in interface DavGatewayTrayInterface
    • dispose

      public void dispose()
      Description copied from interface: DavGatewayTrayInterface
      destroy frames
      Specified by:
      dispose in interface DavGatewayTrayInterface
    • buildMenu

      protected void buildMenu()
    • createAndShowGUI

      protected void createAndShowGUI()