|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbecker.util.ViewList
public class ViewList
An instance of ViewList is usually used by a class implementing
the model part of a model-view-controller to store its list of views. Each time the
object's state changes, it should call updateAllViews. This, in turn,
calls the updateView method for each of the views stored in
the list.
IView| Constructor Summary | |
|---|---|
ViewList()
Construct a new list of Views. |
|
| Method Summary | |
|---|---|
void |
addView(IView aView)
Add another View to the list. |
void |
removeView(IView aView)
Remove a specific view from the list. |
void |
removeViews()
Remove all the views from the list. |
void |
updateAllViews()
Notify each of the views on the list that something has happened to the object they are viewing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewList()
| Method Detail |
|---|
public void addView(IView aView)
addView in interface IModelaView - The View to add.public void removeView(IView aView)
removeView in interface IModelaView - The view to remove.public void removeViews()
public void updateAllViews()
updateAllViews in interface IModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||