/* @ITMillApache2LicenseForJavaFiles@ */ package com.itmill.toolkit.terminal; /** *
* 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 { /** * Gets scroll X offset. * ** Scrolling offset is the number of pixels this scrollable has been * scrolled to left. *
* * @return Horizontal scrolling position in pixels. */ public int getScrollOffsetX(); /** * Sets scroll X offset. * ** Scrolling offset is the number of pixels this scrollable has been * scrolled to left. *
* * @param pixelsScrolledLeft * the xOffset. */ public void setScrollOffsetX(int pixelsScrolledLeft); /** * Gets scroll Y offset. * ** Scrolling offset is the number of pixels this scrollable has been * scrolled to down. *
* * @return Vertical scrolling position in pixels. */ public int getScrollOffsetY(); /** * Sets scroll Y offset. * ** Scrolling offset is the number of pixels this scrollable has been * scrolled to down. *
* * @param pixelsScrolledDown * the yOffset. */ public void setScrollOffsetY(int pixelsScrolledDown); /** * 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); }