com.sencha.gxt.data.shared.event
Class StoreAddEvent<M>

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<H>
          extended by com.sencha.gxt.data.shared.event.StoreEvent<M,StoreAddEvent.StoreAddHandler<M>>
              extended by com.sencha.gxt.data.shared.event.StoreAddEvent<M>
Type Parameters:
M - the model type

public class StoreAddEvent<M>
extends StoreEvent<M,StoreAddEvent.StoreAddHandler<M>>

Indicates that an element has been added to the Store, and is visible under the current filter settings.


Nested Class Summary
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.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
StoreAddEvent(int index, java.util.List<M> items)
          Creates a new store add event.
StoreAddEvent(int index, M item)
          Creates a new store add event.
 
Method Summary
 GwtEvent.Type<StoreAddEvent.StoreAddHandler<M>> getAssociatedType()
           
 int getIndex()
          Returns the insert index for this store add event.
 java.util.List<M> getItems()
          Returns the items that were inserted for this store add event.
static GwtEvent.Type<StoreAddEvent.StoreAddHandler<?>> getType()
          Gets the type associated with this event.
 
Methods inherited from class com.sencha.gxt.data.shared.event.StoreEvent
getSource
 
Methods inherited from class com.google.web.bindery.event.shared.Event
toDebugString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StoreAddEvent

public StoreAddEvent(int index,
                     java.util.List<M> items)
Creates a new store add event.

Parameters:
index - the insert index
items - the items that were added

StoreAddEvent

public StoreAddEvent(int index,
                     M item)
Creates a new store add event.

Parameters:
index - the insert index
item - the item that was added
Method Detail

getType

public static GwtEvent.Type<StoreAddEvent.StoreAddHandler<?>> getType()
Gets the type associated with this event.

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<StoreAddEvent.StoreAddHandler<M>> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<StoreAddEvent.StoreAddHandler<M>>

getIndex

public int getIndex()
Returns the insert index for this store add event.

Returns:
the insert index

getItems

public java.util.List<M> getItems()
Returns the items that were inserted for this store add event.

Returns:
the list of items that were inserted


Copyright © 2012. All Rights Reserved.