|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo.login.AbstractListener
com.sptci.echo.login.LoginListener
public abstract class LoginListener
An action listener for implementing the login action for LoginPane.
Sub-classes must implement the login(java.lang.String, java.lang.String) method.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected boolean |
displayError
A flag used to track whether an error message is to be displayed or not. |
| Constructor Summary | |
|---|---|
LoginListener()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
The default action listener implementation. |
protected void |
displayError(String title,
String message)
Display an error message indicating that the login failed. |
abstract Component |
getContent()
Fetch the container component that is to be used to replace the current window contents after a successful login. |
protected LoginPane |
getView()
|
protected abstract boolean |
login(String userName,
String password)
The method that implements the login mechanism. |
protected void |
replaceContent()
Proceed after a successful login. |
| Methods inherited from class com.sptci.echo.login.AbstractListener |
|---|
checkPassword, checkText, checkUserName, checkView, getLoginPane |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean displayError
login(java.lang.String, java.lang.String) method.
The actionPerformed(nextapp.echo.app.event.ActionEvent) method checks this flag and displays a
standard error message or not depending upon the value of this flag.
| Constructor Detail |
|---|
public LoginListener()
| Method Detail |
|---|
public void actionPerformed(ActionEvent event)
login(java.lang.String, java.lang.String),
replaceContent(),
displayErrorprotected void replaceContent()
protected void displayError(String title,
String message)
title - The title to display for the error message.message - The message content to display for the error message.
protected abstract boolean login(String userName,
String password)
userName - The user/login name to log on with.password - The password to log on with.
true if the login succeeds.public abstract Component getContent()
protected LoginPane getView()
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||