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(String fileName)
          Open a torrent file.
 String[] processArgs(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

String[] processArgs(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(String fileName)
Open a torrent file. This is for torrents passed in the command line. Only called for the first UI.