com.transjam.awt
Class ClientLoginManager

java.lang.Object
  |
  +--com.transjam.awt.ClientLoginManager
Direct Known Subclasses:
ClientHelper

public class ClientLoginManager
extends java.lang.Object

Simplify interface between TransJam client and server.

Author:
(C) 1997-2002 Phil Burk, SoftSynth.com, All Rights Reserved

Constructor Summary
ClientLoginManager()
           
 
Method Summary
 Client connect(java.applet.Applet applet, java.awt.Frame frame, java.lang.String lobbyName, int maxClientsPerRoom)
          Connect to server.
 Client connect(java.applet.Applet applet, java.lang.String lobbyName, int maxClientsPerRoom)
           
 java.awt.Frame getParentFrame(java.awt.Component comp)
          Move window to front to get users attention.
 void hideLogin()
           
 void login()
           
 void logout()
          Log off from server.
 void showLogin()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientLoginManager

public ClientLoginManager()
Method Detail

connect

public Client connect(java.applet.Applet applet,
                      java.lang.String lobbyName,
                      int maxClientsPerRoom)

connect

public Client connect(java.applet.Applet applet,
                      java.awt.Frame frame,
                      java.lang.String lobbyName,
                      int maxClientsPerRoom)
Connect to server. Connect to server running on host serving the Applet codeBase. If Applet parameter "transjamPort" has been specified then use it instead of Globals.DEFAULT_PORT.

getParentFrame

public java.awt.Frame getParentFrame(java.awt.Component comp)
Move window to front to get users attention.

login

public void login()

hideLogin

public void hideLogin()

showLogin

public void showLogin()

logout

public void logout()
Log off from server.