Path: blob/master/src/java.desktop/share/classes/javax/accessibility/AccessibleExtendedTable.java
41153 views
/*1* Copyright (c) 2001, 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* Class {@code AccessibleExtendedTable} provides extended information about a29* user-interface component that presents data in a two-dimensional table30* format. Applications can determine if an object supports the31* {@code AccessibleExtendedTable} interface by first obtaining its32* {@code AccessibleContext} and then calling the33* {@link AccessibleContext#getAccessibleTable} method. If the return value is34* not {@code null} and the type of the return value is35* {@code AccessibleExtendedTable}, the object supports this interface.36*37* @author Lynn Monsanto38* @since 1.439*/40public interface AccessibleExtendedTable extends AccessibleTable {4142/**43* Returns the row number of an index in the table.44*45* @param index the zero-based index in the table. The index is the table46* cell offset from row == 0 and column == 0.47* @return the zero-based row of the table if one exists; otherwise -148*/49public int getAccessibleRow(int index);5051/**52* Returns the column number of an index in the table.53*54* @param index the zero-based index in the table. The index is the table55* cell offset from row == 0 and column == 0.56* @return the zero-based column of the table if one exists; otherwise -157*/58public int getAccessibleColumn(int index);5960/**61* Returns the index at a row and column in the table.62*63* @param r zero-based row of the table64* @param c zero-based column of the table65* @return the zero-based index in the table if one exists; otherwise -1.66* The index is the table cell offset from row == 0 and column == 0.67*/68public int getAccessibleIndex(int r, int c);69}707172