edu.washington.cs.supple.application
Interface SuppleApplicationSession

All Known Implementing Classes:
AbstractSuppleApplicationSession

public interface SuppleApplicationSession

SuppleApplicationSession represents the association between a (local) SuppleApplication and a (possibly remote) client Renderer.

Author:
dbc1

Method Summary
 void addSessionListener(SessionListener listener)
           
 void close()
          Close the session
 SuppleApplication getApplication()
           
 Renderer getRenderer()
           
 UiObject getUi()
          Get the "main" UI description - the UI to be rendered when the session opens.
 void setRenderer(Renderer renderer)
          Set the associated renderer.
 

Method Detail

getRenderer

public Renderer getRenderer()
Returns:
the associated renderer

setRenderer

public void setRenderer(Renderer renderer)
Set the associated renderer. The application can use this renderer to "push" ui to the client. The behavior for calling this method after the renderer has already been set is undefined.


getApplication

public SuppleApplication getApplication()
Returns:
the associated application

getUi

public UiObject getUi()
Get the "main" UI description - the UI to be rendered when the session opens.


close

public void close()
Close the session


addSessionListener

public void addSessionListener(SessionListener listener)