class org.aswing.event.InteractiveEvent extends AWEvent
Sub classes | ||||||||||||
![]() | FrameEvent, ScrollPaneEvent, SelectionEvent, TreeSelectionEvent, WindowEvent |
|
The event that has is about interactive.
The important property programmatic
indicated that
whether or not the event is fired by the programmatic reason or user mouse/keyboard interaction reason.
Class Fields
static var SCROLL_CHANGED:String
The InteractiveEvent.SCROLL_CHANGED
constant defines the value of the
type
property of the event object for a scrollChanged
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
isProgrammatic() | True means this event is fired by
|
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 scrollChanged
static var SELECTION_CHANGED:String
The InteractiveEvent.SELECTION_CHANGED
constant defines the value of the
type
property of the event object for a selectionChanged
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
isProgrammatic() | True means this event is fired by
|
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 selectionChanged
static var STATE_CHANGED:String
The InteractiveEvent.STATE_CHANGED
constant defines the value of the
type
property of the event object for a stateChanged
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
isProgrammatic() | True means this event is fired by
|
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 stateChanged
static var TEXT_CHANGED:String
The InteractiveEvent.TEXT_CHANGED
constant defines the value of the
type
property of the event object for a textChanged
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
isProgrammatic() | True means this event is fired by
|
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 textChanged
Instance Fields
![]() | Show inherited public instance fields | Hide inherited public instance fields
|
function new(type:String, ?programmatic:Bool = false, ?bubbles:Bool = false, ?cancelable:Bool = false): Void
function isProgrammatic(): Bool
Returns the programmatic property. True means this event is fired by the programmatic reason, false means user mouse/keyboard interaction reason.
For example, if you drag the thumb of a slider, the slider will fire a event with programmatic=false
,
in the slider internal programmatic progress, or you directly call slider.setValue()
it may fire a event with programmatic=true
.
returns | the programmatic property. |