|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.WindowPane
com.sptci.echo2.LoginPane
public class LoginPane
A view component that is used to display login controls to the user.
The following shows usage of this class. Since the associated
LoginPaneController is abstract this component cannot be directly
instantiated. It will be instantiated through the sub-class of
LoginPaneController.
import com.sptci.echo2.LoginPane;
...
// MyLoginController is your sub-class of LoginPaneController
MyLoginController controller = new MyLoginController();
LoginPane pane = controller.getView();
Copyright 2006 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected LoginPaneController |
controller
The controller for this view. |
protected Button |
login
The button used to trigger a login action. |
static String |
LOGIN
The name of the login field used to trigger the login process. |
protected PasswordField |
password
The component to use to capture password information. |
static String |
PASSWORD
The name of the password field. |
protected TextField |
userName
The component to use to capture user/account name information. |
static String |
USERNAME
The name of the userName field. |
| Fields inherited from interface nextapp.echo2.app.ModalSupport |
|---|
MODAL_CHANGED_PROPERTY |
| Constructor Summary | |
|---|---|
protected |
LoginPane()
Initialise the view using the specified controller. |
| Method Summary | |
|---|---|
protected void |
createComponent(String field,
Component component)
Initialise the specified component and add to the specified container component. |
protected void |
createLogin(Component component)
Initialise the login component and add to the specified
container component. |
LoginPaneController |
getController()
Returns controller. |
String |
getPassword()
Return the text entered into password. |
String |
getUserName()
Return the text entered into userName. |
protected void |
initComponents()
Initialise the components of this pane. |
protected void |
setController(LoginPaneController controller)
Set controller. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String USERNAME
userName field.
"userName"
public static final String PASSWORD
password field.
"password"
public static final String LOGIN
login field used to trigger the login process.
"login"
protected TextField userName
protected PasswordField password
protected Button login
protected LoginPaneController controller
| Constructor Detail |
|---|
protected LoginPane()
controller.
Note: After creating a new instance of this view component,
setController(com.sptci.echo2.LoginPaneController) and initComponents() must be invoked
in the above order.
| Method Detail |
|---|
protected void initComponents()
createComponent(java.lang.String, nextapp.echo2.app.Component),
createLogin(nextapp.echo2.app.Component)
protected void createComponent(String field,
Component component)
field - The field that is to be initialised.component - The parent container to which the field is to be
added.LoginPaneController.getListener(java.lang.String)protected void createLogin(Component component)
login component and add to the specified
container component.
component - The parent container to which the field is to be
added.LoginPaneController.getListener(java.lang.String)public String getUserName()
userName.
public String getPassword()
password.
public LoginPaneController getController()
controller.
protected void setController(LoginPaneController controller)
controller.
controller - The value to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||