1 /*
2 * Copyright (c) 1999, 2006, 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
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 *
76 * @see #INSERT
77 * @see #UPDATE
78 * @see #DELETE
79 */
80 public int getType();
81
82 /**
83 * Returns the first row that changed.
84 */
85 public int getFirstRow();
86
87 /**
88 * Returns the last row that changed.
89 */
90 public int getLastRow();
91
92 /**
93 * Returns the first column that changed.
94 */
95 public int getFirstColumn();
96
97 /**
98 * Returns the last column that changed.
99 */
100 public int getLastColumn();
101 }
|
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
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 }
|