com.aelitis.azureus.ui
Interface UIFunctions

All Superinterfaces:
AzureusCoreComponent
All Known Subinterfaces:
UIFunctionsSWT
All Known Implementing Classes:
UIFunctionsImpl

public interface UIFunctions
extends AzureusCoreComponent

Author:
TuxPaper

Nested Class Summary
static interface UIFunctions.actionListener
           
 
Field Summary
static int ACTION_FULL_UPDATE
           
static int ACTION_UPDATE_RESTART_REQUEST
           
static String MAIN_WINDOW_NAME
           
static String MAIN_WINDOW_NAME_PLUS
           
static int STATUSICON_ERROR
           
static int STATUSICON_NONE
           
static int STATUSICON_WARNING
           
static int VIEW_ALLPEERS
           
static int VIEW_CONFIG
           
static int VIEW_CONSOLE
           
static int VIEW_DM_DETAILS
           
static int VIEW_DM_MULTI_OPTIONS
           
static int VIEW_MYSHARES
           
static int VIEW_MYTORRENTS
           
static int VIEW_MYTRACKER
           
static int VIEW_PEERS_STATS
           
static int VIEW_TAG
           
static int VIEW_TAGS_OVERVIEW
           
static int VS_ACTIVE
           
static int VS_MINIMIZED
           
static int VS_MINIMIZED_TO_TRAY
           
static int VS_TRAY_ONLY
           
 
Method Summary
 boolean addTorrentWithOptions(boolean force, TorrentOpenOptions torrentOptions)
          Opens the Torrent Add Options Window, if configured to
 void bringToFront()
          Bring main window to the front
 void bringToFront(boolean tryTricks)
          Bring main window to the front
 boolean dispose(boolean for_restart, boolean close_already_in_progress)
          Request the UI be shut down.
 void doSearch(String searchText)
           
 void doSearch(String searchText, boolean toSubscribe)
           
 void forceNotify(int iconID, String title, String text, String details, Object[] relatedObjects, int timeoutSecs)
          Might launch the old-school Mr Slidey
 MultipleDocumentInterface getMDI()
          Retrieve the MDI (Sidebar, TabbedMDI)
 UIUpdater getUIUpdater()
          Retrieves the class that handles periodically updating the UI
 UIFunctionsUserPrompter getUserPrompter(String title, String text, String[] buttons, int defaultOption)
           
 int getVisibilityState()
           
 void installPlugin(String plugin_id, String resource_prefix, UIFunctions.actionListener listener)
           
 boolean isProgramInstalled(String extension, String name)
           
 void openRemotePairingWindow()
           
 void openView(int viewID, Object datasource)
           
 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 refreshIconBar()
           
 void refreshLanguage()
          Change/Refresh the language of the UI
 void runOnUIThread(int ui_type, Runnable runnable)
           
 void setStatusText(int statustype, String string, UIStatusTextClickListener l)
           
 void setStatusText(String string)
           
 void showErrorMessage(String keyPrefix, String details, String[] textParams)
           
 boolean viewURL(String url, String target, double wPct, double hPct, boolean allowResize, boolean isModal)
           
 boolean viewURL(String url, String target, int w, int h, boolean allowResize, boolean isModal)
           
 void viewURL(String url, String target, String sourceRef)
           
 

Field Detail

MAIN_WINDOW_NAME

static final String MAIN_WINDOW_NAME
See Also:
Constant Field Values

MAIN_WINDOW_NAME_PLUS

static final String MAIN_WINDOW_NAME_PLUS
See Also:
Constant Field Values

STATUSICON_NONE

static final int STATUSICON_NONE
See Also:
Constant Field Values

STATUSICON_WARNING

static final int STATUSICON_WARNING
See Also:
Constant Field Values

STATUSICON_ERROR

static final int STATUSICON_ERROR
See Also:
Constant Field Values

VIEW_CONSOLE

static final int VIEW_CONSOLE
See Also:
Constant Field Values

VIEW_CONFIG

static final int VIEW_CONFIG
See Also:
Constant Field Values

VIEW_DM_DETAILS

static final int VIEW_DM_DETAILS
See Also:
Constant Field Values

VIEW_DM_MULTI_OPTIONS

static final int VIEW_DM_MULTI_OPTIONS
See Also:
Constant Field Values

VIEW_MYSHARES

static final int VIEW_MYSHARES
See Also:
Constant Field Values

VIEW_MYTORRENTS

static final int VIEW_MYTORRENTS
See Also:
Constant Field Values

VIEW_MYTRACKER

static final int VIEW_MYTRACKER
See Also:
Constant Field Values

VIEW_ALLPEERS

static final int VIEW_ALLPEERS
See Also:
Constant Field Values

VIEW_PEERS_STATS

static final int VIEW_PEERS_STATS
See Also:
Constant Field Values

VIEW_TAG

static final int VIEW_TAG
See Also:
Constant Field Values

VIEW_TAGS_OVERVIEW

static final int VIEW_TAGS_OVERVIEW
See Also:
Constant Field Values

ACTION_FULL_UPDATE

static final int ACTION_FULL_UPDATE
See Also:
Constant Field Values

ACTION_UPDATE_RESTART_REQUEST

static final int ACTION_UPDATE_RESTART_REQUEST
See Also:
Constant Field Values

VS_TRAY_ONLY

static final int VS_TRAY_ONLY
See Also:
Constant Field Values

VS_MINIMIZED_TO_TRAY

static final int VS_MINIMIZED_TO_TRAY
See Also:
Constant Field Values

VS_MINIMIZED

static final int VS_MINIMIZED
See Also:
Constant Field Values

VS_ACTIVE

static final int VS_ACTIVE
See Also:
Constant Field Values
Method Detail

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

void setStatusText(String string)
Parameters:
string -

setStatusText

void setStatusText(int statustype,
                   String string,
                   UIStatusTextClickListener l)

dispose

boolean dispose(boolean for_restart,
                boolean close_already_in_progress)
Request the UI be shut down.

Returns:
true - request granted, UI is being shut down false - request denied (example: password entry failed)

viewURL

boolean viewURL(String url,
                String target,
                int w,
                int h,
                boolean allowResize,
                boolean isModal)

viewURL

boolean viewURL(String url,
                String target,
                double wPct,
                double hPct,
                boolean allowResize,
                boolean isModal)

viewURL

void viewURL(String url,
             String target,
             String sourceRef)

getUserPrompter

UIFunctionsUserPrompter getUserPrompter(String title,
                                        String text,
                                        String[] buttons,
                                        int defaultOption)

promptUser

void promptUser(String title,
                String text,
                String[] buttons,
                int defaultOption,
                String rememberID,
                String rememberText,
                boolean bRememberByDefault,
                int autoCloseInMS,
                UserPrompterResultListener l)

getUIUpdater

UIUpdater getUIUpdater()
Retrieves the class that handles periodically updating the UI

Returns:
Since:
3.1.1.1

openView

void openView(int viewID,
              Object datasource)
Parameters:
viewID -
data -
Since:
3.1.1.1

doSearch

void doSearch(String searchText)

doSearch

void doSearch(String searchText,
              boolean toSubscribe)

installPlugin

void installPlugin(String plugin_id,
                   String resource_prefix,
                   UIFunctions.actionListener listener)

performAction

void performAction(int action_id,
                   Object args,
                   UIFunctions.actionListener listener)
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

void runOnUIThread(int ui_type,
                   Runnable runnable)

isProgramInstalled

boolean isProgramInstalled(String extension,
                           String name)

openRemotePairingWindow

void openRemotePairingWindow()

playOrStreamDataSource

void playOrStreamDataSource(Object ds,
                            String referal,
                            boolean launch_already_checked,
                            boolean complete_only)

addTorrentWithOptions

boolean addTorrentWithOptions(boolean force,
                              TorrentOpenOptions torrentOptions)
Opens the Torrent Add Options Window, if configured to

Parameters:
force - Override configuration, show it!
Returns:
true if torrent was added

showErrorMessage

void showErrorMessage(String keyPrefix,
                      String details,
                      String[] textParams)