Interface UIFunctions

All Superinterfaces:
CoreComponent
All Known Subinterfaces:
UIFunctionsSWT
All Known Implementing Classes:
MainWindowDelayStub.UIFunctionsSWTImpl, UIFunctionsImpl

public interface UIFunctions extends CoreComponent
  • Field Details

  • 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

      void setStatusText(String key)
      Parameters:
      key -
    • setStatusText

      void setStatusText(int statustype, String key, UIStatusTextClickListener l)
    • pushStatusText

      Object pushStatusText(String message)
    • popStatusText

      void popStatusText(Object pushed, int reason, String message)
    • 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

      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
    • 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

      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(String ui_type, Runnable runnable)
    • isUIThread

      boolean isUIThread()
    • 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
    • addTorrentWithOptions

      boolean addTorrentWithOptions(TorrentOpenOptions torrentOptions, Map<String,Object> addOptions)
    • showErrorMessage

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

      void showCreateTagDialog(UIFunctions.TagReturner tagReturner)
    • tableColumnAddedListeners

      void tableColumnAddedListeners(TableColumnImpl tableColumn, Object listeners)
    • copyToClipboard

      void copyToClipboard(String text)
    • showInExplorer

      void showInExplorer(File f)
    • showText

      void showText(String title, String content)