com.sptci.system
Class LoginController
java.lang.Object
com.sptci.echo2.Controller<LoginPane>
com.sptci.echo2.LoginPaneController
com.sptci.system.LoginController
- All Implemented Interfaces:
- Serializable
class LoginController
- extends LoginPaneController
The controller for the LoginView. Handles all actions/events
triggered by the view.
Copyright 2007 Sans Pareil Technologies, Inc.
- Version:
- $Id: LoginController.java 3252 2007-05-12 19:12:31Z rakesh $
- Author:
- Rakesh Vidyadharan 2007-04-21
|
Nested Class Summary |
(package private) class |
LoginController.LoginListener
The action listener that is used to trigger initialisation of a
telnet session with the server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoginController
LoginController()
- Create a new instance of the controller for
LoginView
getListener
public ActionListener getListener(String component)
- Implementation of the mandatory method defined in
LoginPaneController. Returns the appropriate
ActionListener depending upon the component from which
the ActionEvent was triggered.
- Specified by:
getListener in class LoginPaneController
- Parameters:
component - The name of the component for which the ActionListener
is to be returned.
- Returns:
- The appropriate ActionListener instance.
checkRoot
public boolean checkRoot()
- Check the
LoginPane.userName field to ensure
that the value specified is not root.
- Returns:
- Returns
true if the user is not root.