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