org.jdesktop.wonderland.client.jme.login
Class JmeLoginUI

java.lang.Object
  extended by org.jdesktop.wonderland.client.jme.login.JmeLoginUI
All Implemented Interfaces:
LoginUI, SessionCreator<JmeClientSession>

public class JmeLoginUI
extends java.lang.Object
implements LoginUI, SessionCreator<JmeClientSession>

Manage the connection between this client and the wonderland server TODO RENAME, there must be a better name for this class ! LoginManager & JMELoginManager

Author:
paulby

Constructor Summary
JmeLoginUI(MainFrame parent)
           
 
Method Summary
 JmeClientSession createSession(ServerSessionManager manager, WonderlandServerInfo server, java.lang.ClassLoader loader)
          Create a new WonderlandSession for the given server and classloader.
 void requestLogin(ServerSessionManager.EitherLoginControl control)
          Request that the user interface prompt the user for login credentials.
 void requestLogin(ServerSessionManager.NoAuthLoginControl control)
          Request that the user interface prompt the user for login credentials.
 void requestLogin(ServerSessionManager.UserPasswordLoginControl control)
          Request that the user interface prompt the user for login credentials.
 void setInitialPosition(com.jme.math.Vector3f position, com.jme.math.Quaternion look)
           
 void setPrimary(boolean primary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmeLoginUI

public JmeLoginUI(MainFrame parent)
Method Detail

requestLogin

public void requestLogin(ServerSessionManager.NoAuthLoginControl control)
Description copied from interface: LoginUI
Request that the user interface prompt the user for login credentials. This version corresponds to no authorization, so prompts for username and full name, but no password. Login is granted if the username is unique.

Specified by:
requestLogin in interface LoginUI
Parameters:
control - the login control

requestLogin

public void requestLogin(ServerSessionManager.UserPasswordLoginControl control)
Description copied from interface: LoginUI
Request that the user interface prompt the user for login credentials. This version corresponds to web service authorization, so prompts for username and password. Login is granted if the username and password are validated by the web service.

Specified by:
requestLogin in interface LoginUI
Parameters:
control - the login control

requestLogin

public void requestLogin(ServerSessionManager.EitherLoginControl control)
Description copied from interface: LoginUI
Request that the user interface prompt the user for login credentials. This version corresponds to authentication either by no authorization (e.g. a guest) or by authentication, at the choice of the client.

Specified by:
requestLogin in interface LoginUI
Parameters:
control - the login control

setInitialPosition

public void setInitialPosition(com.jme.math.Vector3f position,
                               com.jme.math.Quaternion look)

setPrimary

public void setPrimary(boolean primary)

createSession

public JmeClientSession createSession(ServerSessionManager manager,
                                      WonderlandServerInfo server,
                                      java.lang.ClassLoader loader)
Description copied from interface: SessionCreator
Create a new WonderlandSession for the given server and classloader. This gives the user-interface a hook to listen for session-related events.

Specified by:
createSession in interface SessionCreator<JmeClientSession>
Parameters:
manager - the server session manager that is creating this session
server - the information about the server to connect to
loader - the classloader with all modules loaded
Returns:
the newly created Wonderland session


Open Wonderland - http://openwonderland.org