Packagefeathers.events
Classpublic class CollectionEventType
InheritanceCollectionEventType Inheritance Object

Product Version : Feathers 1.0.0

Event type constants for collections. This class is not a subclass of starling.events.Event because these constants are meant to be used with dispatchEventWith() and take advantage of the Starling's event object pooling. The object passed to an event listener will be of type starling.events.Event.
function listener( event:Event ):void
{
    trace( "add item" );
}
collection.addEventListener( CollectionEventType.ADD_ITEM, listener );



Public Constants
 ConstantDefined By
  ADD_ITEM : String = addItem
[static] Dispatched when an item is added to the collection.
CollectionEventType
  FILTER_CHANGE : String = filterChange
[static] Dispatched when a filter has been applied to or removed from the collection.
CollectionEventType
  REMOVE_ALL : String = removeAll
[static] Dispatched when all items are removed from the collection.
CollectionEventType
  REMOVE_ITEM : String = removeItem
[static] Dispatched when an item is removed from the collection.
CollectionEventType
  REPLACE_ITEM : String = replaceItem
[static] Dispatched when an item is replaced in the collection with a different item.
CollectionEventType
  RESET : String = reset
[static] Dispatched when the data provider's source is completely replaced.
CollectionEventType
  SORT_CHANGE : String = sortChange
[static] Dispatched when a sort compare function has been applied to or removed from the collection.
CollectionEventType
  UPDATE_ALL : String = updateAll
[static] Dispatched when all existing items in the collection have changed (but they have not been replaced by different items).
CollectionEventType
  UPDATE_ITEM : String = updateItem
[static] Dispatched when an item in the collection has changed.
CollectionEventType
Constant Detail
ADD_ITEMConstant
public static const ADD_ITEM:String = addItem

Dispatched when an item is added to the collection.

FILTER_CHANGEConstant 
public static const FILTER_CHANGE:String = filterChange

Dispatched when a filter has been applied to or removed from the collection. The underlying source remains the same, but zero or more items may have been removed or added.

REMOVE_ALLConstant 
public static const REMOVE_ALL:String = removeAll

Dispatched when all items are removed from the collection.

REMOVE_ITEMConstant 
public static const REMOVE_ITEM:String = removeItem

Dispatched when an item is removed from the collection.

REPLACE_ITEMConstant 
public static const REPLACE_ITEM:String = replaceItem

Dispatched when an item is replaced in the collection with a different item.

RESETConstant 
public static const RESET:String = reset

Dispatched when the data provider's source is completely replaced.

SORT_CHANGEConstant 
public static const SORT_CHANGE:String = sortChange

Dispatched when a sort compare function has been applied to or removed from the collection. The underlying source remains the same, but the order may be modified.

UPDATE_ALLConstant 
public static const UPDATE_ALL:String = updateAll

Dispatched when all existing items in the collection have changed (but they have not been replaced by different items).

UPDATE_ITEMConstant 
public static const UPDATE_ITEM:String = updateItem

Dispatched when an item in the collection has changed.