Source code: ledestin/swing/EditableEvent.java
1 /*
2 * Copyright (C) 2000-2001 Dmitry Macsema. All Rights Reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted under the terms of the following
6 * Open Source license:
7 *
8 * The GNU General Public License, version 2, or any later version, as
9 * published by the Free Software Foundation
10 * (http://www.fsf.org/copyleft/gpl.html);
11 */
12
13 package ledestin.swing;
14
15 import java.util.*;
16 import java.awt.event.*;
17 import javax.swing.*;
18
19 public class EditableEvent extends EventObject {
20 /**
21 The element on which operation is performed.
22 */
23 protected Object element;
24
25 public EditableEvent(JComponent source, Object element) {
26 super(source);
27 this.element = element;
28 }
29 public Object getElement() {
30 return element;
31 }
32 }