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 interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final String
static final String
static final String
static final String
static final boolean
static final String
static final boolean
static final String
static final boolean
static final String
static final boolean
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addTorrentWithOptions
(boolean force, TorrentOpenOptions torrentOptions) Opens the Torrent Add Options Window, if configured toboolean
addTorrentWithOptions
(TorrentOpenOptions torrentOptions, Map<String, Object> addOptions) void
Bring main window to the frontvoid
bringToFront
(boolean tryTricks) Bring main window to the frontvoid
copyToClipboard
(String text) boolean
dispose
(boolean for_restart) default boolean
dispose
(boolean for_restart, boolean UNUSED) Deprecated.void
void
void
forceNotify
(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) int
void
installPlugin
(String plugin_id, String resource_prefix, UIFunctions.actionListener listener) boolean
isProgramInstalled
(String extension, String name) boolean
void
void
performAction
(int action_id, Object args, UIFunctions.actionListener listener) void
playOrStreamDataSource
(Object ds, String referal, boolean launch_already_checked, boolean complete_only) void
promptUser
(String title, String text, String[] buttons, int defaultOption, String rememberID, String rememberText, boolean bRememberByDefault, int autoCloseInMS, UserPrompterResultListener l) void
void
Change/Refresh the language of the UIvoid
runOnUIThread
(String ui_type, Runnable runnable) void
setStatusText
(int statustype, String key, UIStatusTextClickListener l) void
setStatusText
(String key) void
showCreateTagDialog
(UIFunctions.TagReturner tagReturner) void
showErrorMessage
(String keyPrefix, String details, String[] textParams) void
void
void
tableColumnAddedListeners
(TableColumnImpl tableColumn, Object listeners) boolean
boolean
void
-
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
-
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
-
showErrorMessage
-
showCreateTagDialog
-
tableColumnAddedListeners
-
copyToClipboard
-
showInExplorer
-
showText
-