org.fuin.examples.apps4xxxxx
Class LoginControllerImpl

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

@Named(value="loginController")
@Usage(value=Intern)
@Lazy
public class LoginControllerImpl
extends 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.
 Object getControllerUI()
          
 Object getModuleUI()
          
 String getName()
           
 void login(LoginModuleImplIntf.LoginListener listener)
          Shows a login dialog.
 void login(LoginModuleImplIntf.LoginListener listener, String username)
          Shows a login dialog.
 void setView(LoginView view)
          
 void setWindowManager(org.fuin.apps4j.base.WindowManager windowManager)
          
 void verify(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)


cancel

public final void cancel()
Cancel the login process.

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

verify

public final void verify(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,
                        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.

getModuleUI

public final Object getModuleUI()

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

setWindowManager

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


getControllerUI

public final Object getControllerUI()

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

getName

public final String getName()
Specified by:
getName in interface org.fuin.apps4j.base.ModuleImplIntf


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