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 interface
ViewManager.ViewManagerListener
Interfaces a view manager listener. -
Method Summary
Modifier and Type Method Description void
addListener(ViewManager.ViewManagerListener viewManagerListener)
Registers the givenViewManagerListener
.void
addView(String className)
Adds the given view type (class name) to the map of view types.void
addViewListener(ViewListener viewListener)
Registers the givenViewListener
.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
getDefaultView()
String[]
getViewDescriptions()
String[]
getViewNames()
Returns the class names of the registered views.boolean
hasViews()
Returnstrue
, if there is at least one registered view plugin available.boolean
removeListener(ViewManager.ViewManagerListener l)
Returnstrue
, if the given view manager listener was in the list of listeners and could be removed.boolean
removeViewListener(ViewListener l)
Returnstrue
, 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.void
setDefaultView(String defaultView)
Methods inherited from interface org.graffiti.managers.pluginmgr.PluginManagerListener
pluginAdded
Methods 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
-