public interface JScrollPaneToolkitComponent extends ScrollingToolkitComponent, SwingToolkitComponent
ScrollingToolkitComponent) can implement this
interface, if they provide scrolling functionality using a JScrollPane. It contains
default method implementations that delegate the scrolling methods of ScrollingToolkitComponent
to JScrollPane.
Implementations of this interface must call
SwingComponentTools.registerScrollEventForwarders(JScrollPaneToolkitComponent) in their
constructor to ensure the associated ScrollingTICComponent fires correct scroll events.
Note that this interface is not meant and does not tag a class to provide any functionality in addition
to ScrollingToolkitComponent. Swing components that provide scrolling functionality
directly instead of relying in JScrollPane should implement
JScrollBarsToolkitComponent or ScrollingToolkitComponent directly and
implement its methods respectively.
ScrollingToolkitComponent,
JScrollBarsToolkitComponent| Modifier and Type | Method and Description |
|---|---|
javax.swing.JScrollPane |
getScrollPane() |
default java.awt.Rectangle |
getVisibleRectangle() |
default void |
setScrollOffset(int x,
int y) |
getIndependentComponentassignSize, getLocationInParent, getSwingComponent, getTargetToolkit, getToolkitSizeisFocusOwner, repaint, requestFocusjavax.swing.JScrollPane getScrollPane()
default void setScrollOffset(int x, int y)
setScrollOffset in interface ScrollingToolkitComponentdefault java.awt.Rectangle getVisibleRectangle()
getVisibleRectangle in interface ScrollingToolkitComponent