public interface Scrollable extends Serializable
This interface is implemented by all visual objects that can be scrolled programmatically from the server-side. The unit of scrolling is pixel.
Modifier and Type | Method and Description |
---|---|
int |
getScrollLeft()
Gets scroll left offset.
|
int |
getScrollTop()
Gets scroll top offset.
|
void |
setScrollLeft(int scrollLeft)
Sets scroll left offset.
|
void |
setScrollTop(int scrollTop)
Sets scroll top offset.
|
int getScrollLeft()
Scrolling offset is the number of pixels this scrollable has been scrolled right.
void setScrollLeft(int scrollLeft)
Scrolling offset is the number of pixels this scrollable has been scrolled right.
scrollLeft
- the xOffset.int getScrollTop()
Scrolling offset is the number of pixels this scrollable has been scrolled down.
void setScrollTop(int scrollTop)
Scrolling offset is the number of pixels this scrollable has been scrolled down.
The scrolling position is limited by the current height of the content area. If the position is below the height, it is scrolled to the bottom. However, if the same response also adds height to the content area, scrolling to bottom only scrolls to the bottom of the previous content area.
scrollTop
- the yOffset.Copyright © 2019 Vaadin Ltd. All rights reserved.