Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/javax/accessibility/AccessibleTableModelChange.java
38829 views
/*1* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.accessibility;2627/**28* The AccessibleTableModelChange interface describes a change to29* the table model. The attributes of the model change can be30* obtained by the following methods:31* <ul>32* <li> public int getType()33* <li> public int getFirstRow();34* <li> public int getLastRow();35* <li> public int getFirstColumn();36* <li> public int getLastColumn();37* </ul>38* The model change type returned by getType() will be one of:39* <ul>40* <li> INSERT - one or more rows and/or columns have been inserted41* <li> UPDATE - some of the table data has changed42* <li> DELETE - one or more rows and/or columns have been deleted43* </ul>44* The affected area of the table can be determined by the other45* four methods which specify ranges of rows and columns46*47* @see Accessible48* @see Accessible#getAccessibleContext49* @see AccessibleContext50* @see AccessibleContext#getAccessibleTable51*52* @author Lynn Monsanto53* @since 1.354*/55public interface AccessibleTableModelChange {5657/**58* Identifies the insertion of new rows and/or columns.59*/60public static final int INSERT = 1;6162/**63* Identifies a change to existing data.64*/65public static final int UPDATE = 0;6667/**68* Identifies the deletion of rows and/or columns.69*/70public static final int DELETE = -1;7172/**73* Returns the type of event.74* @return the type of event75* @see #INSERT76* @see #UPDATE77* @see #DELETE78*/79public int getType();8081/**82* Returns the first row that changed.83* @return the first row that changed84*/85public int getFirstRow();8687/**88* Returns the last row that changed.89* @return the last row that changed90*/91public int getLastRow();9293/**94* Returns the first column that changed.95* @return the first column that changed96*/97public int getFirstColumn();9899/**100* Returns the last column that changed.101* @return the last column that changed102*/103public int getLastColumn();104}105106107