|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScrollingInterface
ScrollingInterface defines a set of methods and constants for objects that support scrolling. This way all participating scrollable objects can be scrolled in a consistent manner.
Field Summary | |
---|---|
static int |
SCROLL_BLOCK
|
static int |
SCROLL_COLUMN
|
static int |
SCROLL_ELEMENT
|
static int |
SCROLL_HALF_PAGE
|
static int |
SCROLL_MAXIMUM
|
static int |
SCROLL_PAGE
|
static int |
SCROLL_PIXEL
|
static int |
SCROLL_ROW
|
Method Summary | |
---|---|
void |
scrollHorizontally(int numUnits,
int unit)
Scrolls horizontally. |
void |
scrollVertically(int numUnits,
int unit)
Scrolls vertically. |
Field Detail |
---|
static final int SCROLL_PAGE
static final int SCROLL_BLOCK
static final int SCROLL_HALF_PAGE
static final int SCROLL_MAXIMUM
static final int SCROLL_ELEMENT
static final int SCROLL_COLUMN
static final int SCROLL_ROW
static final int SCROLL_PIXEL
Method Detail |
---|
void scrollHorizontally(int numUnits, int unit)
numUnits
- Indicates the direction and amount to scroll. A positive number
scrolls forward (right). A negative number scrolls backward (left).
It is recommended that over-scrolls (e.g. scroll (5, PAGE) when there
are only 2 pages) be quietly handled.unit
- Indicates how to interpret numUnits. Must be one of the predefined
scroll amount constants. Every implementation will not support every
unique unit value, throw an IllegalArgumentException for those that aren't
supported.void scrollVertically(int numUnits, int unit)
numUnits
- Indicates the direction and amount to scroll. A positive number
scrolls forward (down). A negative number scrolls backward (up).
It is recommended that over-scrolls (e.g. scroll (5, PAGE) when there
are only 2 pages) be quietly handled.unit
- Indicates how to interpret numUnits. Must be one of the predefined
scroll amount constants. Every implementation will not support every
unique unit value, throw an IllegalArgumentException for those that aren't
supported.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |