tim richter

The ScrollPane contains an encapsulated view and handles the overflow of that view.

The ScrollPane itself is a container that has its own width and height measurement in the layout cycle, so it is totally encapsulated from the underlying view.

It is configurable with a horizontal and/or vertical ScrollBar. These ScrollBars get their components (arrows, thumb, track) from a ScrollBarFactory, so it is possible to change the look-and-feel at runtime.

In addition, it has an attribute variant, which can be configured with the following values:

  • ScrollBarVariant.DOUBLE_BOTTOM (arrows are side-by-side at the bottom/right)
  • ScrollBarVariant.DOUBLE_TOP (arrows are side-by-side at the top/left)
  • ScrollBarVariant.SINGLE (arrows are seperated; this is the default variant)
  • Read more...