| Package | org.aswing.event |
| Class | public class ScrollPaneEvent |
| Inheritance | ScrollPaneEvent InteractiveEvent AWEvent flash.events.Event |
JScrollPane.
| Method | Defined by | ||
|---|---|---|---|
|
ScrollPaneEvent(type:String, programmatic:Boolean = false, scrollbar:JScrollBar = null, viewportChanged:Boolean = false)
| ScrollPaneEvent | ||
|
clone():Event
| ScrollPaneEvent | ||
|
Returns the state just changed scrollbar, return null if this is not a scroll event.
| ScrollPaneEvent | ||
![]() |
isProgrammatic():Boolean
Returns the programmatic property.
| InteractiveEvent | |
|
isViewportChanged():Boolean
Return whether or not the viewport changed.
| ScrollPaneEvent | ||
| Constant | Defined by | ||
|---|---|---|---|
![]() | ACT : String = "act" [static]
The
AWEvent.ACT constant defines the value of the
type property of the event object for a act event. | AWEvent | |
![]() | FOCUS_GAINED : String = "focusGained" [static]
The
AWEvent.FOCUS_GAINED constant defines the value of the
type property of the event object for a focusGained event. | AWEvent | |
![]() | FOCUS_LOST : String = "focusLost" [static]
The
AWEvent.FOCUS_LOST constant defines the value of the
type property of the event object for a focusLost event. | AWEvent | |
![]() | HIDDEN : String = "hidden" [static]
The
AWEvent.HIDDEN constant defines the value of the
type property of the event object for a hidden event. | AWEvent | |
![]() | PAINT : String = "paint" [static]
The
AWEvent.PAINT constant defines the value of the
type property of the event object for a paint event. | AWEvent | |
| SCROLLBAR_STATE_CHANGED : String = "scrollbarStateChanged" [static]
The
ScrollPaneEvent.SCROLLBAR_STATE_CHANGED constant defines the value of the
type property of the event object for a scrollbarStateChanged event. | ScrollPaneEvent | ||
![]() | SCROLL_CHANGED : String = "scrollChanged" [static]
The
InteractiveEvent.SCROLL_CHANGED constant defines the value of the
type property of the event object for a scrollChanged event. | InteractiveEvent | |
![]() | SELECTION_CHANGED : String = "selectionChanged" [static]
The
InteractiveEvent.SELECTION_CHANGED constant defines the value of the
type property of the event object for a selectionChanged event. | InteractiveEvent | |
![]() | SHOWN : String = "shown" [static]
The
AWEvent.SHOWN constant defines the value of the
type property of the event object for a shown event. | AWEvent | |
![]() | STATE_CHANGED : String = "stateChanged" [static]
The
InteractiveEvent.STATE_CHANGED constant defines the value of the
type property of the event object for a stateChanged event. | InteractiveEvent | |
![]() | TEXT_CHANGED : String = "textChanged" [static]
The
InteractiveEvent.TEXT_CHANGED constant defines the value of the
type property of the event object for a textChanged event. | InteractiveEvent | |
| VIEWPORT_CHANGED : String = "viewportChanged" [static]
The
ScrollPaneEvent.VIEWPORT_CHANGED constant defines the value of the
type property of the event object for a viewportChanged event. | ScrollPaneEvent | ||
| ScrollPaneEvent | () | constructor |
public function ScrollPaneEvent(type:String, programmatic:Boolean = false, scrollbar:JScrollBar = null, viewportChanged:Boolean = false)Parameters
type:String |
|
programmatic:Boolean (default = false) |
|
scrollbar:JScrollBar (default = null) |
|
viewportChanged:Boolean (default = false) |
| clone | () | method |
public override function clone():Event
Returns
Event |
| getScrollBar | () | method |
public function getScrollBar():JScrollBarReturns the state just changed scrollbar, return null if this is not a scroll event.
ReturnsJScrollBar —
the state just changed scrollbar.
|
See also
| isViewportChanged | () | method |
public function isViewportChanged():BooleanReturn whether or not the viewport changed.
ReturnsBoolean — true if the viewport changed, false not.
|
See also
| SCROLLBAR_STATE_CHANGED | constant |
public static const SCROLLBAR_STATE_CHANGED:String = "scrollbarStateChanged"
The ScrollPaneEvent.SCROLLBAR_STATE_CHANGED 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 if this is an viewport changed event |
isViewportChanged() | true if viewport just changed, false if this is an scrollbar scrolled event. |
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. |
| VIEWPORT_CHANGED | constant |
public static const VIEWPORT_CHANGED:String = "viewportChanged"
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 if this is an viewport changed event |
isViewportChanged() | true if viewport just changed, false if this is an scrollbar scrolled event. |
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. |