Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/javax/accessibility/AccessibleTable.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* Class AccessibleTable describes a user-interface component that29* presents data in a two-dimensional table format.30*31* @author Lynn Monsanto32* @since 1.333*/34public interface AccessibleTable {3536/**37* Returns the caption for the table.38*39* @return the caption for the table40*/41public Accessible getAccessibleCaption();4243/**44* Sets the caption for the table.45*46* @param a the caption for the table47*/48public void setAccessibleCaption(Accessible a);4950/**51* Returns the summary description of the table.52*53* @return the summary description of the table54*/55public Accessible getAccessibleSummary();5657/**58* Sets the summary description of the table59*60* @param a the summary description of the table61*/62public void setAccessibleSummary(Accessible a);6364/**65* Returns the number of rows in the table.66*67* @return the number of rows in the table68*/69public int getAccessibleRowCount();7071/**72* Returns the number of columns in the table.73*74* @return the number of columns in the table75*/76public int getAccessibleColumnCount();7778/**79* Returns the Accessible at a specified row and column80* in the table.81*82* @param r zero-based row of the table83* @param c zero-based column of the table84* @return the Accessible at the specified row and column85*/86public Accessible getAccessibleAt(int r, int c);8788/**89* Returns the number of rows occupied by the Accessible at90* a specified row and column in the table.91*92* @param r zero-based row of the table93* @param c zero-based column of the table94* @return the number of rows occupied by the Accessible at a95* given specified (row, column)96*/97public int getAccessibleRowExtentAt(int r, int c);9899/**100* Returns the number of columns occupied by the Accessible at101* a specified row and column in the table.102*103* @param r zero-based row of the table104* @param c zero-based column of the table105* @return the number of columns occupied by the Accessible at a106* given specified row and column107*/108public int getAccessibleColumnExtentAt(int r, int c);109110/**111* Returns the row headers as an AccessibleTable.112*113* @return an AccessibleTable representing the row114* headers115*/116public AccessibleTable getAccessibleRowHeader();117118/**119* Sets the row headers.120*121* @param table an AccessibleTable representing the122* row headers123*/124public void setAccessibleRowHeader(AccessibleTable table);125126/**127* Returns the column headers as an AccessibleTable.128*129* @return an AccessibleTable representing the column130* headers131*/132public AccessibleTable getAccessibleColumnHeader();133134/**135* Sets the column headers.136*137* @param table an AccessibleTable representing the138* column headers139*/140public void setAccessibleColumnHeader(AccessibleTable table);141142/**143* Returns the description of the specified row in the table.144*145* @param r zero-based row of the table146* @return the description of the row147*/148public Accessible getAccessibleRowDescription(int r);149150/**151* Sets the description text of the specified row of the table.152*153* @param r zero-based row of the table154* @param a the description of the row155*/156public void setAccessibleRowDescription(int r, Accessible a);157158/**159* Returns the description text of the specified column in the table.160*161* @param c zero-based column of the table162* @return the text description of the column163*/164public Accessible getAccessibleColumnDescription(int c);165166/**167* Sets the description text of the specified column in the table.168*169* @param c zero-based column of the table170* @param a the text description of the column171*/172public void setAccessibleColumnDescription(int c, Accessible a);173174/**175* Returns a boolean value indicating whether the accessible at176* a specified row and column is selected.177*178* @param r zero-based row of the table179* @param c zero-based column of the table180* @return the boolean value true if the accessible at the181* row and column is selected. Otherwise, the boolean value182* false183*/184public boolean isAccessibleSelected(int r, int c);185186/**187* Returns a boolean value indicating whether the specified row188* is selected.189*190* @param r zero-based row of the table191* @return the boolean value true if the specified row is selected.192* Otherwise, false.193*/194public boolean isAccessibleRowSelected(int r);195196/**197* Returns a boolean value indicating whether the specified column198* is selected.199*200* @param c zero-based column of the table201* @return the boolean value true if the specified column is selected.202* Otherwise, false.203*/204public boolean isAccessibleColumnSelected(int c);205206/**207* Returns the selected rows in a table.208*209* @return an array of selected rows where each element is a210* zero-based row of the table211*/212public int [] getSelectedAccessibleRows();213214/**215* Returns the selected columns in a table.216*217* @return an array of selected columns where each element is a218* zero-based column of the table219*/220public int [] getSelectedAccessibleColumns();221}222223224