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. * Class AccessibleExtendedTable provides extended information about
  11. * a user-interface component that presents data in a two-dimensional
  12. * table format.
  13. * Applications can determine if an object supports the
  14. * AccessibleExtendedTable interface by first obtaining its
  15. * AccessibleContext and then calling the
  16. * {@link AccessibleContext#getAccessibleTable} method.
  17. * If the return value is not null and the type of the return value is
  18. * AccessibleExtendedTable, the object supports this interface.
  19. *
  20. * @version 1.5 12/19/03
  21. * @author Lynn Monsanto
  22. */
  23. public interface AccessibleExtendedTable extends AccessibleTable {
  24. /**
  25. * Returns the row number of an index in the table.
  26. *
  27. * @param index the zero-based index in the table. The index is
  28. * the table cell offset from row == 0 and column == 0.
  29. * @return the zero-based row of the table if one exists;
  30. * otherwise -1.
  31. */
  32. public int getAccessibleRow(int index);
  33. /**
  34. * Returns the column number of an index in the table.
  35. *
  36. * @param index the zero-based index in the table. The index is
  37. * the table cell offset from row == 0 and column == 0.
  38. * @return the zero-based column of the table if one exists;
  39. * otherwise -1.
  40. */
  41. public int getAccessibleColumn(int index);
  42. /*
  43. * Returns the index at a row and column in the table.
  44. *
  45. * @param r zero-based row of the table
  46. * @param c zero-based column of the table
  47. * @return the zero-based index in the table if one exists;
  48. * otherwise -1. The index is the table cell offset from
  49. * row == 0 and column == 0.
  50. */
  51. public int getAccessibleIndex(int r, int c);
  52. }