Package com.biglybt.ui
Interface UIFunctions
- All Superinterfaces:
CoreComponent
- All Known Subinterfaces:
UIFunctionsSWT
- All Known Implementing Classes:
MainWindowDelayStub.UIFunctionsSWTImpl,UIFunctionsImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final booleanstatic final Stringstatic final booleanstatic final Stringstatic final booleanstatic final Stringstatic final booleanstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddTorrentWithOptions(boolean force, TorrentOpenOptions torrentOptions) Opens the Torrent Add Options Window, if configured tobooleanaddTorrentWithOptions(TorrentOpenOptions torrentOptions, Map<String, Object> addOptions) voidBring main window to the frontvoidbringToFront(boolean tryTricks) Bring main window to the frontvoidcopyToClipboard(String text) booleandispose(boolean for_restart) default booleandispose(boolean for_restart, boolean UNUSED) Deprecated.voidvoidvoidforceNotify(int iconID, String title, String text, String details, Object[] relatedObjects, int timeoutSecs) Might launch the old-school Mr SlideygetMDI()Retrieve the MDI (Sidebar, TabbedMDI)Retrieves the class that handles periodically updating the UIgetUserPrompter(String title, String text, String[] buttons, int defaultOption) intvoidinstallPlugin(String plugin_id, String resource_prefix, UIFunctions.actionListener listener) booleanisProgramInstalled(String extension, String name) booleanvoidvoidperformAction(int action_id, Object args, UIFunctions.actionListener listener) voidplayOrStreamDataSource(Object ds, String referal, boolean launch_already_checked, boolean complete_only) voidpopStatusText(Object pushed, int reason, String message) voidpromptUser(String title, String text, String[] buttons, int defaultOption, String rememberID, String rememberText, boolean bRememberByDefault, int autoCloseInMS, UserPrompterResultListener l) pushStatusText(String message) voidvoidChange/Refresh the language of the UIvoidrunOnUIThread(String ui_type, Runnable runnable) voidsetStatusText(int statustype, String key, UIStatusTextClickListener l) voidsetStatusText(String key) voidshowCreateTagDialog(UIFunctions.TagReturner tagReturner) voidshowErrorMessage(String keyPrefix, String details, String[] textParams) voidvoidvoidtableColumnAddedListeners(TableColumnImpl tableColumn, Object listeners) booleanbooleanvoid
-
Field Details
-
MAIN_WINDOW_NAME
-
STATUSICON_NONE
static final int STATUSICON_NONE- See Also:
-
STATUSICON_WARNING
static final int STATUSICON_WARNING- See Also:
-
STATUSICON_ERROR
static final int STATUSICON_ERROR- See Also:
-
ACTION_FULL_UPDATE
static final int ACTION_FULL_UPDATE- See Also:
-
ACTION_UPDATE_RESTART_REQUEST
static final int ACTION_UPDATE_RESTART_REQUEST- See Also:
-
VS_TRAY_ONLY
static final int VS_TRAY_ONLY- See Also:
-
VS_MINIMIZED_TO_TRAY
static final int VS_MINIMIZED_TO_TRAY- See Also:
-
VS_MINIMIZED
static final int VS_MINIMIZED- See Also:
-
VS_ACTIVE
static final int VS_ACTIVE- See Also:
-
OTO_DEFAULT_TO_STOPPED
- See Also:
-
OTO_DEFAULT_TO_STOPPED_DEFAULT
static final boolean OTO_DEFAULT_TO_STOPPED_DEFAULT- See Also:
-
OTO_FORCE_OPEN
- See Also:
-
OTO_FORCE_OPEN_DEFAULT
static final boolean OTO_FORCE_OPEN_DEFAULT- See Also:
-
OTO_SILENT
- See Also:
-
OTO_SILENT_DEFAULT
static final boolean OTO_SILENT_DEFAULT- See Also:
-
OTO_HIDE_ERRORS
- See Also:
-
OTO_HIDE_ERRORS_DEFAULT
static final boolean OTO_HIDE_ERRORS_DEFAULT- See Also:
-
OTO_DEFAULT_SAVE_PATH
- See Also:
-
OTO_DEFAULT_SAVE_PATH_DEFAULT
-
-
Method Details
-
getUIType
String getUIType() -
bringToFront
void bringToFront()Bring main window to the front -
bringToFront
void bringToFront(boolean tryTricks) Bring main window to the front- Parameters:
tryTricks- : try tricks to force it to the top- Since:
- 3.0.1.7
-
getVisibilityState
int getVisibilityState() -
refreshLanguage
void refreshLanguage()Change/Refresh the language of the UI -
refreshIconBar
void refreshIconBar() -
setStatusText
- Parameters:
key-
-
setStatusText
-
pushStatusText
-
popStatusText
-
dispose
default boolean dispose(boolean for_restart, boolean UNUSED) Deprecated.Request the UI be shut down.- Returns:
- true - request granted, UI is being shut down false - request denied (example: password entry failed)
-
dispose
boolean dispose(boolean for_restart) -
viewURL
-
viewURL
-
viewURL
-
getUserPrompter
UIFunctionsUserPrompter getUserPrompter(String title, String text, String[] buttons, int defaultOption) -
promptUser
-
getUIUpdater
UIUpdater getUIUpdater()Retrieves the class that handles periodically updating the UI- Returns:
- Since:
- 3.1.1.1
-
doSearch
-
doSearch
-
installPlugin
-
performAction
- Parameters:
action_id-args-listener-
-
getMDI
MultipleDocumentInterface getMDI()Retrieve the MDI (Sidebar, TabbedMDI)- Returns:
-
forceNotify
void forceNotify(int iconID, String title, String text, String details, Object[] relatedObjects, int timeoutSecs) Might launch the old-school Mr Slidey -
runOnUIThread
-
isUIThread
boolean isUIThread() -
isProgramInstalled
-
openRemotePairingWindow
void openRemotePairingWindow() -
playOrStreamDataSource
-
addTorrentWithOptions
Opens the Torrent Add Options Window, if configured to- Parameters:
force- Override configuration, show it!- Returns:
- true if torrent was added
-
addTorrentWithOptions
-
getTorrentOptions
List<TorrentOpenOptions> getTorrentOptions() -
showErrorMessage
-
showCreateTagDialog
-
tableColumnAddedListeners
-
copyToClipboard
-
showInExplorer
-
showText
-