org.gudy.azureus2.ui.common
Class UITemplate

java.lang.Object
  extended by org.gudy.azureus2.ui.common.UITemplate
All Implemented Interfaces:
IUserInterface
Direct Known Subclasses:
UITemplateHeadless

public abstract class UITemplate
extends Object
implements IUserInterface

Author:
tobi

Constructor Summary
UITemplate()
          Creates a new instance of UITemplate
 
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
abstract  void openTorrent(String fileName)
          Open a torrent file.
abstract  String[] processArgs(String[] args)
          Process UI specific command line arguments.
 void startUI()
          Start the UI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UITemplate

public UITemplate()
Creates a new instance of UITemplate

Method Detail

init

public void init(boolean first,
                 boolean others)
Description copied from interface: IUserInterface
Initializes the UI. The UI should not be started at this stage.

Specified by:
init in interface IUserInterface
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.

openTorrent

public abstract void openTorrent(String fileName)
Description copied from interface: IUserInterface
Open a torrent file. This is for torrents passed in the command line. Only called for the first UI.

Specified by:
openTorrent in interface IUserInterface

processArgs

public abstract String[] processArgs(String[] args)
Description copied from interface: IUserInterface
Process UI specific command line arguments.

Specified by:
processArgs in interface IUserInterface
Returns:
Unprocessed Args

startUI

public void startUI()
Description copied from interface: IUserInterface
Start the UI. Now the GlobalManager is initialized.

Specified by:
startUI in interface IUserInterface

isStarted

public boolean isStarted()
Description copied from interface: IUserInterface
Determine if the UI is already started You usually don't need to override this from UITemplate

Specified by:
isStarted in interface IUserInterface