/
Scrollable.js
107 lines (91 loc) · 2.4 KB
/
Scrollable.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/* API Version - 3.1.2 */
/**
* Interface for something that can be scrolled.
*
* @since API version 2
*/
function Scrollable() {}
Scrollable.prototype = new RelativeHardwarControlBindable();
Scrollable.prototype.constructor = Scrollable;
/**
* Value that reports the current scroll position.
*
* @return {SettableIntegerValue}
* @since API version 2
*/
Scrollable.prototype.scrollPosition = function() {};
/**
* Scrolls the supplied position into view if it isn't already.
*
* @param {int} position
* @since API version 7
*/
Scrollable.prototype.scrollIntoView = function(position) {};
/**
* Scrolls by a number of steps.
*
* @param amount
The number of steps to scroll by (positive is forwards and negative is backwards).
*/
Scrollable.prototype.scrollBy = function(amount) {};
/**
* Scrolls forwards by one step. This is the same as calling {@link #scrollBy(int)} with 1
*
* @since API version 2
*/
Scrollable.prototype.scrollForwards = function() {};
/**
* @return {HardwareActionBindable}
*/
Scrollable.prototype.scrollForwardsAction = function() {};
/**
* Scrolls forwards by one step. This is the same as calling {@link #scrollBy(int)} with -1
*
* @since API version 2
*/
Scrollable.prototype.scrollBackwards = function() {};
/**
* @return {HardwareActionBindable}
*/
Scrollable.prototype.scrollBackwardsAction = function() {};
/**
* Scrolls by a number of pages.
*
* @param amount
The number of pages to scroll by (positive is forwards and negative is backwards).
*/
Scrollable.prototype.scrollByPages = function(amount) {};
/**
* Scrolls forwards by one page.
*
* @since API version 2
*/
Scrollable.prototype.scrollPageForwards = function() {};
/**
* @return {HardwareActionBindable}
*/
Scrollable.prototype.scrollPageForwardsAction = function() {};
/**
* Scrolls backwards by one page.
*
* @since API version 2
*/
Scrollable.prototype.scrollPageBackwards = function() {};
/**
* @return {HardwareActionBindable}
*/
Scrollable.prototype.scrollPageBackwardsAction = function() {};
/**
* Value that reports if it is possible to scroll the bank backwards or not.
*
* @return {BooleanValue}
* @since API version 2
*/
Scrollable.prototype.canScrollBackwards = function() {};
/**
* Value that reports if it is possible to scroll the bank forwards or not.
*
* @return {BooleanValue}
* @since API version 2
*/
Scrollable.prototype.canScrollForwards = function() {};