Package com.biglybt.ui.swt.systray
Class SystemTraySWT
- java.lang.Object
-
- com.biglybt.ui.swt.systray.SystemTraySWT
-
- All Implemented Interfaces:
MessageText.MessageTextListener
,UIUpdatable
,UIUpdatableAlways
public class SystemTraySWT extends java.lang.Object implements UIUpdatableAlways, MessageText.MessageTextListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
alertsKeyVal
protected static Core
core
(package private) org.eclipse.swt.widgets.Display
display
private java.lang.String
dlAbbrKeyVal
private java.lang.String
downloadingKeyVal
protected boolean
enableTooltip
protected boolean
enableTooltipNextETA
private java.lang.String
etaKeyVal
protected GlobalManager
gm
(package private) long
interval
private long
lastUnixVal
(package private) org.eclipse.swt.widgets.Menu
menu
private MenuBuildUtils.MenuBuilder
menuBuilder
private ParameterListener
paramToolipETAListener
private ParameterListener
paramTooltipListener
private java.lang.String
seedingKeyVal
private static SystemTraySWT
singleton
(package private) TrayDelegate
tray
private java.lang.String
trayIconImageID
(package private) TrayItemDelegate
trayItem
(package private) UIFunctionsSWT
uiFunctions
private java.lang.String
ulAbbrKeyVal
-
Constructor Summary
Constructors Modifier Constructor Description private
SystemTraySWT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
createDownloadLimitMenu(org.eclipse.swt.widgets.Menu parent)
Creates the global download limit context menu itemprivate void
createUploadLimitMenu(org.eclipse.swt.widgets.Menu parent)
Creates the global upload limit context menu itemvoid
dispose()
private void
ensureDorkBoxPlugin(Core core)
void
fillMenu(org.eclipse.swt.widgets.Menu menu)
static SystemTraySWT
getTray()
java.lang.String
getUpdateUIName()
A name for this UIUpdatable so we can track who's being badstatic boolean
hasTray()
void
localeChanged(java.util.Locale oldLocale, java.util.Locale newLocale)
private void
showMainWindow()
void
updateLanguage()
void
updateUI()
Update your UI!void
updateUI(boolean is_visible)
-
-
-
Field Detail
-
singleton
private static SystemTraySWT singleton
-
menuBuilder
private final MenuBuildUtils.MenuBuilder menuBuilder
-
paramTooltipListener
private final ParameterListener paramTooltipListener
-
paramToolipETAListener
private final ParameterListener paramToolipETAListener
-
trayIconImageID
private final java.lang.String trayIconImageID
-
lastUnixVal
private long lastUnixVal
-
core
protected static Core core
-
display
org.eclipse.swt.widgets.Display display
-
uiFunctions
UIFunctionsSWT uiFunctions
-
tray
TrayDelegate tray
-
trayItem
TrayItemDelegate trayItem
-
menu
org.eclipse.swt.widgets.Menu menu
-
gm
protected GlobalManager gm
-
seedingKeyVal
private java.lang.String seedingKeyVal
-
downloadingKeyVal
private java.lang.String downloadingKeyVal
-
etaKeyVal
private java.lang.String etaKeyVal
-
dlAbbrKeyVal
private java.lang.String dlAbbrKeyVal
-
ulAbbrKeyVal
private java.lang.String ulAbbrKeyVal
-
alertsKeyVal
private java.lang.String alertsKeyVal
-
interval
long interval
-
enableTooltip
protected boolean enableTooltip
-
enableTooltipNextETA
protected boolean enableTooltipNextETA
-
-
Method Detail
-
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 interfaceUIUpdatable
-
updateUI
public void updateUI(boolean is_visible)
- Specified by:
updateUI
in interfaceUIUpdatableAlways
-
showMainWindow
private void showMainWindow()
-
updateLanguage
public void updateLanguage()
-
getUpdateUIName
public java.lang.String getUpdateUIName()
Description copied from interface:UIUpdatable
A name for this UIUpdatable so we can track who's being bad- Specified by:
getUpdateUIName
in interfaceUIUpdatable
- Returns:
- some name
-
localeChanged
public void localeChanged(java.util.Locale oldLocale, java.util.Locale newLocale)
- Specified by:
localeChanged
in interfaceMessageText.MessageTextListener
-
-