Pacotemx.collections
Classepublic class CursorBookmark
HerançaCursorBookmark Inheritance Object

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

Veja também

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


Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  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
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  value : Object
[read-only] The underlying marker representation of the bookmark.
CursorBookmark
Métodos Públicos
 MétodoDefinido por
  
Creates a new instance of a bookmark with the specified value.
CursorBookmark
  
Get the approximate index of the item represented by this bookmark in its view.
CursorBookmark
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Detalhes da propriedade
CURRENTpropriedade
CURRENT:CursorBookmark  [read-only]

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


Implementação
    public static function get CURRENT():CursorBookmark
FIRSTpropriedade 
FIRST:CursorBookmark  [read-only]

A bookmark for the first item in an ICollectionView.


Implementação
    public static function get FIRST():CursorBookmark
LASTpropriedade 
LAST:CursorBookmark  [read-only]

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


Implementação
    public static function get LAST():CursorBookmark
valuepropriedade 
value:Object  [read-only]

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


Implementação
    public function get value():Object
Detalhes do construtor
CursorBookmark()Construtor
public function CursorBookmark(value:Object)

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

Parâmetros
value:Object — The value of this bookmark.
Detalhes do método
getViewIndex()método
public function getViewIndex():int

Get the approximate index of the item represented by this bookmark in its view. If the item has been paged out this method could throw an ItemPendingError. If the item is not in the current view -1 is returned. This method also returns -1 if index-based location is not possible.

Retorna
int