1 /* 2 * @(#)AccessibleExtendedTable.java 1.5 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 * 7 */ 8 package javax.accessibility; 9 10 /** 11 * Class AccessibleExtendedTable provides extended information about 12 * a user-interface component that presents data in a two-dimensional 13 * table format. 14 * Applications can determine if an object supports the 15 * AccessibleExtendedTable interface by first obtaining its 16 * AccessibleContext and then calling the 17 * {@link AccessibleContext#getAccessibleTable} method. 18 * If the return value is not null and the type of the return value is 19 * AccessibleExtendedTable, the object supports this interface. 20 * 21 * @version 1.5 12/19/03 22 * @author Lynn Monsanto 23 */ 24 public interface AccessibleExtendedTable extends AccessibleTable { 25 26 /** 27 * Returns the row number of an index in the table. 28 * 29 * @param index the zero-based index in the table. The index is 30 * the table cell offset from row == 0 and column == 0. 31 * @return the zero-based row of the table if one exists; 32 * otherwise -1. 33 */ 34 public int getAccessibleRow(int index); 35 36 /** 37 * Returns the column number of an index in the table. 38 * 39 * @param index the zero-based index in the table. The index is 40 * the table cell offset from row == 0 and column == 0. 41 * @return the zero-based column of the table if one exists; 42 * otherwise -1. 43 */ 44 public int getAccessibleColumn(int index); 45 46 /* 47 * Returns the index at a row and column in the table. 48 * 49 * @param r zero-based row of the table 50 * @param c zero-based column of the table 51 * @return the zero-based index in the table if one exists; 52 * otherwise -1. The index is the table cell offset from 53 * row == 0 and column == 0. 54 */ 55 public int getAccessibleIndex(int r, int c); 56 } 57 58