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 $
  • 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

      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.
    • getDefaultView

      String getDefaultView()
    • setDefaultView

      void setDefaultView​(String defaultView)