1. /*
  2. * @(#)ScrollPaneConstants.java 1.12 01/11/29
  3. *
  4. * Copyright 2002 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.12 11/29/01
  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 vertical scroll bar policy property. */
  44. String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY";
  45. /** Identifies the horizontal scroll bar policy property. */
  46. String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY";
  47. /**
  48. * Used to set the vertical scroll bar policy so that
  49. * vertical scrollbars are displayed only when needed.
  50. */
  51. int VERTICAL_SCROLLBAR_AS_NEEDED = 20;
  52. /**
  53. * Used to set the vertical scroll bar policy so that
  54. * vertical scrollbars are never displayed.
  55. */
  56. int VERTICAL_SCROLLBAR_NEVER = 21;
  57. /**
  58. * Used to set the vertical scroll bar policy so that
  59. * vertical scrollbars are always displayed.
  60. */
  61. int VERTICAL_SCROLLBAR_ALWAYS = 22;
  62. /**
  63. * Used to set the horizontal scroll bar policy so that
  64. * horizontal scrollbars are displayed only when needed.
  65. */
  66. int HORIZONTAL_SCROLLBAR_AS_NEEDED = 30;
  67. /**
  68. * Used to set the horizontal scroll bar policy so that
  69. * horizontal scrollbars are never displayed.
  70. */
  71. int HORIZONTAL_SCROLLBAR_NEVER = 31;
  72. /**
  73. * Used to set the horizontal scroll bar policy so that
  74. * horizontal scrollbars are always displayed.
  75. */
  76. int HORIZONTAL_SCROLLBAR_ALWAYS = 32;
  77. }