|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.core.client.dom.AutoScrollSupport
public class AutoScrollSupport
Automatically scrolls an element when the mouse is near the top or bottom of the element.
Usestart() and stop() enable and disable.
| Constructor Summary | |
|---|---|
AutoScrollSupport()
Creates a new scroll support instance. |
|
AutoScrollSupport(XElement scrollElement)
Creates a new scroll support instance. |
|
| Method Summary | |
|---|---|
int |
getScrollDelay()
Returns the scroll delay. |
XElement |
getScrollElement()
Returns the scroll element. |
int |
getScrollRegionHeight()
Returns the scroll region height. |
int |
getScrollRepeatDelay()
Returns the scroll repeat delay. |
boolean |
isAutoScroll()
Returns true if auto scroll is enabled. |
void |
setAutoScroll(boolean autoScroll)
True to enable auto scroll (defaults to true). |
void |
setScrollDelay(int scrollDelay)
Sets the amount of time before auto scroll is activated (defaults to 400). |
void |
setScrollElement(XElement scrollElement)
Sets the scroll element. |
void |
setScrollRegionHeight(int scrollRegionHeight)
Sets the height of the scroll region (defaults to 25). |
void |
setScrollRepeatDelay(int scrollRepeatDelay)
Sets the amount of time between scroll changes after auto scrolling is activated (defaults to 300). |
void |
start()
Starts monitoring for auto scroll. |
void |
stop()
Stops monitoring for auto scroll. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutoScrollSupport()
setScrollElement(XElement).
public AutoScrollSupport(XElement scrollElement)
scrollElement - the scroll element| Method Detail |
|---|
public int getScrollDelay()
public XElement getScrollElement()
public int getScrollRegionHeight()
public int getScrollRepeatDelay()
public boolean isAutoScroll()
public void setAutoScroll(boolean autoScroll)
autoScroll - true if auto scroll is enabledpublic void setScrollDelay(int scrollDelay)
scrollDelay - the scroll delay in millisecondspublic void setScrollElement(XElement scrollElement)
scrollElement - the scroll elementpublic void setScrollRegionHeight(int scrollRegionHeight)
scrollRegionHeight - the scroll region in pixelspublic void setScrollRepeatDelay(int scrollRepeatDelay)
scrollRepeatDelay - the repeat delay in millisecondspublic void start()
public void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||