org.gudy.azureus2.ui.common
Interface IUserInterface

All Known Implementing Classes:
UI, UI, UITemplate, UITemplateHeadless

public interface IUserInterface

Author:
Tobias Minich

Method Summary
 void init(boolean first, boolean others)
          Initializes the UI.
 boolean isStarted()
          Determine if the UI is already started You usually don't need to override this from UITemplate
 void openTorrent(java.lang.String fileName)
          Open a torrent file.
 java.lang.String[] processArgs(java.lang.String[] args)
          Process UI specific command line arguments.
 void startUI()
          Start the UI.
 

Method Detail

init

void init(boolean first,
          boolean others)
Initializes the UI. The UI should not be started at this stage.

Parameters:
first - This UI Instance is the first on the command line and should take control of singular stuff (LocaleUtil and torrents added via Command Line).
others - Indicates wether other UIs run along.

processArgs

java.lang.String[] processArgs(java.lang.String[] args)
Process UI specific command line arguments.

Returns:
Unprocessed Args

startUI

void startUI()
Start the UI. Now the GlobalManager is initialized.


isStarted

boolean isStarted()
Determine if the UI is already started You usually don't need to override this from UITemplate


openTorrent

void openTorrent(java.lang.String fileName)
Open a torrent file. This is for torrents passed in the command line. Only called for the first UI.