Path: blob/master/src/java.desktop/share/classes/javax/accessibility/AccessibleTableModelChange.java
41153 views
/*1* Copyright (c) 1999, 2017, 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 {@code AccessibleTableModelChange} interface describes a change to the29* table model. The attributes of the model change can be obtained by the30* following methods:31* <ul>32* <li>{@code public int getType();}33* <li>{@code public int getFirstRow();}34* <li>{@code public int getLastRow();}35* <li>{@code public int getFirstColumn();}36* <li>{@code public int getLastColumn();}37* </ul>38* The model change type returned by getType() will be one of:39* <ul>40* <li>{@code INSERT} - one or more rows and/or columns have been inserted41* <li>{@code UPDATE} - some of the table data has changed42* <li>{@code DELETE} - one or more rows and/or columns have been deleted43* </ul>44* The affected area of the table can be determined by the other four methods45* which specify ranges of rows and columns46*47* @author Lynn Monsanto48* @see Accessible49* @see Accessible#getAccessibleContext50* @see AccessibleContext51* @see AccessibleContext#getAccessibleTable52* @since 1.353*/54public interface AccessibleTableModelChange {5556/**57* Identifies the insertion of new rows and/or columns.58*/59public static final int INSERT = 1;6061/**62* Identifies a change to existing data.63*/64public static final int UPDATE = 0;6566/**67* Identifies the deletion of rows and/or columns.68*/69public static final int DELETE = -1;7071/**72* Returns the type of event.73*74* @return the type of event75* @see #INSERT76* @see #UPDATE77* @see #DELETE78*/79public int getType();8081/**82* Returns the first row that changed.83*84* @return the first row that changed85*/86public int getFirstRow();8788/**89* Returns the last row that changed.90*91* @return the last row that changed92*/93public int getLastRow();9495/**96* Returns the first column that changed.97*98* @return the first column that changed99*/100public int getFirstColumn();101102/**103* Returns the last column that changed.104*105* @return the last column that changed106*/107public int getLastColumn();108}109110111