portaview
Class RemoteUpdateController

java.lang.Object
  extended byportaview.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

Constructor Summary
RemoteUpdateController(PortaViewModel pvm)
          Constructs the controller with a given PortaViewModel that it observes.
 
Method Summary
 PortaViewModel getModel()
           
 void setModel(PortaViewModel model)
           
 void update(java.util.Observable o, java.lang.Object arg)
          Update the remote PortaView when the update happens in the PortaViewModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteUpdateController

public RemoteUpdateController(PortaViewModel pvm)
Constructs the controller with a given PortaViewModel that it observes.

Parameters:
pvm - model to observe.
Method Detail

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.