Package | mx.collections |
Interface | public interface IHierarchicalCollectionViewCursor extends IViewCursor , IEventDispatcher |
Implementors | HierarchicalCollectionViewCursor |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Related API Elements
mx.collections.IViewCursor
mx.controls.IHierarchicalCollectionView
mx.controls.IHierarchicalCollectionView
Public Properties
Property | Defined By | ||
---|---|---|---|
![]() | afterLast : Boolean [read-only]
If the cursor is located after the last item in the view,
this property is true . | IViewCursor | |
![]() | beforeFirst : Boolean [read-only]
If the cursor is located before the first item in the view,
this property is true. | IViewCursor | |
![]() | bookmark : CursorBookmark [read-only]
Provides access to a bookmark that corresponds to the item
returned by the current property. | IViewCursor | |
![]() | current : Object [read-only]
Provides access the object at the location
in the source collection referenced by this cursor. | IViewCursor | |
currentDepth : int [read-only]
Contains the depth of the node at the location
in the source collection referenced by this cursor. | IHierarchicalCollectionViewCursor | ||
![]() | view : ICollectionView [read-only]
A reference to the ICollectionView with which this cursor is associated. | IViewCursor |
Public Methods
Method | Defined By | ||
---|---|---|---|
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | IEventDispatcher | |
![]() |
Dispatches an event into the event flow. | IEventDispatcher | |
![]() |
Finds an item with the specified properties within the collection
and positions the cursor to that item. | IViewCursor | |
![]() |
Finds the first item with the specified properties within the collection
and positions the cursor to that item. | IViewCursor | |
![]() |
Finds the last item with the specified properties within the collection
and positions the cursor on that item. | IViewCursor | |
![]() |
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | IEventDispatcher | |
![]() |
Inserts the specified item before the cursor's current position. | IViewCursor | |
![]() |
Moves the cursor to the next item within the collection. | IViewCursor | |
![]() |
Moves the cursor to the previous item within the collection. | IViewCursor | |
![]() |
Removes the current item and returns it. | IViewCursor | |
![]() |
Removes a listener from the EventDispatcher object. | IEventDispatcher | |
![]() |
Moves the cursor to a location at an offset from the specified
bookmark. | IViewCursor | |
![]() |
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | IEventDispatcher |
Property Detail
currentDepth | property |
currentDepth:int
[read-only] Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Contains the depth of the node at the location in the source collection referenced by this cursor. If the cursor is beyond the end of the collection, this property contains 0.
Implementation
public function get currentDepth():int
Thu Dec 4 2014, 05:50 PM -08:00