Events dispatched by flat collections.

Available since

1.0.0

.

See:

Constructor

@:value({ cancelable : false, bubbles : false })new (type:String, index:Int, bubbles:Bool = false, cancelable:Bool = false)

Variables

index:Int

Static variables

@:value("addItem")staticinlineread onlyADD_ITEM:EventType<FlatCollectionEvent> = "addItem"

The FlatCollectionEvent.ADD_ITEM event type is dispatched when an item is added to a collection.

Available since

1.0.0

.

@:value("filterChange")staticinlineread onlyFILTER_CHANGE:EventType<FlatCollectionEvent> = "filterChange"

The FlatCollectionEvent.FILTER_CHANGE event type is dispatched when a filter function has been applied to or removed from a collection.

Available since

1.0.0

.

@:value("removeAll")staticinlineread onlyREMOVE_ALL:EventType<FlatCollectionEvent> = "removeAll"

The FlatCollectionEvent.REMOVE_ALL event type is dispatched when all items are removed from the collection simulatanously by calling removeAll() on the collection.

Available since

1.0.0

.

@:value("addItem")staticinlineread onlyREMOVE_ITEM:EventType<FlatCollectionEvent> = "addItem"

The FlatCollectionEvent.REMOVE_ITEM event type is dispatched when an item is removed from a collection.

Available since

1.0.0

.

@:value("replaceItem")staticinlineread onlyREPLACE_ITEM:EventType<FlatCollectionEvent> = "replaceItem"

The FlatCollectionEvent.REMOVE_ITEM event type is dispatched when an item is replaced in a collection.

Available since

1.0.0

.

@:value("reset")staticinlineread onlyRESET:EventType<FlatCollectionEvent> = "reset"

The FlatCollectionEvent.RESET event type is dispatched when the entire underlying data structure is replaced.

Available since

1.0.0

.

@:value("sortChange")staticinlineread onlySORT_CHANGE:EventType<FlatCollectionEvent> = "sortChange"

The FlatCollectionEvent.SORT_CHANGE event type is dispatched when a sort compare function has been applied to or removed from a collection.

Available since

1.0.0

.

@:value("updateAll")staticinlineread onlyUPDATE_ALL:EventType<FlatCollectionEvent> = "updateAll"

The FlatCollectionEvent.UPDATE_ALL event type is dispatched when the updateAll() method is called on the collection.

Available since

1.0.0

.

@:value("updateItem")staticinlineread onlyUPDATE_ITEM:EventType<FlatCollectionEvent> = "updateItem"

The FlatCollectionEvent.UPDATE_ITEM event type is dispatched when the updateAt() method is called on the collection.

Available since

1.0.0

.

Static methods

@:value({ cancelable : false, bubbles : false })staticdispatch (dispatcher:IEventDispatcher, type:String, index:Int, bubbles:Bool = false, cancelable:Bool = false):Bool

Dispatches a pooled event with the specified properties.

Available since

1.0.0

.