KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > accessibility > AccessibleTableModelChange


1 /*
2  * @(#)AccessibleTableModelChange.java 1.10 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.accessibility;
9
10 /**
11  * The AccessibleTableModelChange interface describes a change to
12  * the table model. The attributes of the model change can be
13  * obtained by the following methods:
14  * <ul>
15  * <li> public int getType()
16  * <li> public int getFirstRow();
17  * <li> public int getLastRow();
18  * <li> public int getFirstColumn();
19  * <li> public int getLastColumn();
20  * </ul>
21  * The model change type returned by getType() will be one of:
22  * <ul>
23  * <li> INSERT - one or more rows and/or columns have been inserted
24  * <li> UPDATE - some of the table data has changed
25  * <li> DELETE - one or more rows and/or columns have been deleted
26  * </ul>
27  * The affected area of the table can be determined by the other
28  * four methods which specify ranges of rows and columns
29  *
30  * @see Accessible
31  * @see Accessible#getAccessibleContext
32  * @see AccessibleContext
33  * @see AccessibleContext#getAccessibleTable
34  *
35  * @version 1.2 10/12/99
36  * @author Lynn Monsanto
37  */

38 public interface AccessibleTableModelChange {
39
40     /**
41      * Identifies the insertion of new rows and/or columns.
42      */

43     public static final int INSERT = 1;
44
45     /**
46      * Identifies a change to existing data.
47      */

48     public static final int UPDATE = 0;
49
50     /**
51      * Identifies the deletion of rows and/or columns.
52      */

53     public static final int DELETE = -1;
54     
55     /**
56      * Returns the type of event
57      *
58      * @see #INSERT
59      * @see #UPDATE
60      * @see #DELETE
61      */

62     public int getType();
63
64     /**
65      * Returns the first row that changed.
66      */

67     public int getFirstRow();
68     
69     /**
70      * Returns the last row that changed.
71      */

72     public int getLastRow();
73     
74     /**
75      * Returns the first column that changed.
76      */

77     public int getFirstColumn();
78     
79     /**
80      * Returns the last column that changed.
81      */

82     public int getLastColumn();
83 }
84
Popular Tags