/* @ITMillApache2LicenseForJavaFiles@ */ package com.vaadin.terminal; import java.io.Serializable; /** *
* This interface is implemented by all visual objects that can be scrolled. The * unit of scrolling is pixel. *
* * @author IT Mill Ltd. * @version * @VERSION@ * @since 3.0 */ public interface Scrollable extends Serializable { /** * Gets scroll left offset. * ** Scrolling offset is the number of pixels this scrollable has been * scrolled right. *
* * @return Horizontal scrolling position in pixels. */ public int getScrollLeft(); /** * Sets scroll left offset. * ** Scrolling offset is the number of pixels this scrollable has been * scrolled right. *
* * @param pixelsScrolled * the xOffset. */ public void setScrollLeft(int pixelsScrolled); /** * Gets scroll top offset. * ** Scrolling offset is the number of pixels this scrollable has been * scrolled down. *
* * @return Vertical scrolling position in pixels. */ public int getScrollTop(); /** * Sets scroll top offset. * ** Scrolling offset is the number of pixels this scrollable has been * scrolled down. *
* * @param pixelsScrolled * the yOffset. */ public void setScrollTop(int pixelsScrolled); /** * Is the scrolling enabled. * ** Enabling scrolling allows the user to scroll the scrollable view * interactively *
* * @returntrue
if the scrolling is allowed, otherwise
* false
.
*/
public boolean isScrollable();
/**
* Enables or disables scrolling..
*
* * Enabling scrolling allows the user to scroll the scrollable view * interactively *
* * @param isScrollingEnabled * true if the scrolling is allowed. */ public void setScrollable(boolean isScrollingEnabled); }