|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.dnd.ScrollSupport
public class ScrollSupport
Adds scroll support to a given element.
Constructor Summary | |
---|---|
ScrollSupport()
Creates a new scroll support instance. |
|
ScrollSupport(El scrollElement)
Creates a new scroll support instance. |
Method Summary | |
---|---|
int |
getScrollDelay()
Returns the scroll delay. |
El |
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. |
protected void |
onMove(DomEvent de)
|
protected void |
onScrollDown(DomEvent de)
|
protected void |
onScrollUp(DomEvent de)
|
protected void |
onStart()
|
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(El 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()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScrollSupport()
setScrollElement(El)
.
public ScrollSupport(El scrollElement)
scrollElement
- the scroll elementMethod Detail |
---|
public int getScrollDelay()
public El 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(El 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()
protected void onMove(DomEvent de)
protected void onScrollDown(DomEvent de)
protected void onScrollUp(DomEvent de)
protected void onStart()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |