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 Object
implements UIUpdatableAlways, MessageText.MessageTextListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
protected static Core
(package private) org.eclipse.swt.widgets.Display
private String
private String
protected boolean
protected boolean
private String
protected GlobalManager
(package private) long
private long
(package private) org.eclipse.swt.widgets.Menu
private final MenuBuildUtils.MenuBuilder
private final ParameterListener
private final ParameterListener
private String
private static SystemTraySWT
(package private) TrayDelegate
private final String
(package private) TrayItemDelegate
(package private) UIFunctionsSWT
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate final void
createDownloadLimitMenu
(org.eclipse.swt.widgets.Menu parent) Creates the global download limit context menu itemprivate final void
createUploadLimitMenu
(org.eclipse.swt.widgets.Menu parent) Creates the global upload limit context menu itemvoid
dispose()
void
fillMenu
(org.eclipse.swt.widgets.Menu menu) static SystemTraySWT
getTray()
A name for this UIUpdatable so we can track who's being badstatic boolean
hasTray()
void
localeChanged
(Locale oldLocale, Locale newLocale) private void
void
void
updateUI()
Update your UI!void
updateUI
(boolean is_visible)
-
Field Details
-
singleton
-
paramTooltipListener
-
paramToolipETAListener
-
trayIconImageID
-
lastUnixVal
private long lastUnixVal -
core
-
display
org.eclipse.swt.widgets.Display display -
uiFunctions
UIFunctionsSWT uiFunctions -
tray
TrayDelegate tray -
trayItem
TrayItemDelegate trayItem -
gm
-
seedingKeyVal
-
downloadingKeyVal
-
etaKeyVal
-
dlAbbrKeyVal
-
ulAbbrKeyVal
-
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
-
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
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
- Specified by:
localeChanged
in interfaceMessageText.MessageTextListener
-