Package | feathers.events |
Class | public class CollectionEventType |
Inheritance | CollectionEventType ![]() |
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 );
Constant | Defined By | ||
---|---|---|---|
ADD_ITEM : String = addItem [static]
Dispatched when an item is added to 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 | ||
UPDATE_ITEM : String = updateItem [static]
Dispatched when an item in the collection has changed. | CollectionEventType |
ADD_ITEM | Constant |
public static const ADD_ITEM:String = addItem
Dispatched when an item is added to the collection.
REMOVE_ITEM | Constant |
public static const REMOVE_ITEM:String = removeItem
Dispatched when an item is removed from the collection.
REPLACE_ITEM | Constant |
public static const REPLACE_ITEM:String = replaceItem
Dispatched when an item is replaced in the collection with a different item.
RESET | Constant |
public static const RESET:String = reset
Dispatched when the data provider's source is completely replaced.
UPDATE_ITEM | Constant |
public static const UPDATE_ITEM:String = updateItem
Dispatched when an item in the collection has changed.