talx x1.0.5

talx
Class Email

java.lang.Object
  extended byjava.awt.event.WindowAdapter
      extended bytalx.Email
All Implemented Interfaces:
java.util.EventListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener

public class Email
extends java.awt.event.WindowAdapter

Creates the user interface and transport system.


Field Summary
protected  TALFeature[] features
          List of installed features.
protected  TransportToolkit inbox
           
protected  ReceiverFilter[] inFilters
          List of incoming filters.
 
Constructor Summary
Email(java.lang.String userDir, java.lang.String settingsFile)
          Set up the email system and run the user interface.
 
Method Summary
static java.lang.String getArg(java.lang.String[] args, char arg, java.lang.String def)
          This method is gets the value of an argument from the command line.
static void main(java.lang.String[] args)
          This method starts the email client.
 void windowClosed(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

features

protected TALFeature[] features
List of installed features.


inFilters

protected ReceiverFilter[] inFilters
List of incoming filters.


inbox

protected TransportToolkit inbox
Constructor Detail

Email

public Email(java.lang.String userDir,
             java.lang.String settingsFile)
      throws java.lang.InstantiationException,
             java.io.IOException
Set up the email system and run the user interface. This constructor blocks until the user interface has closed down and all features have been released.

The system initialization consists of the following ordered steps:

The system finilization sequence consists of the following ordered steps:

Parameters:
userDir - the home directory for the current user.
settingsFile - the settings for the application.
Method Detail

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)

getArg

public static java.lang.String getArg(java.lang.String[] args,
                                      char arg,
                                      java.lang.String def)
This method is gets the value of an argument from the command line.

Parameters:
args - The command line that contains input arguments.
arg - The argument that we want the value of.
def - The default value to return if the argument doesn't exist.
Returns:
The value of the given argument.

main

public static void main(java.lang.String[] args)
                 throws java.lang.InstantiationException,
                        java.io.IOException
This method starts the email client. It grabs any command line arguments if there are any. Then it loads the user preferences or opens a login window for the user. This method can terminate with the following exit codes:

Parameters:
args - contains the following options
  • -u user : the root directory name for this user.
Throws:
java.lang.InstantiationException
java.io.IOException

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.