public class AutoScrollSupport extends Object
Constructor and Description |
---|
AutoScrollSupport()
Creates a new scroll support instance.
|
AutoScrollSupport(XElement scrollElement)
Creates a new scroll support instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public AutoScrollSupport()
setScrollElement(XElement)
.public AutoScrollSupport(XElement scrollElement)
scrollElement
- the scroll elementpublic 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()
Copyright © 2015. All rights reserved.