edu.washington.cs.supple.net.rmi.server
Class RemoteApplicationSessionImpl

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byedu.washington.cs.supple.net.rmi.server.RemoteApplicationSessionImpl
All Implemented Interfaces:
java.rmi.Remote, RemoteApplicationSession, java.io.Serializable

public final class RemoteApplicationSessionImpl
extends java.rmi.server.UnicastRemoteObject
implements RemoteApplicationSession

Remote implementation of application sessions.

Author:
dbc1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteApplicationSessionImpl(SuppleApplicationSession session, RemoteRenderer renderer)
          Constructor.
 
Method Summary
 void close()
          Shut down this session
 void closedView(int uniqueId)
          Closed a view.
 UiObject createUi()
          Create UI root.
 UiObject execute(int uniqueId)
          Execute an action.
 RemoteRenderer getRenderer()
           
 void setValue(int uniqueId, java.lang.Object v)
          Process 'set' event
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteApplicationSessionImpl

public RemoteApplicationSessionImpl(SuppleApplicationSession session,
                                    RemoteRenderer renderer)
                             throws java.rmi.RemoteException
Constructor.

Parameters:
session -
renderer -
Method Detail

getRenderer

public RemoteRenderer getRenderer()

createUi

public UiObject createUi()
                  throws java.rmi.RemoteException
Description copied from interface: RemoteApplicationSession
Create UI root. This method assumes it will be called once to create the initial 'main' UI and bind it to a view.

Specified by:
createUi in interface RemoteApplicationSession
Returns:
data for the main Ui
Throws:
java.rmi.RemoteException

execute

public UiObject execute(int uniqueId)
                 throws java.rmi.RemoteException
Description copied from interface: RemoteApplicationSession
Execute an action.

Specified by:
execute in interface RemoteApplicationSession
Throws:
java.rmi.RemoteException

setValue

public void setValue(int uniqueId,
                     java.lang.Object v)
              throws java.rmi.RemoteException
Description copied from interface: RemoteApplicationSession
Process 'set' event

Specified by:
setValue in interface RemoteApplicationSession
Parameters:
uniqueId -
v -
Throws:
java.rmi.RemoteException

closedView

public void closedView(int uniqueId)
                throws java.rmi.RemoteException
Description copied from interface: RemoteApplicationSession
Closed a view.

Specified by:
closedView in interface RemoteApplicationSession
Parameters:
uniqueId -
Throws:
java.rmi.RemoteException

close

public void close()
           throws java.rmi.RemoteException
Shut down this session

Specified by:
close in interface RemoteApplicationSession
Throws:
java.rmi.RemoteException