1. /*
  2. * @(#)AccessibleTableModelChange.java 1.9 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.accessibility;
  8. /**
  9. * The AccessibleTableModelChange interface describes a change to
  10. * the table model. The attributes of the model change can be
  11. * obtained by the following methods:
  12. * <ul>
  13. * <li> public int getType()
  14. * <li> public int getFirstRow();
  15. * <li> public int getLastRow();
  16. * <li> public int getFirstColumn();
  17. * <li> public int getLastColumn();
  18. * </ul>
  19. * The model change type returned by getType() will be one of:
  20. * <ul>
  21. * <li> INSERT - one or more rows and/or columns have been inserted
  22. * <li> UPDATE - some of the table data has changed
  23. * <li> DELETE - one or more rows and/or columns have been deleted
  24. * </ul>
  25. * The affected area of the table can be determined by the other
  26. * four methods which specify ranges of rows and columns
  27. *
  28. * @see Accessible
  29. * @see Accessible#getAccessibleContext
  30. * @see AccessibleContext
  31. * @see AccessibleContext#getAccessibleTable
  32. *
  33. * @version 1.2 10/12/99
  34. * @author Lynn Monsanto
  35. */
  36. public interface AccessibleTableModelChange {
  37. /**
  38. * Identifies the insertion of new rows and/or columns.
  39. */
  40. public static final int INSERT = 1;
  41. /**
  42. * Identifies a change to existing data.
  43. */
  44. public static final int UPDATE = 0;
  45. /**
  46. * Identifies the deletion of rows and/or columns.
  47. */
  48. public static final int DELETE = -1;
  49. /**
  50. * Returns the type of event
  51. *
  52. * @see #INSERT
  53. * @see #UPDATE
  54. * @see #DELETE
  55. */
  56. public int getType();
  57. /**
  58. * Returns the first row that changed.
  59. */
  60. public int getFirstRow();
  61. /**
  62. * Returns the last row that changed.
  63. */
  64. public int getLastRow();
  65. /**
  66. * Returns the first column that changed.
  67. */
  68. public int getFirstColumn();
  69. /**
  70. * Returns the last column that changed.
  71. */
  72. public int getLastColumn();
  73. }