aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/Scrollable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/terminal/Scrollable.java')
-rw-r--r--src/com/vaadin/terminal/Scrollable.java60
1 files changed, 5 insertions, 55 deletions
diff --git a/src/com/vaadin/terminal/Scrollable.java b/src/com/vaadin/terminal/Scrollable.java
index dac35c7704..472954c556 100644
--- a/src/com/vaadin/terminal/Scrollable.java
+++ b/src/com/vaadin/terminal/Scrollable.java
@@ -9,8 +9,7 @@ import java.io.Serializable;
/**
* <p>
* This interface is implemented by all visual objects that can be scrolled
- * programmatically from the server-side, or for which it is possible to know
- * the scroll position on the server-side. The unit of scrolling is pixel.
+ * programmatically from the server-side. The unit of scrolling is pixel.
* </p>
*
* @author Vaadin Ltd.
@@ -40,17 +39,10 @@ public interface Scrollable extends Serializable {
* scrolled right.
* </p>
*
- * <p>
- * The method only has effect if programmatic scrolling is enabled for the
- * scrollable. Some implementations may require enabling programmatic before
- * this method can be used. See {@link #setScrollable(boolean)} for more
- * information.
- * </p>
- *
- * @param pixelsScrolled
+ * @param scrollLeft
* the xOffset.
*/
- public void setScrollLeft(int pixelsScrolled);
+ public void setScrollLeft(int scrollLeft);
/**
* Gets scroll top offset.
@@ -73,13 +65,6 @@ public interface Scrollable extends Serializable {
* </p>
*
* <p>
- * The method only has effect if programmatic scrolling is enabled for the
- * scrollable. Some implementations may require enabling programmatic before
- * this method can be used. See {@link #setScrollable(boolean)} for more
- * information.
- * </p>
- *
- * <p>
* 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,
@@ -87,44 +72,9 @@ public interface Scrollable extends Serializable {
* area.
* </p>
*
- * @param pixelsScrolled
+ * @param scrollTop
* the yOffset.
*/
- public void setScrollTop(int pixelsScrolled);
-
- /**
- * Is programmatic scrolling enabled.
- *
- * <p>
- * Whether programmatic scrolling with {@link #setScrollLeft(int)} and
- * {@link #setScrollTop(int)} is enabled.
- * </p>
- *
- * @return <code>true</code> if the scrolling is enabled, otherwise
- * <code>false</code>.
- */
- public boolean isScrollable();
-
- /**
- * Enables or disables programmatic scrolling.
- *
- * <p>
- * Enables setting the scroll position with {@link #setScrollLeft(int)} and
- * {@link #setScrollTop(int)}. Implementations of the interface may have
- * programmatic scrolling disabled by default, in which case you need to
- * enable it to use the mentioned methods.
- * </p>
- *
- * <p>
- * Notice that this does <i>not</i> control whether scroll bars are shown
- * for a scrollable component. That normally happens automatically when the
- * content grows too big for the component, relying on the "overflow: auto"
- * property in CSS.
- * </p>
- *
- * @param isScrollingEnabled
- * true if the scrolling is allowed.
- */
- public void setScrollable(boolean isScrollingEnabled);
+ public void setScrollTop(int scrollTop);
}