com.sptci.system
Class LoginController.LoginListener

java.lang.Object
  extended by com.sptci.system.LoginController.LoginListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener
Enclosing class:
LoginController

 class LoginController.LoginListener
extends Object
implements ActionListener

The action listener that is used to trigger initialisation of a telnet session with the server.


Constructor Summary
LoginController.LoginListener()
           
 
Method Summary
 void actionPerformed(ActionEvent event)
          Implementation of the ActionListener interface.
(package private)  void displayError(String title, String message)
          Display an ErrorPane with the title and message specified.
(package private)  void handleException(AuthenticationFailedException afex)
          Handles an AuthenticationFailedException when user enters invalid credentials.
(package private)  void handleException(IOException ioex)
          Handles an IOException when user tries to log on.
(package private)  void login()
          Login the user to the telnet server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginController.LoginListener

LoginController.LoginListener()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Implementation of the ActionListener interface. Handles login events triggered by Controller.view.

Specified by:
actionPerformed in interface ActionListener
See Also:
LoginPaneController.checkView(), LoginController.checkRoot(), displayError(java.lang.String, java.lang.String), login()

login

void login()
Login the user to the telnet server.


handleException

void handleException(AuthenticationFailedException afex)
Handles an AuthenticationFailedException when user enters invalid credentials.

Parameters:
afex - The exception that was thrown.
See Also:
displayError(java.lang.String, java.lang.String)

handleException

void handleException(IOException ioex)
Handles an IOException when user tries to log on.

Parameters:
ioex - The exception that was thrown.
See Also:
displayError(java.lang.String, java.lang.String)

displayError

void displayError(String title,
                  String message)
Display an ErrorPane with the title and message specified.

Parameters:
title - The key for the localised title to display
message - The key for the localised message to display