|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scrollable
This interface is implemented by all visual objects that can be scrolled. The unit of scrolling is pixel.
Method Summary | |
---|---|
int |
getScrollLeft()
Gets scroll left offset. |
int |
getScrollTop()
Gets scroll top offset. |
boolean |
isScrollable()
Is the scrolling enabled. |
void |
setScrollable(boolean isScrollingEnabled)
Enables or disables scrolling.. |
void |
setScrollLeft(int pixelsScrolled)
Sets scroll left offset. |
void |
setScrollTop(int pixelsScrolled)
Sets scroll top offset. |
Method Detail |
---|
int getScrollLeft()
Scrolling offset is the number of pixels this scrollable has been scrolled right.
void setScrollLeft(int pixelsScrolled)
Scrolling offset is the number of pixels this scrollable has been scrolled right.
pixelsScrolled
- the xOffset.int getScrollTop()
Scrolling offset is the number of pixels this scrollable has been scrolled down.
void setScrollTop(int pixelsScrolled)
Scrolling offset is the number of pixels this scrollable has been scrolled down.
pixelsScrolled
- the yOffset.boolean isScrollable()
Enabling scrolling allows the user to scroll the scrollable view interactively
true
if the scrolling is allowed, otherwise
false
.void setScrollable(boolean isScrollingEnabled)
Enabling scrolling allows the user to scroll the scrollable view interactively
isScrollingEnabled
- true if the scrolling is allowed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |