Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/javax/accessibility/AccessibleExtendedTable.java
38829 views
/*1* Copyright (c) 2001, 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*/24package javax.accessibility;2526/**27* Class AccessibleExtendedTable provides extended information about28* a user-interface component that presents data in a two-dimensional29* table format.30* Applications can determine if an object supports the31* AccessibleExtendedTable interface by first obtaining its32* AccessibleContext and then calling the33* {@link AccessibleContext#getAccessibleTable} method.34* If the return value is not null and the type of the return value is35* 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 is46* the table cell offset from row == 0 and column == 0.47* @return the zero-based row of the table if one exists;48* otherwise -1.49*/50public int getAccessibleRow(int index);5152/**53* Returns the column number of an index in the table.54*55* @param index the zero-based index in the table. The index is56* the table cell offset from row == 0 and column == 0.57* @return the zero-based column of the table if one exists;58* otherwise -1.59*/60public int getAccessibleColumn(int index);6162/**63* Returns the index at a row and column in the table.64*65* @param r zero-based row of the table66* @param c zero-based column of the table67* @return the zero-based index in the table if one exists;68* otherwise -1. The index is the table cell offset from69* row == 0 and column == 0.70*/71public int getAccessibleIndex(int r, int c);72}737475