1
2
3
4
5 package spellcast.model;
6
7 import java.beans.*;
8
9 /***
10 * This interface marks an object as being updateable from a <code>PropertyChangeEvent</code>.
11 * This allows the model to be separated into client/server where the server's copy of the model fires
12 * property change events and the clients copy can be updated from the server's event.
13 *
14 * TODO DELETE this class as we can use reflection and xml messages to achieve the same
15 * result in a more consistent and simpler manner.
16 *
17 * @author Barrie Treloar
18 */
19 public interface Updateable
20 {
21 /***
22 * Given a property change event update this object to reflect the new value in the event.
23 * The change of the objects value should also cause a firing of a PropertyChangeEvent
24 * so local listeners can be notified of the change.
25 */
26 public void update( PropertyChangeEvent pce );
27 }
28