class org.aswing.event.ScrollPaneEvent extends InteractiveEvent
The event for JScrollPane
.
@author paling
Class Fields
static var SCROLLBAR_STATE_CHANGED:String
The ScrollPaneEvent.SCROLLBARSTATECHANGED
constant defines the value of the
type
property of the event object for a scrollbarStateChanged
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
getScrollBar() | the state just changed scrollbar, null
|
isViewportChanged() | true if viewport just changed,
|
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
comp.addEventListener() to register an event listener,
comp is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
@eventType scrollbarStateChanged
static var VIEWPORT_CHANGED:String
The ScrollPaneEvent.VIEWPORT_CHANGED
constant defines the value of the
type
property of the event object for a viewportChanged
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
getScrollBar() | the state just changed scrollbar, null
|
isViewportChanged() | true if viewport just changed,
|
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
comp.addEventListener() to register an event listener,
comp is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
@eventType viewportChanged
Instance Fields
Show inherited public instance fields | Hide inherited public instance fields
|
function new(type:String, ?programmatic:Bool = false, ?scrollbar:JScrollBar = null, ?viewportChanged:Bool = false): Void
function getScrollBar(): JScrollBar
Returns the state just changed scrollbar, return null if this is not a scroll event. @see #isViewportChanged()
returns | the state just changed scrollbar. |
function isViewportChanged(): Bool
Return whether or not the viewport changed. @see #getScrollBar()
returns | true if the viewport changed, false not. |