Class SystemTraySWT

java.lang.Object
com.biglybt.ui.swt.systray.SystemTraySWT
All Implemented Interfaces:
MessageText.MessageTextListener, UIUpdatable, UIUpdatableAlways

public class SystemTraySWT extends Object implements UIUpdatableAlways, MessageText.MessageTextListener
  • Field Details

    • singleton

      private static SystemTraySWT singleton
    • paramTooltipListener

      private final ParameterListener paramTooltipListener
    • paramToolipETAListener

      private final ParameterListener paramToolipETAListener
    • trayIconImageID

      private final String trayIconImageID
    • lastUnixVal

      private long lastUnixVal
    • core

      protected static Core core
    • display

      org.eclipse.swt.widgets.Display display
    • uiFunctions

      UIFunctionsSWT uiFunctions
    • tray

    • trayItem

    • gm

      protected GlobalManager gm
    • seedingKeyVal

      private String seedingKeyVal
    • downloadingKeyVal

      private String downloadingKeyVal
    • etaKeyVal

      private String etaKeyVal
    • dlAbbrKeyVal

      private String dlAbbrKeyVal
    • ulAbbrKeyVal

      private String ulAbbrKeyVal
    • alertsKeyVal

      private String alertsKeyVal
    • interval

      long interval
    • enableTooltip

      protected boolean enableTooltip
    • enableTooltipNextETA

      protected boolean enableTooltipNextETA
  • Constructor Details

    • SystemTraySWT

      private SystemTraySWT()
  • Method Details

    • hasTray

      public static boolean hasTray()
    • getTray

      public static SystemTraySWT getTray()
    • ensureDorkBoxPlugin

      private void ensureDorkBoxPlugin(Core core)
    • fillMenu

      public void fillMenu(org.eclipse.swt.widgets.Menu menu)
    • createUploadLimitMenu

      private final void createUploadLimitMenu(org.eclipse.swt.widgets.Menu parent)
      Creates the global upload limit context menu item
      Parameters:
      parent - The system tray contextual menu
    • createDownloadLimitMenu

      private final void createDownloadLimitMenu(org.eclipse.swt.widgets.Menu parent)
      Creates the global download limit context menu item
      Parameters:
      parent - The system tray contextual menu
    • dispose

      public void dispose()
    • updateUI

      public void updateUI()
      Description copied from interface: UIUpdatable
      Update your UI!
      Specified by:
      updateUI in interface UIUpdatable
    • updateUI

      public void updateUI(boolean is_visible)
      Specified by:
      updateUI in interface UIUpdatableAlways
    • showMainWindow

      private void showMainWindow()
    • updateLanguage

      public void updateLanguage()
    • getUpdateUIName

      public String getUpdateUIName()
      Description copied from interface: UIUpdatable
      A name for this UIUpdatable so we can track who's being bad
      Specified by:
      getUpdateUIName in interface UIUpdatable
      Returns:
      some name
    • localeChanged

      public void localeChanged(Locale oldLocale, Locale newLocale)
      Specified by:
      localeChanged in interface MessageText.MessageTextListener