123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- /*
- @ITMillApache2LicenseForJavaFiles@
- */
-
- package com.itmill.toolkit.terminal;
-
- /**
- * <p>
- * This interface is implemented by all visual objects that can be scrolled. The
- * unit of scrolling is pixel.
- * </p>
- *
- * @author IT Mill Ltd.
- * @version
- * @VERSION@
- * @since 3.0
- */
- public interface Scrollable {
-
- /**
- * Gets scroll X offset.
- *
- * <p>
- * Scrolling offset is the number of pixels this scrollable has been
- * scrolled to left.
- * </p>
- *
- * @return Horizontal scrolling position in pixels.
- */
- public int getScrollOffsetX();
-
- /**
- * Sets scroll X offset.
- *
- * <p>
- * Scrolling offset is the number of pixels this scrollable has been
- * scrolled to left.
- * </p>
- *
- * @param pixelsScrolledLeft
- * the xOffset.
- */
- public void setScrollOffsetX(int pixelsScrolledLeft);
-
- /**
- * Gets scroll Y offset.
- *
- * <p>
- * Scrolling offset is the number of pixels this scrollable has been
- * scrolled to down.
- * </p>
- *
- * @return Vertical scrolling position in pixels.
- */
- public int getScrollOffsetY();
-
- /**
- * Sets scroll Y offset.
- *
- * <p>
- * Scrolling offset is the number of pixels this scrollable has been
- * scrolled to down.
- * </p>
- *
- * @param pixelsScrolledDown
- * the yOffset.
- */
- public void setScrollOffsetY(int pixelsScrolledDown);
-
- /**
- * Is the scrolling enabled.
- *
- * <p>
- * Enabling scrolling allows the user to scroll the scrollable view
- * interactively
- * </p>
- *
- * @return <code>true</code> if the scrolling is allowed, otherwise
- * <code>false</code>.
- */
- public boolean isScrollable();
-
- /**
- * Enables or disables scrolling..
- *
- * <p>
- * Enabling scrolling allows the user to scroll the scrollable view
- * interactively
- * </p>
- *
- * @param isScrollingEnabled
- * true if the scrolling is allowed.
- */
- public void setScrollable(boolean isScrollingEnabled);
-
- }
|