01: /*
02: * de.jwic.events.ElementSelectedEvent
03: * $Id: ElementSelectedEvent.java,v 1.3 2006/08/14 09:34:59 lordsam Exp $
04: */
05: package de.jwic.events;
06:
07: import de.jwic.base.Event;
08:
09: /**
10: * This event is fired when an element of an control has been selected.
11: * An element can be something like an entry in a list or a node in a tree.
12: *
13: * @author Florian Lippisch
14: * @version $Revision: 1.3 $
15: */
16: public class ElementSelectedEvent extends Event {
17:
18: private static final long serialVersionUID = 1L;
19: private Object element = null;
20:
21: /**
22: * @param sourceControl
23: */
24: public ElementSelectedEvent(Object source, Object selectedElement) {
25: super (source);
26: this .element = selectedElement;
27: }
28:
29: /**
30: * @return Returns the element.
31: */
32: public Object getElement() {
33: return element;
34: }
35: }
|