com.threerings.micasa.client
Class ClientController

java.lang.Object
  extended by com.samskivert.swing.Controller
      extended by com.threerings.micasa.client.ClientController
All Implemented Interfaces:
SessionObserver, ActionListener, EventListener

public class ClientController
extends Controller
implements SessionObserver

Responsible for top-level control of the client user interface.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.samskivert.swing.Controller
Controller.ActionInvoker
 
Field Summary
protected  BodyObject _body
           
protected  MiCasaContext _ctx
           
protected  MiCasaFrame _frame
           
protected  LogonPanel _logonPanel
           
 
Fields inherited from class com.samskivert.swing.Controller
DISPATCHER
 
Constructor Summary
ClientController(MiCasaContext ctx, MiCasaFrame frame)
          Creates a new client controller.
 
Method Summary
 void clientDidLogoff(Client client)
           
 void clientDidLogon(Client client)
           
 void clientObjectDidChange(Client client)
           
 void clientWillLogon(Client client)
           
 boolean handleAction(ActionEvent action)
           
 
Methods inherited from class com.samskivert.swing.Controller
actionPerformed, configureAction, createActionButton, generateArguments, handleAction, handleAction, handleAction, postAction, postAction, postAction, setControlledPanel, wasAdded, wasRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ctx

protected MiCasaContext _ctx

_frame

protected MiCasaFrame _frame

_body

protected BodyObject _body

_logonPanel

protected LogonPanel _logonPanel
Constructor Detail

ClientController

public ClientController(MiCasaContext ctx,
                        MiCasaFrame frame)
Creates a new client controller. The controller will set everything up in preparation for logging on.

Method Detail

handleAction

public boolean handleAction(ActionEvent action)
Overrides:
handleAction in class Controller

clientWillLogon

public void clientWillLogon(Client client)
Specified by:
clientWillLogon in interface SessionObserver

clientDidLogon

public void clientDidLogon(Client client)
Specified by:
clientDidLogon in interface SessionObserver

clientObjectDidChange

public void clientObjectDidChange(Client client)
Specified by:
clientObjectDidChange in interface SessionObserver

clientDidLogoff

public void clientDidLogoff(Client client)
Specified by:
clientDidLogoff in interface SessionObserver