Package | feathers.events |
Class | public class CollectionEventType |
Inheritance | CollectionEventType Object |
Product Version : | Feathers 1.0.0 |
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 | ||
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 |
ADD_ITEM | Constant |
public static const ADD_ITEM:String = "addItem"
Dispatched when an item is added to the collection.
FILTER_CHANGE | Constant |
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_ALL | Constant |
public static const REMOVE_ALL:String = "removeAll"
Dispatched when all items are removed from 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.
SORT_CHANGE | Constant |
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_ALL | Constant |
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_ITEM | Constant |
public static const UPDATE_ITEM:String = "updateItem"
Dispatched when an item in the collection has changed.