Package | feathers.extensions.tree.events |
Class | public class DragDropTreeEvent |
Inheritance | DragDropTreeEvent ![]() ![]() |
See also
Property | Defined By | ||
---|---|---|---|
![]() | bubbles : Boolean [read-only] Indicates if event will bubble. | Event | |
![]() | currentTarget : EventDispatcher [read-only] The object the event is currently bubbling at. | Event | |
![]() | data : Object [read-only] Arbitrary data that is attached to the event. | Event | |
DRAG_COMPLETE : String = dragComplete [static]
Dispatched when a tree item is dragged and dropped. | DragDropTreeEvent | ||
isParentDirectory : Boolean [read-only]
Indicates whether the dropped item is a branch. | DragDropTreeEvent | ||
lastIndex : Vector.<int> [read-only]
The last index of the dragged and dropped tree item. | DragDropTreeEvent | ||
newIndex : Vector.<int> [read-only]
The new index of the dragged and dropped tree item. | DragDropTreeEvent | ||
![]() | target : EventDispatcher [read-only] The object that dispatched the event. | Event | |
![]() | type : String [read-only] A string that identifies the event. | Event |
Method | Defined By | ||
---|---|---|---|
DragDropTreeEvent(type:String, newIndex:Vector.<int>, lastIndex:Vector.<int>, isParentDirectory:Boolean, bubbles:Boolean = false, cancelable:Boolean = false) | DragDropTreeEvent | ||
![]() | stopImmediatePropagation():void Prevents any other listeners from receiving the event. | Event | |
![]() | stopPropagation():void Prevents listeners at the next bubble stage from receiving the event. | Event | |
![]() | toString():String Returns a description of the event, containing type and bubble information. | Event |
DRAG_COMPLETE | property |
public static var DRAG_COMPLETE:String = dragComplete
Dispatched when a tree item is dragged and dropped.
isParentDirectory | property |
isParentDirectory:Boolean
[read-only] Indicates whether the dropped item is a branch. Return true if the dropped item is a directory, see newIndex.
public function get isParentDirectory():Boolean
lastIndex | property |
lastIndex:Vector.<int>
[read-only] The last index of the dragged and dropped tree item.
public function get lastIndex():Vector.<int>
newIndex | property |
newIndex:Vector.<int>
[read-only] The new index of the dragged and dropped tree item. If the dropped item is a directory, newIndex return the parent item index.
public function get newIndex():Vector.<int>
DragDropTreeEvent | () | Constructor |
public function DragDropTreeEvent(type:String, newIndex:Vector.<int>, lastIndex:Vector.<int>, isParentDirectory:Boolean, bubbles:Boolean = false, cancelable:Boolean = false)
type:String | |
newIndex:Vector.<int> | |
lastIndex:Vector.<int> | |
isParentDirectory:Boolean | |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|