Class IndexedScrollPane

All Implemented Interfaces:
IndexScrollListener, ImageObserver, MenuContainer, Serializable, Accessible

public class IndexedScrollPane extends JPanel implements IndexScrollListener
See Also:
  • Constructor Details

    • IndexedScrollPane

      public IndexedScrollPane(JComponent comp)
  • Method Details

    • setNeverScroll

      public void setNeverScroll(boolean b)
      Sets this scroll pane to never show scroll bars. This is useful when you want a container whose view is always as big as the component in this scroll pane.
    • setVerticalScrollBarPolicy

      public void setVerticalScrollBarPolicy(int policy)
      See Also:
    • setHorizontalScrollBarPolicy

      public void setHorizontalScrollBarPolicy(int policy)
      See Also:
    • getViewSize

      public Dimension getViewSize()
    • viewportStateChanged

      public void viewportStateChanged()
    • indexRangeChanged

      public void indexRangeChanged(BigInteger startIndex, BigInteger endIndex, int yStart, int yEnd)
      Specified by:
      indexRangeChanged in interface IndexScrollListener
    • indexModelChanged

      public void indexModelChanged()
      Specified by:
      indexModelChanged in interface IndexScrollListener
    • indexModelDataChanged

      public void indexModelDataChanged(BigInteger start, BigInteger end)
      Specified by:
      indexModelDataChanged in interface IndexScrollListener
    • getHorizontalScrollBar

      public JScrollBar getHorizontalScrollBar()
    • setColumnHeader

      public void setColumnHeader(JViewport header)
    • setColumnHeaderComp

      public void setColumnHeaderComp(JComponent comp)
    • getColumnHeader

      public JViewport getColumnHeader()
    • getVerticalScrollBar

      public JScrollBar getVerticalScrollBar()
    • getViewportBorderBounds

      public Rectangle getViewportBorderBounds()
    • setScrollbarSideKickComponent

      public void setScrollbarSideKickComponent(JComponent component)
    • setWheelScrollingEnabled

      public void setWheelScrollingEnabled(boolean enabled)
      Sets whether the scroll wheel triggers scrolling when over the scroll pane of this class. When disabled, scrolling will still work when over the component inside of this class, but not when over the scroll bar.
      Parameters:
      enabled - true to enable