1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
/* * @(#)AccessibleTable.java 1.11 06/04/07 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package javax.accessibility; /** * Class AccessibleTable describes a user-interface component that * presents data in a two-dimensional table format. * * @version 1.2 10/12/99 * @author Lynn Monsanto * @since 1.3 */ public interface AccessibleTable { /** * Returns the caption for the table. * * @return the caption for the table */ public Accessible getAccessibleCaption(); /** * Sets the caption for the table. * * @param a the caption for the table */ public void setAccessibleCaption(Accessible a); /** * Returns the summary description of the table. * * @return the summary description of the table */ public Accessible getAccessibleSummary(); /** * Sets the summary description of the table * * @param a the summary description of the table */ public void setAccessibleSummary(Accessible a); /** * Returns the number of rows in the table. * * @return the number of rows in the table */ public int getAccessibleRowCount(); /** * Returns the number of columns in the table. * * @return the number of columns in the table */ public int getAccessibleColumnCount(); /** * Returns the Accessible at a specified row and column * in the table. * * @param r zero-based row of the table * @param c zero-based column of the table * @return the Accessible at the specified row and column */ public Accessible getAccessibleAt(int r, int c); /** * Returns the number of rows occupied by the Accessible at * a specified row and column in the table. * * @return the number of rows occupied by the Accessible at a * given specified (row, column) */ public int getAccessibleRowExtentAt(int r, int c); /** * Returns the number of columns occupied by the Accessible at * a specified row and column in the table. * * @return the number of columns occupied by the Accessible at a * given specified row and column */ public int getAccessibleColumnExtentAt(int r, int c); /** * Returns the row headers as an AccessibleTable. * * @return an AccessibleTable representing the row * headers */ public AccessibleTable getAccessibleRowHeader(); /** * Sets the row headers. * * @param table an AccessibleTable representing the * row headers */ public void setAccessibleRowHeader(AccessibleTable table); /** * Returns the column headers as an AccessibleTable. * * @return an AccessibleTable representing the column * headers */ public AccessibleTable getAccessibleColumnHeader(); /** * Sets the column headers. * * @param table an AccessibleTable representing the * column headers */ public void setAccessibleColumnHeader(AccessibleTable table); /** * Returns the description of the specified row in the table. * * @param r zero-based row of the table * @return the description of the row */ public Accessible getAccessibleRowDescription(int r); /** * Sets the description text of the specified row of the table. * * @param r zero-based row of the table * @param a the description of the row */ public void setAccessibleRowDescription(int r, Accessible a); /** * Returns the description text of the specified column in the table. * * @param c zero-based column of the table * @return the text description of the column */ public Accessible getAccessibleColumnDescription(int c); /** * Sets the description text of the specified column in the table. * * @param c zero-based column of the table * @param a the text description of the column */ public void setAccessibleColumnDescription(int c, Accessible a); /** * Returns a boolean value indicating whether the accessible at * a specified row and column is selected. * * @param r zero-based row of the table * @param c zero-based column of the table * @return the boolean value true if the accessible at the * row and column is selected. Otherwise, the boolean value * false */ public boolean isAccessibleSelected(int r, int c); /** * Returns a boolean value indicating whether the specified row * is selected. * * @param r zero-based row of the table * @return the boolean value true if the specified row is selected. * Otherwise, false. */ public boolean isAccessibleRowSelected(int r); /** * Returns a boolean value indicating whether the specified column * is selected. * * @param c zero-based column of the table * @return the boolean value true if the specified column is selected. * Otherwise, false. */ public boolean isAccessibleColumnSelected(int c); /** * Returns the selected rows in a table. * * @return an array of selected rows where each element is a * zero-based row of the table */ public int [] getSelectedAccessibleRows(); /** * Returns the selected columns in a table. * * @return an array of selected columns where each element is a * zero-based column of the table */ public int [] getSelectedAccessibleColumns(); }