1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.cb.cardboard;
21
22 import java.util.EventListener;
23
24 /***
25 * An interface that all CardBoardModel listeners must implement.
26 *
27 * @author jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $
28 * @version $Id: CardBoardModelListener.java 129 2004-04-15 05:00:43Z jerome $
29 */
30 public interface CardBoardModelListener extends EventListener
31 {
32 /***
33 * Sent after the indices in the index0,index1
34 * interval have been inserted in the data model.
35 * The new interval includes both index0 and index1.
36 *
37 * @param e a <code>CardBoardEvent</code> encapsulating the
38 * event information
39 */
40 void intervalAdded(CardBoardEvent e);
41
42
43 /***
44 * Sent after the indices in the index0,index1 interval
45 * have been removed from the data model. The interval
46 * includes both index0 and index1.
47 *
48 * @param e a <code>CardBoardEvent</code> encapsulating the
49 * event information
50 */
51 void intervalRemoved(CardBoardEvent e);
52
53
54 /***
55 * Sent when the contents of the board has changed in a way
56 * that's too complex to characterize with the previous
57 * methods. For example, this is sent when an item has been
58 * replaced. Index0 and index1 bracket the change.
59 *
60 * @param e a <code>CardBoardEvent</code> encapsulating the
61 * event information
62 */
63 void contentsChanged(CardBoardEvent e);
64
65 }