KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > util > ItemListChangeEvent


1 package net.suberic.util;
2
3 /**
4  *
5  */

6 public class ItemListChangeEvent {
7
8   Item[] added;
9   Item[] removed;
10   ItemManager manager;
11
12   /**
13    * Creates an ItemListChangeEvent.
14    */

15   public ItemListChangeEvent(ItemManager mgr, Item[] itemsAdded, Item[] itemsRemoved) {
16     manager=mgr;
17     added=itemsAdded;
18     removed=itemsRemoved;
19   }
20   
21   /**
22    * Gets the Items that have been added.
23    */

24   public Item[] getAdded() {
25     return added;
26   }
27
28   /**
29    * Gets the Items that have been removed.
30    */

31   public Item[] getRemoved() {
32     return removed;
33   }
34 }
35
Popular Tags