class org.aswing.event.TreeSelectionEvent extends InteractiveEvent

An event that characterizes a change in the current selection. The change is based on any number of paths. TreeSelectionListeners will generally query the source of the event for the new selected status of each potentially changed row.

@author paling

Class Fields

static var TREE_SELECTION_CHANGED:String

The TreeSelectionEvent.TREESELECTIONCHANGED constant defines the value of the type property of the event object for a treeSelectionChanged event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by

the programmatic reason, false means user mouse/keyboard interaction reason.</td></tr>

getPaths()changed paths.
getPath()first path.
isAddedPath()is the first path element has been added to the selection.
isAddedPathOfPath()is path is added.
isAddedPathOfIndex()is path specified by index is added.
getOldLeadSelectionPath()previously the lead path.
getNewLeadSelectionPath()current lead path.
cloneWithSource()clone with source.
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 treeSelectionChanged

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(source:Dynamic, programmatic:Bool, paths:Array<Dynamic>, areNew:Array<Dynamic>, oldLeadSelectionPath:TreePath, newLeadSelectionPath:TreePath): Void

Represents a change in the selection of a TreeSelectionModel. paths identifies the paths that have been either added or removed from the selection.

source

source of event

paths

the paths that have changed in the selection

function clone(): Event

function cloneWithSource(newSource:Dynamic): TreeSelectionEvent

Returns a copy of the receiver, but with the source being newSource.

function getNewLeadSelectionPath(): TreePath

Returns the current lead path.

function getOldLeadSelectionPath(): TreePath

Returns the path that was previously the lead path.

function getPath(): TreePath

Returns the first path element.

function getPaths(): Array<Dynamic>

Returns the paths(TreePath[]) that have been added or removed from the selection.

function getSource(): Dynamic

Returns the source.

function isAddedPath(): Bool

Returns true if the first path element has been added to the selection, a return value of false means the first path has been removed from the selection. @see #isAddedPathOfPath() @see #isAddedPathOfIndex()

function isAddedPathOfIndex(index:Int): Bool

Returns true if the path identified by index was added to the selection. A return value of false means the path was in the selection but is no longer in the selection. This will raise if index < 0 || >= getPaths.length.

function isAddedPathOfPath(path:TreePath): Bool

Returns true if the path identified by path was added to the selection. A return value of false means the path was in the selection but is no longer in the selection. This will raise if path is not one of the paths identified by this event.