org.viewaframework.view
Interface ViewManager

All Superinterfaces:
ApplicationAware
All Known Implementing Classes:
AbstractViewManager, DefaultViewManager

public interface ViewManager
extends ApplicationAware

This interface should be implemented by classes used for managing several views.

Views can be added to the manager and then re-arranged before it can be shown.

Since:
1.0
Author:
Mario Garcia

Field Summary
static String ROOT_VIEW_ID
           
 
Method Summary
 void addView(ViewContainer view)
          Adds a view to the manager
 void addView(ViewContainer view, PerspectiveConstraint constraint)
          Adds a view to the manager given it a specific view constraint
 Container arrangeViews()
          Arranges the views contained in the manager.
 Perspective getPerspective()
           
 ViewContainerFrame getRootView()
           
 Map<Object,ViewContainer> getViews()
           
 void removeView(ViewContainer view)
          It removes the view passed as parameter from the manager.
 void setPerspective(Perspective perspective)
           
 void setRootView(ViewContainerFrame view)
          Sets the main view
 
Methods inherited from interface org.viewaframework.core.ApplicationAware
getApplication, setApplication
 

Field Detail

ROOT_VIEW_ID

static final String ROOT_VIEW_ID
See Also:
Constant Field Values
Method Detail

addView

void addView(ViewContainer view)
             throws ViewException
Adds a view to the manager

Parameters:
view -
Throws:
ViewException

addView

void addView(ViewContainer view,
             PerspectiveConstraint constraint)
             throws ViewException
Adds a view to the manager given it a specific view constraint

Parameters:
view -
constraint -
Throws:
ViewException

arrangeViews

Container arrangeViews()
                       throws ViewManagerException
Arranges the views contained in the manager. It would be called by the application before the views can be viewed.

Returns:
Throws:
ViewManagerException

getPerspective

Perspective getPerspective()
Returns:

getRootView

ViewContainerFrame getRootView()
Returns:

getViews

Map<Object,ViewContainer> getViews()
Returns:

removeView

void removeView(ViewContainer view)
                throws ViewException
It removes the view passed as parameter from the manager.

Parameters:
view -
Throws:
ViewException

setPerspective

void setPerspective(Perspective perspective)
                    throws ViewException
Parameters:
viewLayout -
Throws:
ViewException

setRootView

void setRootView(ViewContainerFrame view)
                 throws ViewException
Sets the main view

Parameters:
view -
Throws:
ViewException


Copyright © 2010. All Rights Reserved.