1. /*
  2. * @(#)ScrollPaneConstants.java 1.14 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.swing;
  11. /**
  12. * Constants used with the JScrollPane component.
  13. *
  14. * @version 1.14 02/02/00
  15. * @author Hans Muller
  16. */
  17. public interface ScrollPaneConstants
  18. {
  19. /**
  20. * Identifies a "viewport" or display area, within which
  21. * scrolled contents are visible.
  22. */
  23. String VIEWPORT = "VIEWPORT";
  24. /** Identifies a vertical scrollbar. */
  25. String VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR";
  26. /** Identifies a horizonal scrollbar. */
  27. String HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR";
  28. /**
  29. * Identifies the area along the left side of the viewport between the
  30. * upper left corner and the lower left corner.
  31. */
  32. String ROW_HEADER = "ROW_HEADER";
  33. /**
  34. * Identifies the area at the top the viewport between the
  35. * upper left corner and the upper right corner.
  36. */
  37. String COLUMN_HEADER = "COLUMN_HEADER";
  38. /** Identifies the lower left corner of the viewport. */
  39. String LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER";
  40. /** Identifies the lower right corner of the viewport. */
  41. String LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER";
  42. /** Identifies the upper left corner of the viewport. */
  43. String UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER";
  44. /** Identifies the upper right corner of the viewport. */
  45. String UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER";
  46. /** Identifies the lower leading edge corner of the viewport. The leading edge
  47. * is determined relative to the Scroll Pane's ComponentOrientation property.
  48. */
  49. String LOWER_LEADING_CORNER = "LOWER_LEADING_CORNER";
  50. /** Identifies the lower trailing edge corner of the viewport. The trailing edge
  51. * is determined relative to the Scroll Pane's ComponentOrientation property.
  52. */
  53. String LOWER_TRAILING_CORNER = "LOWER_TRAILING_CORNER";
  54. /** Identifies the upper leading edge corner of the viewport. The leading edge
  55. * is determined relative to the Scroll Pane's ComponentOrientation property.
  56. */
  57. String UPPER_LEADING_CORNER = "UPPER_LEADING_CORNER";
  58. /** Identifies the upper trailing edge corner of the viewport. The trailing edge
  59. * is determined relative to the Scroll Pane's ComponentOrientation property.
  60. */
  61. String UPPER_TRAILING_CORNER = "UPPER_TRAILING_CORNER";
  62. /** Identifies the vertical scroll bar policy property. */
  63. String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY";
  64. /** Identifies the horizontal scroll bar policy property. */
  65. String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY";
  66. /**
  67. * Used to set the vertical scroll bar policy so that
  68. * vertical scrollbars are displayed only when needed.
  69. */
  70. int VERTICAL_SCROLLBAR_AS_NEEDED = 20;
  71. /**
  72. * Used to set the vertical scroll bar policy so that
  73. * vertical scrollbars are never displayed.
  74. */
  75. int VERTICAL_SCROLLBAR_NEVER = 21;
  76. /**
  77. * Used to set the vertical scroll bar policy so that
  78. * vertical scrollbars are always displayed.
  79. */
  80. int VERTICAL_SCROLLBAR_ALWAYS = 22;
  81. /**
  82. * Used to set the horizontal scroll bar policy so that
  83. * horizontal scrollbars are displayed only when needed.
  84. */
  85. int HORIZONTAL_SCROLLBAR_AS_NEEDED = 30;
  86. /**
  87. * Used to set the horizontal scroll bar policy so that
  88. * horizontal scrollbars are never displayed.
  89. */
  90. int HORIZONTAL_SCROLLBAR_NEVER = 31;
  91. /**
  92. * Used to set the horizontal scroll bar policy so that
  93. * horizontal scrollbars are always displayed.
  94. */
  95. int HORIZONTAL_SCROLLBAR_ALWAYS = 32;
  96. }