java.lang.Object
samples.helloworld3.LoginModel
- public class LoginModel
- extends java.lang.Object
LoginController uses one of these to
supply data for its Views, and to keep session
state in. In this case there's two String
properties: username and password, and a
method to validate the user.
Scope's default ModelManager implementation builds on
the JavaBeans API, so this model object is just
a normal JavaBean.
- Version:
- $Revision: 1.2 $ $Date: 2002/01/12 09:35:41 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
username
private java.lang.String username
password
private java.lang.String password
LoginModel
public LoginModel()
setUsername
public void setUsername(java.lang.String inUsername)
getUsername
public java.lang.String getUsername()
setPassword
public void setPassword(java.lang.String inPassword)
getPassword
public java.lang.String getPassword()
isValidUser
public boolean isValidUser()