|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.login.AbstractListener
public abstract class AbstractListener
An abstract super-class for all action listeners for the LoginPane
component. Contains error checking methods and other utility methods for
concrete sub-classes.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Constructor Summary | |
|---|---|
AbstractListener()
|
|
| Method Summary | |
|---|---|
protected boolean |
checkPassword(LoginPane view)
Check the LoginPane.password field to ensure that a value has
been input into the field. |
protected boolean |
checkText(String text)
Check the specified string to ensure that it is not null
and not empty. |
protected boolean |
checkUserName(LoginPane view)
Check the LoginPane.userName field to ensure that a value has
been input into the field. |
protected boolean |
checkView(LoginPane view)
Check the LoginPane components to ensure that appropriate values
have been entered. |
protected LoginPane |
getLoginPane(ActionEvent event)
Return the LoginPane component from which the action was
triggered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nextapp.echo2.app.event.ActionListener |
|---|
actionPerformed |
| Constructor Detail |
|---|
public AbstractListener()
| Method Detail |
|---|
protected LoginPane getLoginPane(ActionEvent event)
LoginPane component from which the action was
triggered.
event - The action that was triggerd.
Application.getParentView(nextapp.echo2.app.Component)protected boolean checkView(LoginPane view)
LoginPane components to ensure that appropriate values
have been entered. The default implementation ensures that non-empty
values have been entered into the LoginPane.userName and
LoginPane.password fields.
view - The login pane instance that is to be checked.
true if the tests succeed.checkUserName(com.sptci.echo2.login.LoginPane),
checkPassword(com.sptci.echo2.login.LoginPane)protected boolean checkUserName(LoginPane view)
LoginPane.userName field to ensure that a value has
been input into the field.
view - The login pane instance that is to be checked.
true if the value of the field is
not null or empty.checkText(java.lang.String)protected boolean checkPassword(LoginPane view)
LoginPane.password field to ensure that a value has
been input into the field.
view - The login pane instance that is to be checked.
true if the value of the field is
not null or empty.checkText(java.lang.String)protected boolean checkText(String text)
null
and not empty. Strings that are composed entirely of spaces are also
treated as empty.
text - The text that is to be checked.
true if the string specified is not null
or empty.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||