KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > base > entitylist > EntityManager


1 /*
2  * Created on Jun 1, 2005
3  *
4  */

5 package com.nightlabs.base.entitylist;
6
7 import java.rmi.RemoteException JavaDoc;
8 import com.nightlabs.ModuleException;
9
10 /**
11  * @author Niklas Schiffler <nick@nightlabs.de>
12  *
13  */

14 public interface EntityManager
15 {
16   /**
17    * Set the entity to manage
18    * @param entity the entity
19    */

20   public void setEntity(Object JavaDoc entity);
21
22     /**
23      * Save changes in the management view
24      * @throws ModuleException
25      * @throws RemoteException
26      */

27   public void save() throws ModuleException, RemoteException JavaDoc;
28
29   /**
30    * Call this when you modified the entity object.
31    *
32    */

33   public void notifyDataChangedListeners();
34
35   /**
36    * Listen for modifications of the entity object
37    * @param listener your listener
38    */

39   public void addDataChangedListener(EntityDataChangedListener listener);
40
41   /**
42    * Remove a listener
43    * @param listener the listener
44    */

45   public void removeDataChangedListener(EntityDataChangedListener listener);
46
47 }
48
Popular Tags