Package org.apache.pivot.wtk
Interface ScrollBarListener
-
- All Known Implementing Classes:
ScrollBarListener.Adapter
,ScrollBarListener.Listeners
,TerraScrollBarSkin
public interface ScrollBarListener
Scroll bar listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ScrollBarListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
ScrollBarListener.Listeners
Scroll bar listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
blockIncrementChanged(ScrollBar scrollBar, int previousBlockIncrement)
Called when a scroll bar's block increment has changed.default void
orientationChanged(ScrollBar scrollBar, Orientation previousOrientation)
Called when a scroll bar's orientation has changed.default void
scopeChanged(ScrollBar scrollBar, int previousStart, int previousEnd, int previousExtent)
Called when a scroll bar's scope has changed.default void
unitIncrementChanged(ScrollBar scrollBar, int previousUnitIncrement)
Called when a scroll bar's unit increment has changed.
-
-
-
Method Detail
-
orientationChanged
default void orientationChanged(ScrollBar scrollBar, Orientation previousOrientation)
Called when a scroll bar's orientation has changed.- Parameters:
scrollBar
- The scroll bar that changed orientation.previousOrientation
- The previous orientation.
-
scopeChanged
default void scopeChanged(ScrollBar scrollBar, int previousStart, int previousEnd, int previousExtent)
Called when a scroll bar's scope has changed.- Parameters:
scrollBar
- The scroll bar that changed.previousStart
- The previous start value.previousEnd
- The previous end value.previousExtent
- The previous scroll bar extent value.
-
unitIncrementChanged
default void unitIncrementChanged(ScrollBar scrollBar, int previousUnitIncrement)
Called when a scroll bar's unit increment has changed.- Parameters:
scrollBar
- The scroll bar that changed.previousUnitIncrement
- The previous unit increment value.
-
blockIncrementChanged
default void blockIncrementChanged(ScrollBar scrollBar, int previousBlockIncrement)
Called when a scroll bar's block increment has changed.- Parameters:
scrollBar
- The scroll bar that changed.previousBlockIncrement
- The previous block increment value.
-
-