org.progeeks.util
Interface ViewManager

All Known Implementing Classes:
WindowManager

public interface ViewManager

Interface denoting a class that can manage the views for an obserable list of contexts. When contexts are added or removed, the views are created or cleaned up. When the view has independent means of disposal then the context is removed when the view is closed.

Version:
$Revision: 1.3 $
Author:
Paul Speed

Method Summary
 void createInitialViews()
          Creates the initial views from the current list and factories.
 ObservableList getContextList()
          Returns the observable list of contexts for which this manager is responsible.
 ClassRegistry getViewFactories()
          Returns the mapping of context classes to view factories.
 void setContextList(ObservableList contexts)
          Sets the observable list of contexts for which this manager is responsible.
 void setViewFactories(ClassRegistry factories)
          Sets a mapping of context classes to view factories.
 

Method Detail

setContextList

void setContextList(ObservableList contexts)
Sets the observable list of contexts for which this manager is responsible.


getContextList

ObservableList getContextList()
Returns the observable list of contexts for which this manager is responsible.


setViewFactories

void setViewFactories(ClassRegistry factories)
Sets a mapping of context classes to view factories. This is is used by the manager to create new views.


getViewFactories

ClassRegistry getViewFactories()
Returns the mapping of context classes to view factories. This is is used by the manager to create new views.


createInitialViews

void createInitialViews()
Creates the initial views from the current list and factories. This initializes that manager and causes it to start serving up views as new contexts are added.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.