com.extjs.gxt.ui.client.util.Scroll Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxt Show documentation
Show all versions of gxt Show documentation
Rich Internet Application Framework for GWT
/*
* Sencha GXT 2.3.1a - Sencha for GWT
* Copyright(c) 2007-2013, Sencha, Inc.
* [email protected]
*
* http://www.sencha.com/products/gxt/license/
*/
package com.extjs.gxt.ui.client.util;
/**
* Represents the left and top scroll values.
*/
public class Scroll {
private int scrollLeft;
private int scrollTop;
public Scroll(int scrollLeft, int scrollTop) {
this.scrollLeft = scrollLeft;
this.scrollTop = scrollTop;
}
/**
* Returns the scroll left value.
*
* @return the scroll left value
*/
public int getScrollLeft() {
return scrollLeft;
}
/**
* Returns the scroll top value.
*
* @return the scroll top value
*/
public int getScrollTop() {
return scrollTop;
}
/**
* Sets the scroll left value.
*
* @param scrollLeft the scroll left value
*/
public void setScrollLeft(int scrollLeft) {
this.scrollLeft = scrollLeft;
}
/**
* Sets the scroll top value.
*
* @param scrollTop the scroll top value
*/
public void setScrollTop(int scrollTop) {
this.scrollTop = scrollTop;
}
}