-
Notifications
You must be signed in to change notification settings - Fork 385
/
IScrollBar.as
61 lines (57 loc) · 1.82 KB
/
IScrollBar.as
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
/*
Feathers
Copyright 2012-2015 Bowler Hat LLC. All Rights Reserved.
This program is free software. You can redistribute and/or modify it in
accordance with the terms of the accompanying license agreement.
*/
package feathers.controls
{
/**
* Dispatched when the scroll bar's value changes.
*
* <p>The properties of the event object have the following values:</p>
* <table class="innertable">
* <tr><th>Property</th><th>Value</th></tr>
* <tr><td><code>bubbles</code></td><td>false</td></tr>
* <tr><td><code>currentTarget</code></td><td>The Object that defines the
* event listener that handles the event. For example, if you use
* <code>myButton.addEventListener()</code> to register an event listener,
* myButton is the value of the <code>currentTarget</code>.</td></tr>
* <tr><td><code>data</code></td><td>null</td></tr>
* <tr><td><code>target</code></td><td>The Object that dispatched the event;
* it is not always the Object listening for the event. Use the
* <code>currentTarget</code> property to always access the Object
* listening for the event.</td></tr>
* </table>
*
* @eventType starling.events.Event.CHANGE
*/
[Event(name="change",type="starling.events.Event")]
/**
* Minimum requirements for a scroll bar to be usable with a <code>Scroller</code>
* component.
*
* @see Scroller
*/
public interface IScrollBar extends IRange
{
/**
* The amount the scroll bar value must change to get from one "page" to
* the next.
*
* <p>In the following example, the page is changed to 10:</p>
*
* <listing version="3.0">
* scrollBar.minimum = 0;
* scrollBar.maximum = 100;
* scrollBar.step = 1;
* scrollBar.page = 10
* scrollBar.value = 12;</listing>
*/
function get page():Number;
/**
* @private
*/
function set page(value:Number):void;
}
}