Package org.graffiti.managers
Interface ViewManager
- All Superinterfaces:
 PluginManagerListener,ViewListener
- All Known Implementing Classes:
 DefaultViewManager
public interface ViewManager extends PluginManagerListener, ViewListener
Provides an interface for managing a list of view types.
- Version:
 - $Revision: 1.5 $
 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceViewManager.ViewManagerListenerInterfaces a view manager listener. - 
Method Summary
Modifier and Type Method Description voidaddListener(ViewManager.ViewManagerListener viewManagerListener)Registers the givenViewManagerListener.voidaddView(String className)Adds the given view type (class name) to the map of view types.voidaddViewListener(ViewListener viewListener)Registers the givenViewListener.voidaddViews(String[] classNames)Adds the given list of views types (class names) to the list of available view types.ViewcreateView(String className)Returns a new instance of the specified view.StringgetDefaultView()String[]getViewDescriptions()String[]getViewNames()Returns the class names of the registered views.booleanhasViews()Returnstrue, if there is at least one registered view plugin available.booleanremoveListener(ViewManager.ViewManagerListener l)Returnstrue, if the given view manager listener was in the list of listeners and could be removed.booleanremoveViewListener(ViewListener l)Returnstrue, if the given view listener was in the list of listeners and could be removed.voidremoveViews()Removes the known list of views from the internal memory.voidsetDefaultView(String defaultView)Methods inherited from interface org.graffiti.managers.pluginmgr.PluginManagerListener
pluginAddedMethods inherited from interface org.graffiti.plugin.view.ViewListener
viewChanged 
- 
Method Details
- 
getViewNames
String[] getViewNames()Returns the class names of the registered views.- Returns:
 - the class names of the registered views.
 
 - 
getViewDescriptions
String[] getViewDescriptions() - 
addView
Adds the given view type (class name) to the map of view types.- Parameters:
 className- the new view to add to the map.
 - 
addViews
Adds the given list of views types (class names) to the list of available view types.- Parameters:
 classNames- the list of classNames to add to the view type list.
 - 
createView
Returns a new instance of the specified view.- Parameters:
 className- the class name of the view.- Returns:
 - a new instance of the specified view.
 - Throws:
 InstanceCreationException
 - 
hasViews
boolean hasViews()Returnstrue, if there is at least one registered view plugin available. /- Returns:
 - DOCUMENT ME!
 
 - 
addListener
Registers the givenViewManagerListener.- Parameters:
 viewManagerListener- the listener to register.
 - 
addViewListener
Registers the givenViewListener.- Parameters:
 viewListener- the listener to register.
 - 
removeListener
Returnstrue, if the given view manager listener was in the list of listeners and could be removed.- Parameters:
 l- the view manager listener to remove.- Returns:
 - DOCUMENT ME!
 
 - 
removeViewListener
Returnstrue, if the given view listener was in the list of listeners and could be removed.- Parameters:
 l- the view manager listener to remove.- Returns:
 - DOCUMENT ME!
 
 - 
removeViews
void removeViews()Removes the known list of views from the internal memory. Makes it possible to remove and re-add views. - 
getDefaultView
String getDefaultView() - 
setDefaultView
 
 -