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