org.viewaframework.view
Interface ViewAware

All Known Subinterfaces:
Perspective
All Known Implementing Classes:
DefaultPerspective, MyDoggyPerspective

public interface ViewAware

This interface is intented to be used for those classes that are going to host views.

Since:
1.0
Author:
Mario Garcia

Method Summary
 void addView(ViewContainer view)
          Add a view to the current perspective
 void addView(ViewContainer view, PerspectiveConstraint constraint)
          From version 1.0.2 all constraints must be included in PerspectiveConstraint enumeration
 Map<Object,ViewContainer> getViews()
          Returns all views within this perspective
 void removeView(ViewContainer view)
          Remove the given view from the current perspective
 void setViews(Map<Object,ViewContainer> views)
          Sets all views used by this perspective
 

Method Detail

addView

void addView(ViewContainer view)
Add a view to the current perspective

Parameters:
view -

addView

void addView(ViewContainer view,
             PerspectiveConstraint constraint)
From version 1.0.2 all constraints must be included in PerspectiveConstraint enumeration

Parameters:
view -
constraint -
Since:
1.0.2

getViews

Map<Object,ViewContainer> getViews()
Returns all views within this perspective

Returns:

removeView

void removeView(ViewContainer view)
Remove the given view from the current perspective

Parameters:
view -

setViews

void setViews(Map<Object,ViewContainer> views)
Sets all views used by this perspective

Parameters:
views -


Copyright © 2010. All Rights Reserved.