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:

PropertyValue
bubblesfalse
cancelablefalse
getScrollBar()the state just changed scrollbar, null

if this is an viewport changed event</td></tr>

isViewportChanged()true if viewport just changed,

false if this is an scrollbar scrolled event.</td></tr>

currentTargetThe 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.
targetThe 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:

PropertyValue
bubblesfalse
cancelablefalse
getScrollBar()the state just changed scrollbar, null

if this is an viewport changed event</td></tr>

isViewportChanged()true if viewport just changed,

false if this is an scrollbar scrolled event.</td></tr>

currentTargetThe 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.
targetThe 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 fieldsHide inherited public instance fields

Inherited from InteractiveEvent

function clone():Event
function isProgrammatic():Bool

Inherited from AWEvent

function clone():Event

Inherited from Event

var bubbles:Bool
var cancelable:Bool
var currentTarget:Dynamic
var eventPhase:EventPhase
var target:Dynamic
var type:String
function clone():Event
function formatToString(className:String, ?p1:Dynamic, ?p2:Dynamic, ?p3:Dynamic, ?p4:Dynamic, ?p5:Dynamic):String
function isDefaultPrevented():Bool
function preventDefault():Void
function stopImmediatePropagation():Void
function stopPropagation():Void
function toString():String

function new(type:String, ?programmatic:Bool = false, ?scrollbar:JScrollBar = null, ?viewportChanged:Bool = false): Void

function clone(): Event

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.