Class MainWindowDelayStub.UIFunctionsSWTImpl
java.lang.Object
com.biglybt.ui.swt.shells.main.MainWindowDelayStub.UIFunctionsSWTImpl
- All Implemented Interfaces:
CoreComponent, UIFunctionsSWT, UIFunctions
- Enclosing class:
MainWindowDelayStub
-
Nested Class Summary
Nested classes/interfaces inherited from interface UIFunctions
UIFunctions.actionListener, UIFunctions.TagReturner -
Field Summary
Fields inherited from interface UIFunctions
ACTION_FULL_UPDATE, ACTION_UPDATE_RESTART_REQUEST, MAIN_WINDOW_NAME, OTO_DEFAULT_SAVE_PATH, OTO_DEFAULT_SAVE_PATH_DEFAULT, OTO_DEFAULT_TO_STOPPED, OTO_DEFAULT_TO_STOPPED_DEFAULT, OTO_FORCE_OPEN, OTO_FORCE_OPEN_DEFAULT, OTO_HIDE_ERRORS, OTO_HIDE_ERRORS_DEFAULT, OTO_SILENT, OTO_SILENT_DEFAULT, STATUSICON_ERROR, STATUSICON_NONE, STATUSICON_WARNING, VS_ACTIVE, VS_MINIMIZED, VS_MINIMIZED_TO_TRAY, VS_TRAY_ONLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddTorrentWithOptions(boolean force, TorrentOpenOptions torrentOptions) Opens the Torrent Add Options Window, if configured tobooleanaddTorrentWithOptions(TorrentOpenOptions torrentOptions, Map<String, Object> options) voidBring main window to the frontvoidbringToFront(boolean tryTricks) Bring main window to the frontvoidvoidvoidvoidcopyToClipboard(String text) createMainMenu(org.eclipse.swt.widgets.Shell shell) Creates the main application menu and attach it to the givenShell; this is only used for OSX so that we can attach the global menu to popup dialogs which is the expected behavior on OSX.booleandispose(boolean for_restart) voidvoidvoidforceNotify(int iconID, String title, String text, String details, Object[] relatedObjects, int timeoutSecs) Might launch the old-school Mr Slideybooleanorg.eclipse.swt.widgets.ShellgetMDI()Retrieve the MDI (Sidebar, TabbedMDI)Retrieves the class that handles periodically updating the UIgetUserPrompter(String title, String text, String[] buttons, int defaultOption) intbooleanvoidinstallPlugin(String plugin_id, String resource_prefix, UIFunctions.actionListener listener) booleanbooleanisProgramInstalled(String extension, String name) booleanvoidopenPluginView(UISWTViewBuilderCore builder, boolean bSetFocus) voidvoidopenTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell, String sPathOfFilesToOpen, String[] sFilesToOpen, boolean defaultToStopped, boolean forceOpen) voidopenTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell, String sPathOfFilesToOpen, String[] sFilesToOpen, Map<String, Object> options) voidvoidperformAction(int action_id, Object args, UIFunctions.actionListener listener) voidplayOrStreamDataSource(Object ds, String referal, boolean launch_already_checked, boolean complete_only) voidpopStatusText(Object o, int reason, String message) voidvoidpromptUser(String title, String text, String[] buttons, int defaultOption, String rememberID, String rememberText, boolean bRememberByDefault, int autoCloseInMS, UserPrompterResultListener l) pushStatusText(String key) voidvoidChange/Refresh the language of the UIvoidvoidrunOnUIThread(String ui_type, Runnable runnable) voidsetHideAll(boolean hidden) voidsetStatusText(int statustype, String key, UIStatusTextClickListener l) voidsetStatusText(String key) org.eclipse.swt.widgets.ShellvoidshowCreateTagDialog(UIFunctions.TagReturner tagReturner) voidshowErrorMessage(String keyPrefix, String details, String[] textParams) voidvoidvoidvoidtableColumnAddedListeners(TableColumnImpl tableColumn, Object listeners) booleanbooleanvoidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UIFunctions
dispose
-
Constructor Details
-
UIFunctionsSWTImpl
private UIFunctionsSWTImpl()
-
-
Method Details
-
getUIType
- Specified by:
getUITypein interfaceUIFunctions
-
bringToFront
public void bringToFront()Description copied from interface:UIFunctionsBring main window to the front- Specified by:
bringToFrontin interfaceUIFunctions
-
bringToFront
public void bringToFront(boolean tryTricks) Description copied from interface:UIFunctionsBring main window to the front- Specified by:
bringToFrontin interfaceUIFunctions- Parameters:
tryTricks- : try tricks to force it to the top
-
getVisibilityState
public int getVisibilityState()- Specified by:
getVisibilityStatein interfaceUIFunctions
-
runOnUIThread
- Specified by:
runOnUIThreadin interfaceUIFunctions
-
isUIThread
public boolean isUIThread()- Specified by:
isUIThreadin interfaceUIFunctions
-
refreshLanguage
public void refreshLanguage()Description copied from interface:UIFunctionsChange/Refresh the language of the UI- Specified by:
refreshLanguagein interfaceUIFunctions
-
refreshIconBar
public void refreshIconBar()- Specified by:
refreshIconBarin interfaceUIFunctions
-
setStatusText
- Specified by:
setStatusTextin interfaceUIFunctions- Parameters:
key-
-
setStatusText
- Specified by:
setStatusTextin interfaceUIFunctions
-
pushStatusText
- Specified by:
pushStatusTextin interfaceUIFunctions
-
popStatusText
- Specified by:
popStatusTextin interfaceUIFunctions
-
dispose
public boolean dispose(boolean for_restart) - Specified by:
disposein interfaceUIFunctions
-
viewURL
public boolean viewURL(String url, String target, int w, int h, boolean allowResize, boolean isModal) - Specified by:
viewURLin interfaceUIFunctions
-
viewURL
public boolean viewURL(String url, String target, double wPct, double hPct, boolean allowResize, boolean isModal) - Specified by:
viewURLin interfaceUIFunctions
-
viewURL
- Specified by:
viewURLin interfaceUIFunctions
-
getUserPrompter
public UIFunctionsUserPrompter getUserPrompter(String title, String text, String[] buttons, int defaultOption) - Specified by:
getUserPrompterin interfaceUIFunctions
-
promptUser
public void promptUser(String title, String text, String[] buttons, int defaultOption, String rememberID, String rememberText, boolean bRememberByDefault, int autoCloseInMS, UserPrompterResultListener l) - Specified by:
promptUserin interfaceUIFunctions
-
getUIUpdater
Description copied from interface:UIFunctionsRetrieves the class that handles periodically updating the UI- Specified by:
getUIUpdaterin interfaceUIFunctions- Returns:
-
doSearch
- Specified by:
doSearchin interfaceUIFunctions
-
doSearch
- Specified by:
doSearchin interfaceUIFunctions
-
installPlugin
public void installPlugin(String plugin_id, String resource_prefix, UIFunctions.actionListener listener) - Specified by:
installPluginin interfaceUIFunctions
-
performAction
- Specified by:
performActionin interfaceUIFunctions- Parameters:
action_id-args-listener-
-
getMDI
Description copied from interface:UIFunctionsRetrieve the MDI (Sidebar, TabbedMDI)- Specified by:
getMDIin interfaceUIFunctions- Returns:
-
forceNotify
public void forceNotify(int iconID, String title, String text, String details, Object[] relatedObjects, int timeoutSecs) Description copied from interface:UIFunctionsMight launch the old-school Mr Slidey- Specified by:
forceNotifyin interfaceUIFunctions
-
getMainShell
public org.eclipse.swt.widgets.Shell getMainShell()- Specified by:
getMainShellin interfaceUIFunctionsSWT
-
closeDownloadBars
public void closeDownloadBars()- Specified by:
closeDownloadBarsin interfaceUIFunctionsSWT
-
isGlobalTransferBarShown
public boolean isGlobalTransferBarShown()- Specified by:
isGlobalTransferBarShownin interfaceUIFunctionsSWT
-
showGlobalTransferBar
public void showGlobalTransferBar()- Specified by:
showGlobalTransferBarin interfaceUIFunctionsSWT
-
closeGlobalTransferBar
public void closeGlobalTransferBar()- Specified by:
closeGlobalTransferBarin interfaceUIFunctionsSWT
-
getPluginViews
- Specified by:
getPluginViewsin interfaceUIFunctionsSWT- Returns:
-
openPluginView
- Specified by:
openPluginViewin interfaceUIFunctionsSWT
-
getUISWTInstance
- Specified by:
getUISWTInstancein interfaceUIFunctionsSWT
-
refreshTorrentMenu
public void refreshTorrentMenu()- Specified by:
refreshTorrentMenuin interfaceUIFunctionsSWT
-
getMainStatusBar
- Specified by:
getMainStatusBarin interfaceUIFunctionsSWT
-
createMainMenu
Description copied from interface:UIFunctionsSWTCreates the main application menu and attach it to the givenShell; this is only used for OSX so that we can attach the global menu to popup dialogs which is the expected behavior on OSX. Windows and Linux do not require this since they do not have a global menu and because their main menu is already attached to the main application window.- Specified by:
createMainMenuin interfaceUIFunctionsSWT- Parameters:
shell-- Returns:
-
getMainWindow
- Specified by:
getMainWindowin interfaceUIFunctionsSWT
-
closeAllDetails
public void closeAllDetails()- Specified by:
closeAllDetailsin interfaceUIFunctionsSWT
-
hasDetailViews
public boolean hasDetailViews()- Specified by:
hasDetailViewsin interfaceUIFunctionsSWT- Returns:
-
showCoreWaitDlg
public org.eclipse.swt.widgets.Shell showCoreWaitDlg()- Specified by:
showCoreWaitDlgin interfaceUIFunctionsSWT
-
isProgramInstalled
- Specified by:
isProgramInstalledin interfaceUIFunctions
-
getMDISWT
- Specified by:
getMDISWTin interfaceUIFunctionsSWT
-
promptForSearch
public void promptForSearch()- Specified by:
promptForSearchin interfaceUIFunctionsSWT
-
getToolBarManager
- Specified by:
getToolBarManagerin interfaceUIFunctionsSWT
-
openRemotePairingWindow
public void openRemotePairingWindow()- Specified by:
openRemotePairingWindowin interfaceUIFunctions
-
playOrStreamDataSource
public void playOrStreamDataSource(Object ds, String referal, boolean launch_already_checked, boolean complete_only) - Specified by:
playOrStreamDataSourcein interfaceUIFunctions
-
setHideAll
public void setHideAll(boolean hidden) - Specified by:
setHideAllin interfaceUIFunctionsSWT
-
getHideAll
public boolean getHideAll()- Specified by:
getHideAllin interfaceUIFunctionsSWT
-
showErrorMessage
- Specified by:
showErrorMessagein interfaceUIFunctions
-
showCreateTagDialog
- Specified by:
showCreateTagDialogin interfaceUIFunctions
-
addTorrentWithOptions
Description copied from interface:UIFunctionsOpens the Torrent Add Options Window, if configured to- Specified by:
addTorrentWithOptionsin interfaceUIFunctions- Parameters:
force- Override configuration, show it!- Returns:
- true if torrent was added
-
addTorrentWithOptions
- Specified by:
addTorrentWithOptionsin interfaceUIFunctions
-
openTorrentOpenOptions
public void openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell, String sPathOfFilesToOpen, String[] sFilesToOpen, boolean defaultToStopped, boolean forceOpen) - Specified by:
openTorrentOpenOptionsin interfaceUIFunctionsSWT
-
openTorrentOpenOptions
public void openTorrentOpenOptions(org.eclipse.swt.widgets.Shell shell, String sPathOfFilesToOpen, String[] sFilesToOpen, Map<String, Object> options) - Specified by:
openTorrentOpenOptionsin interfaceUIFunctionsSWT- Parameters:
shell-sPathOfFilesToOpen-sFilesToOpen-options- See UIFunctions constants
-
getTorrentOptions
- Specified by:
getTorrentOptionsin interfaceUIFunctions
-
openTorrentWindow
public void openTorrentWindow()- Specified by:
openTorrentWindowin interfaceUIFunctionsSWT
-
tableColumnAddedListeners
- Specified by:
tableColumnAddedListenersin interfaceUIFunctions
-
copyToClipboard
- Specified by:
copyToClipboardin interfaceUIFunctions
-
showInExplorer
- Specified by:
showInExplorerin interfaceUIFunctions
-
showText
- Specified by:
showTextin interfaceUIFunctions
-