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 Stringprotected static Core(package private) org.eclipse.swt.widgets.Displayprivate Stringprivate Stringprotected booleanprotected booleanprivate Stringprotected GlobalManager(package private) longprivate long(package private) org.eclipse.swt.widgets.Menuprivate final MenuBuildUtils.MenuBuilderprivate final ParameterListenerprivate final ParameterListenerprivate Stringprivate static SystemTraySWT(package private) TrayDelegateprivate final String(package private) TrayItemDelegate(package private) UIFunctionsSWTprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate final voidcreateDownloadLimitMenu(org.eclipse.swt.widgets.Menu parent) Creates the global download limit context menu itemprivate final voidcreateUploadLimitMenu(org.eclipse.swt.widgets.Menu parent) Creates the global upload limit context menu itemvoiddispose()voidfillMenu(org.eclipse.swt.widgets.Menu menu) static SystemTraySWTgetTray()A name for this UIUpdatable so we can track who's being badstatic booleanhasTray()voidlocaleChanged(Locale oldLocale, Locale newLocale) private voidvoidvoidupdateUI()Update your UI!voidupdateUI(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:UIUpdatableUpdate your UI!- Specified by:
updateUIin interfaceUIUpdatable
-
updateUI
public void updateUI(boolean is_visible) - Specified by:
updateUIin interfaceUIUpdatableAlways
-
showMainWindow
private void showMainWindow() -
updateLanguage
public void updateLanguage() -
getUpdateUIName
Description copied from interface:UIUpdatableA name for this UIUpdatable so we can track who's being bad- Specified by:
getUpdateUINamein interfaceUIUpdatable- Returns:
- some name
-
localeChanged
- Specified by:
localeChangedin interfaceMessageText.MessageTextListener
-