1. /*
  2. * @(#)AccessibleValue.java 1.12 00/02/02
  3. *
  4. * Copyright 1997-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 AccessibleValue interface should be supported by any object
  13. * that supports a numerical value (e.g., a scroll bar). This interface
  14. * provides the standard mechanism for an assistive technology to determine
  15. * and set the numerical value as well as get the minimum and maximum values.
  16. * Applications can determine
  17. * if an object supports the AccessibleValue interface by first
  18. * obtaining its AccessibleContext (see
  19. * {@link Accessible}) and then calling the
  20. * {@link AccessibleContext#getAccessibleValue} method.
  21. * If the return value is not null, the object supports this interface.
  22. *
  23. * @see Accessible
  24. * @see Accessible#getAccessibleContext
  25. * @see AccessibleContext
  26. * @see AccessibleContext#getAccessibleValue
  27. *
  28. * @version 1.9 10/12/99 15:41:54
  29. * @author Peter Korn
  30. * @author Hans Muller
  31. * @author Willie Walker
  32. */
  33. public interface AccessibleValue {
  34. /**
  35. * Get the value of this object as a Number. If the value has not been
  36. * set, the return value will be null.
  37. *
  38. * @return value of the object
  39. * @see #setCurrentAccessibleValue
  40. */
  41. public Number getCurrentAccessibleValue();
  42. /**
  43. * Set the value of this object as a Number.
  44. *
  45. * @return True if the value was set; else False
  46. * @see #getCurrentAccessibleValue
  47. */
  48. public boolean setCurrentAccessibleValue(Number n);
  49. // /**
  50. // * Get the description of the value of this object.
  51. // *
  52. // * @return description of the value of the object
  53. // */
  54. // public String getAccessibleValueDescription();
  55. /**
  56. * Get the minimum value of this object as a Number.
  57. *
  58. * @return Minimum value of the object; null if this object does not
  59. * have a minimum value
  60. * @see #getMaximumAccessibleValue
  61. */
  62. public Number getMinimumAccessibleValue();
  63. /**
  64. * Get the maximum value of this object as a Number.
  65. *
  66. * @return Maximum value of the object; null if this object does not
  67. * have a maximum value
  68. * @see #getMinimumAccessibleValue
  69. */
  70. public Number getMaximumAccessibleValue();
  71. }