1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.xnap.gui.component;
20
21 import javax.swing.event.DocumentEvent;
22 import javax.swing.event.DocumentListener;
23
24 /***
25 * An abstract adapter class for receiving document events. The methods in
26 * this class are empty. This class exists as convenience for creating
27 * listener objects.
28 */
29 public abstract class DocumentAdapter implements DocumentListener
30 {
31
32
33
34
35
36
37 public DocumentAdapter()
38 {
39 }
40
41 /***
42 * Invoked when an attribute or set of attributes changed.
43 */
44 public void insertUpdate(DocumentEvent e)
45 {
46 }
47
48 /***
49 * Invoked when there was an insert into the document.
50 */
51 public void removeUpdate(DocumentEvent e)
52 {
53 }
54
55 /***
56 * Invoked when a portion of the document has been removed.
57 */
58 public void changedUpdate(DocumentEvent e)
59 {
60 }
61
62
63
64 }