M
- the model typepublic class StoreAddEvent<M> extends StoreEvent<M,StoreAddEvent.StoreAddHandler<M>>
Modifier and Type | Class and Description |
---|---|
static interface |
StoreAddEvent.HasStoreAddHandlers<M>
A class that implements this interface is a public source of
StoreAddEvent . |
static interface |
StoreAddEvent.StoreAddHandler<M>
Handler interface for
StoreAddEvent . |
Constructor and Description |
---|
StoreAddEvent(int index,
List<M> items)
Creates a new store add event.
|
StoreAddEvent(int index,
M item)
Creates a new store add event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(StoreAddEvent.StoreAddHandler<M> handler) |
<any> |
getAssociatedType() |
int |
getIndex()
Returns the insert index for this store add event.
|
List<M> |
getItems()
Returns the items that were inserted for this store add event.
|
static <any> |
getType()
Gets the type associated with this event.
|
getSource
public StoreAddEvent(int index, List<M> items)
index
- the insert indexitems
- the items that were addedpublic StoreAddEvent(int index, M item)
index
- the insert indexitem
- the item that was addedpublic static <any> getType()
public <any> getAssociatedType()
public int getIndex()
public List<M> getItems()
protected void dispatch(StoreAddEvent.StoreAddHandler<M> handler)
Copyright © 2018. All rights reserved.