org.fuin.examples.apps4xxxxx
Interface LoginModule

All Superinterfaces:
org.fuin.apps4j.Module

public interface LoginModule
extends org.fuin.apps4j.Module

A login dialog. Caution: Don't implement this interface directly! It's only used by the caller and will be implemented by the framework on-the-fly.


Method Summary
 java.lang.String login()
          Shows a login dialog and returns after the login is done.
 java.lang.String login(java.lang.String username)
          Shows a login dialog with a preset user name and returns after the login is done.
 
Methods inherited from interface org.fuin.apps4j.Module
cancel, getModuleTitle, getModuleUI, setWindowManager
 

Method Detail

login

java.lang.String login(java.lang.String username)
                       throws org.fuin.apps4j.CanceledException
Shows a login dialog with a preset user name and returns after the login is done.

Parameters:
username - Initial user name or null.
Returns:
Name of the user that successfully logged in.
Throws:
org.fuin.apps4j.CanceledException - User canceled the login process.

login

java.lang.String login()
                       throws org.fuin.apps4j.CanceledException
Shows a login dialog and returns after the login is done.

Returns:
Name of the user that successfully logged in.
Throws:
org.fuin.apps4j.CanceledException - User canceled the login process.


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