01: /*--------------------------------------------------------------------------*
02: | Copyright (C) 2006 Christopher Kohlhaas |
03: | |
04: | This program is free software; you can redistribute it and/or modify |
05: | it under the terms of the GNU General Public License as published by the |
06: | Free Software Foundation. A copy of the license has been included with |
07: | these distribution in the COPYING file, if not go to www.fsf.org |
08: | |
09: | As a special exception, you are granted the permissions to link this |
10: | program with every library, which license fulfills the Open Source |
11: | Definition as published by the Open Source Initiative (OSI). |
12: *--------------------------------------------------------------------------*/
13: package org.rapla.gui.toolkit;
14:
15: import java.util.EventObject;
16: import java.awt.Point;
17:
18: public class PopupEvent extends EventObject {
19: private static final long serialVersionUID = 1L;
20:
21: Point m_point;
22: Object m_selectedObject;
23:
24: public PopupEvent(Object source, Object selectedObject, Point p) {
25: super (source);
26: m_selectedObject = selectedObject;
27: m_point = p;
28: }
29:
30: public Object getSelectedObject() {
31: return m_selectedObject;
32: }
33:
34: public Point getPoint() {
35: return m_point;
36: }
37: }
|