com.vaadin.terminal
Interface Scrollable

All Superinterfaces:
Serializable
All Known Implementing Classes:
Panel, Window

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.

Since:
3.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd.

Method Summary
 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.
 

Method Detail

getScrollLeft

int getScrollLeft()
Gets scroll left offset.

Scrolling offset is the number of pixels this scrollable has been scrolled right.

Returns:
Horizontal scrolling position in pixels.

setScrollLeft

void setScrollLeft(int scrollLeft)
Sets scroll left offset.

Scrolling offset is the number of pixels this scrollable has been scrolled right.

Parameters:
scrollLeft - the xOffset.

getScrollTop

int getScrollTop()
Gets scroll top offset.

Scrolling offset is the number of pixels this scrollable has been scrolled down.

Returns:
Vertical scrolling position in pixels.

setScrollTop

void setScrollTop(int scrollTop)
Sets scroll top offset.

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.

Parameters:
scrollTop - the yOffset.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.