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