org.fuin.examples.apps4xxxxx
Class LoginControllerImpl

java.lang.Object
  extended by org.fuin.examples.apps4xxxxx.LoginControllerImpl
All Implemented Interfaces:
org.fuin.apps4j.Controller<LoginView>, org.fuin.apps4j.ModuleImplIntf, LoginController, LoginModuleImplIntf

public class LoginControllerImpl
extends java.lang.Object
implements LoginController, LoginModuleImplIntf

Example login module and controller implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.fuin.examples.apps4xxxxx.LoginModuleImplIntf
LoginModuleImplIntf.LoginListener
 
Constructor Summary
LoginControllerImpl()
          Default constructor.
 
Method Summary
 void cancel()
          Cancel the login process.
 java.lang.String getModuleTitle()
          
 java.lang.Object getModuleUI()
          
 void login(LoginModuleImplIntf.LoginListener listener)
          Shows a login dialog.
 void login(LoginModuleImplIntf.LoginListener listener, java.lang.String username)
          Shows a login dialog.
 void setView(LoginView view)
          
 void setWindowManager(org.fuin.apps4j.WindowManager windowManager)
          
 void verify(java.lang.String username, char[] password)
          Try to login with the username and password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginControllerImpl

public LoginControllerImpl()
Default constructor.

Method Detail

setView

public final void setView(LoginView view)

Specified by:
setView in interface org.fuin.apps4j.Controller<LoginView>

cancel

public final void cancel()
Cancel the login process.

Specified by:
cancel in interface org.fuin.apps4j.ModuleImplIntf
Specified by:
cancel in interface LoginController

verify

public final void verify(java.lang.String username,
                         char[] password)
Try to login with the username and password.

Specified by:
verify in interface LoginController
Parameters:
username - Username.
password - Password.

login

public final void login(LoginModuleImplIntf.LoginListener listener,
                        java.lang.String username)
Shows a login dialog.

Specified by:
login in interface LoginModuleImplIntf
Parameters:
listener - Listener.
username - Initial user name or null.

login

public final void login(LoginModuleImplIntf.LoginListener listener)
Shows a login dialog.

Specified by:
login in interface LoginModuleImplIntf
Parameters:
listener - Listener.

getModuleTitle

public final java.lang.String getModuleTitle()

Specified by:
getModuleTitle in interface org.fuin.apps4j.ModuleImplIntf

getModuleUI

public final java.lang.Object getModuleUI()

Specified by:
getModuleUI in interface org.fuin.apps4j.ModuleImplIntf

setWindowManager

public final void setWindowManager(org.fuin.apps4j.WindowManager windowManager)

Specified by:
setWindowManager in interface org.fuin.apps4j.ModuleImplIntf


Copyright © 2010 Future Invent Informationsmanagement GmbH. All Rights Reserved.