Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/javax/accessibility/AccessibleTableModelChange.java
38829 views
1
/*
2
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
package javax.accessibility;
27
28
/**
29
* The AccessibleTableModelChange interface describes a change to
30
* the table model. The attributes of the model change can be
31
* obtained by the following methods:
32
* <ul>
33
* <li> public int getType()
34
* <li> public int getFirstRow();
35
* <li> public int getLastRow();
36
* <li> public int getFirstColumn();
37
* <li> public int getLastColumn();
38
* </ul>
39
* The model change type returned by getType() will be one of:
40
* <ul>
41
* <li> INSERT - one or more rows and/or columns have been inserted
42
* <li> UPDATE - some of the table data has changed
43
* <li> DELETE - one or more rows and/or columns have been deleted
44
* </ul>
45
* The affected area of the table can be determined by the other
46
* four methods which specify ranges of rows and columns
47
*
48
* @see Accessible
49
* @see Accessible#getAccessibleContext
50
* @see AccessibleContext
51
* @see AccessibleContext#getAccessibleTable
52
*
53
* @author Lynn Monsanto
54
* @since 1.3
55
*/
56
public interface AccessibleTableModelChange {
57
58
/**
59
* Identifies the insertion of new rows and/or columns.
60
*/
61
public static final int INSERT = 1;
62
63
/**
64
* Identifies a change to existing data.
65
*/
66
public static final int UPDATE = 0;
67
68
/**
69
* Identifies the deletion of rows and/or columns.
70
*/
71
public static final int DELETE = -1;
72
73
/**
74
* Returns the type of event.
75
* @return the type of event
76
* @see #INSERT
77
* @see #UPDATE
78
* @see #DELETE
79
*/
80
public int getType();
81
82
/**
83
* Returns the first row that changed.
84
* @return the first row that changed
85
*/
86
public int getFirstRow();
87
88
/**
89
* Returns the last row that changed.
90
* @return the last row that changed
91
*/
92
public int getLastRow();
93
94
/**
95
* Returns the first column that changed.
96
* @return the first column that changed
97
*/
98
public int getFirstColumn();
99
100
/**
101
* Returns the last column that changed.
102
* @return the last column that changed
103
*/
104
public int getLastColumn();
105
}
106
107