1 package com.loribel.commons.abstraction;
2
3 /***
4 * Event for Selection.
5 *
6 * @author Grégory Borelli
7 */
8 public class GB_SelectionEvent
9 {
10 /***
11 * The selected item.
12 */
13 private Object selectedItem;
14
15 /***
16 * The selected items.
17 */
18 private Object[] selectedItems;
19 /***
20 * The source of the event.
21 */
22 private Object source;
23
24 public GB_SelectionEvent(
25 Object a_source,
26 Object a_selectedItem)
27 {
28 super();
29 source = a_source;
30 selectedItem = a_selectedItem;
31 }
32
33 public GB_SelectionEvent(
34 Object a_source,
35 Object[] a_selectedItems)
36 {
37 super();
38 source = a_source;
39 selectedItems = a_selectedItems;
40 }
41
42 public Object getSelectedItem()
43 {
44 return selectedItem;
45 }
46
47 public Object[] getSelectedItems()
48 {
49 return selectedItems;
50 }
51
52 public Object getSource()
53 {
54 return source;
55 }
56 }