01: package net.suberic.util;
02:
03: /**
04: *
05: */
06: public class ItemListChangeEvent {
07:
08: Item[] added;
09: Item[] removed;
10: ItemManager manager;
11:
12: /**
13: * Creates an ItemListChangeEvent.
14: */
15: public ItemListChangeEvent(ItemManager mgr, Item[] itemsAdded,
16: Item[] itemsRemoved) {
17: manager = mgr;
18: added = itemsAdded;
19: removed = itemsRemoved;
20: }
21:
22: /**
23: * Gets the Items that have been added.
24: */
25: public Item[] getAdded() {
26: return added;
27: }
28:
29: /**
30: * Gets the Items that have been removed.
31: */
32: public Item[] getRemoved() {
33: return removed;
34: }
35: }
|