Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
CursorBookmark

Package | mx.collections
Class | public class CursorBookmark
Inheritance | CursorBookmark Object

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Encapsulates the positional aspects of a cursor in an `ICollectionView`. Bookmarks are used to return a cursor to an absolute position within the `ICollectionView`.

See also

mx.collections.IViewCursor.bookmark
mx.collections.IViewCursor.seek()

Public Properties

| Property | Defined By
--- | --- | ---
|  | CURRENT : CursorBookmark [static] [read-only] A bookmark representing the current item for the IViewCursor in an ICollectionView. | CursorBookmark
|  | FIRST : CursorBookmark [static] [read-only] A bookmark for the first item in an ICollectionView. | CursorBookmark
|  | LAST : CursorBookmark [static] [read-only] A bookmark for the last item in an ICollectionView. | CursorBookmark
|  | value : Object [read-only] The underlying marker representation of the bookmark. | CursorBookmark

Public Methods

| Method | Defined By
--- | --- | ---
|  | CursorBookmark(value:Object) Creates a new instance of a bookmark with the specified value. | CursorBookmark
|  | getViewIndex():int Classes that extend CursorBookmark override this method to return the approximate index of the item represented by this bookmark in its view. | CursorBookmark

Property Detail

CURRENT | property

`CURRENT:CursorBookmark` [read-only]

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

A bookmark representing the current item for the `IViewCursor` in an `ICollectionView`.

Implementation
`public static function get CURRENT():CursorBookmark`

FIRST | property |

`FIRST:CursorBookmark` [read-only]

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

A bookmark for the first item in an `ICollectionView`.

Implementation
`public static function get FIRST():CursorBookmark`

LAST | property |

`LAST:CursorBookmark` [read-only]

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

A bookmark for the last item in an `ICollectionView`. If the view has no items, the cursor is at this bookmark.

Implementation
`public static function get LAST():CursorBookmark`

value | property |

`value:Object` [read-only]

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The underlying marker representation of the bookmark. This value is generally understood only by the `IViewCursor` or `ICollectionView` implementation.

Implementation
`public function get value():Object`
Constructor Detail

CursorBookmark | () | Constructor

`public function CursorBookmark(value:Object)`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Creates a new instance of a bookmark with the specified value.

Parameters

| `value:Object` — The value of this bookmark.

Method Detail

getViewIndex | () | method

`public function getViewIndex():int`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Classes that extend CursorBookmark override this method to return the approximate index of the item represented by this bookmark in its view.

Returns

| `int` — -1

Wed Nov 15 2017, 09:50 AM +01:00