fi.hut.tml.xsmiles.content
Class ContentManager

java.lang.Object
  extended byfi.hut.tml.xsmiles.content.ContentManager

public class ContentManager
extends java.lang.Object

Activates and deactivates MLFCs upon requests. See Technical Requirements Specification for further details on MLFC management. Note: there are 3 phases in creating/stopping a primary MLFC: init-start-destroy : the first two are for synchronization purposes

Author:
Jukka Heinonen, Juha, Mikko Honkala

Field Summary
protected  MLFCListener mlfcListener
           
protected  XSmilesContentHandler primaryHandler
           
 
Constructor Summary
ContentManager(BrowserWindow myBrowser, MLFCListener listener)
          Define mappings between MLFCs and their class-names, and initialize private variables.
 
Method Summary
 void addContentHandler(XSmilesContentHandler handler)
           
 void addPrimaryContentHandler(XSmilesContentHandler handler)
           
 java.util.Vector getContentHandlers()
           
 XSmilesContentHandler getPrimaryContentHandler()
           
 void stopCurrentActiveContent()
          destroys all currently active MLFCs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mlfcListener

protected MLFCListener mlfcListener

primaryHandler

protected XSmilesContentHandler primaryHandler
Constructor Detail

ContentManager

public ContentManager(BrowserWindow myBrowser,
                      MLFCListener listener)
Define mappings between MLFCs and their class-names, and initialize private variables.

Parameters:
myBrowser - The BrowserWindow.
Method Detail

addContentHandler

public void addContentHandler(XSmilesContentHandler handler)

addPrimaryContentHandler

public void addPrimaryContentHandler(XSmilesContentHandler handler)

getPrimaryContentHandler

public XSmilesContentHandler getPrimaryContentHandler()

getContentHandlers

public java.util.Vector getContentHandlers()
Returns:
all content handlers, also primary

stopCurrentActiveContent

public void stopCurrentActiveContent()
destroys all currently active MLFCs.



X-Smiles 1.2