portaview
Class RemoteUpdateController
java.lang.Object
portaview.RemoteUpdateController
- All Implemented Interfaces:
- java.util.Observer
- public class RemoteUpdateController
- extends java.lang.Object
- implements java.util.Observer
Controller to update the remote PortaView when user assigns an album to it.
This controller is associated with each remote PortaView registered in the master PortaView.
- Author:
- William Lee
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteUpdateController
public RemoteUpdateController(PortaViewModel pvm)
- Constructs the controller with a given PortaViewModel that it observes.
- Parameters:
pvm
- model to observe.
update
public void update(java.util.Observable o,
java.lang.Object arg)
- Update the remote PortaView when the update happens in the PortaViewModel. Note
that if this is the current PortaView, we do nothing, since the model is already
updated and we do not have to do this again.
- Specified by:
update
in interface java.util.Observer
- See Also:
Observer.update(java.util.Observable, java.lang.Object)
getModel
public PortaViewModel getModel()
- Returns:
setModel
public void setModel(PortaViewModel model)
- Parameters:
model
-
Copyright © 2003 The PortaView Team. All Rights Reserved.