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: 5768 $

Nested Class Summary
static interface ViewManager.ViewManagerListener
          Interfaces a view manager listener.
 
Method Summary
 void addListener(ViewManager.ViewManagerListener viewManagerListener)
          Registers the given ViewManagerListener.
 void addView(String className)
          Adds the given view type (class name) to the map of view types.
 void addViewListener(ViewListener viewListener)
          Registers the given ViewListener.
 void addViews(String[] classNames)
          Adds the given list of views types (class names) to the list of available view types.
 View createView(String className)
          Returns a new instance of the specified view.
 String[] getViewNames()
          Returns the class names of the registered views.
 boolean hasViews()
          Returns true, if there is at least one registered view plugin available.
 boolean removeListener(ViewManager.ViewManagerListener l)
          Returns true, if the given view manager listener was in the list of listeners and could be removed.
 boolean removeViewListener(ViewListener l)
          Returns true, if the given view listener was in the list of listeners and could be removed.
 void removeViews()
          Removes the known list of views from the internal memory.
 
Methods inherited from interface org.graffiti.managers.pluginmgr.PluginManagerListener
pluginAdded
 
Methods inherited from interface org.graffiti.plugin.view.ViewListener
viewChanged
 

Method Detail

getViewNames

String[] getViewNames()
Returns the class names of the registered views.

Returns:
the class names of the registered views.

addView

void addView(String className)
Adds the given view type (class name) to the map of view types.

Parameters:
className - the new view to add to the map.

addViews

void addViews(String[] classNames)
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

View createView(String className)
                throws InstanceCreationException
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()
Returns true, if there is at least one registered view plugin available. /

Returns:
DOCUMENT ME!

addListener

void addListener(ViewManager.ViewManagerListener viewManagerListener)
Registers the given ViewManagerListener.

Parameters:
viewManagerListener - the listener to register.

addViewListener

void addViewListener(ViewListener viewListener)
Registers the given ViewListener.

Parameters:
viewListener - the listener to register.

removeListener

boolean removeListener(ViewManager.ViewManagerListener l)
Returns true, 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

boolean removeViewListener(ViewListener l)
Returns true, 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.



Generated at 2012-05-30 11:00:36 PM CEST