com.extjs.gxt.ui.client.data
Class LoadEvent

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseEvent
      extended by com.extjs.gxt.ui.client.data.LoadEvent
Direct Known Subclasses:
TreeLoadEvent

public class LoadEvent
extends BaseEvent

Instances of this class are sent as a result of load operations.


Field Summary
 java.lang.Throwable exception
           
 Loader<?> loader
          The loader that triggered this event.
 
Constructor Summary
LoadEvent(Loader<?> loader)
          Creates a new load event.
LoadEvent(Loader<?> loader, java.lang.Object config)
          Creates a new load event.
LoadEvent(Loader<?> loader, java.lang.Object config, java.lang.Object data)
          Creates a new load event.
LoadEvent(Loader<?> loader, java.lang.Object config, java.lang.Throwable t)
          Creates a new load event.
 
Method Summary
<X> X
getConfig()
          Returns the load config.
<X> X
getData()
          Returns the data from the load request.
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseEvent
getSource, getType, isCancelled, setCancelled, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exception

public java.lang.Throwable exception

loader

public Loader<?> loader
The loader that triggered this event.

Constructor Detail

LoadEvent

public LoadEvent(Loader<?> loader)
Creates a new load event.

Parameters:
loader - the data loader

LoadEvent

public LoadEvent(Loader<?> loader,
                 java.lang.Object config)
Creates a new load event.

Parameters:
loader - the data loader
config - the config object

LoadEvent

public LoadEvent(Loader<?> loader,
                 java.lang.Object config,
                 java.lang.Object data)
Creates a new load event.

Parameters:
loader - the data loader
config - the config object
data - the data

LoadEvent

public LoadEvent(Loader<?> loader,
                 java.lang.Object config,
                 java.lang.Throwable t)
Creates a new load event.

Parameters:
loader - the data loader
config - the config object
t - the exception
Method Detail

getConfig

public <X> X getConfig()
Returns the load config.

Type Parameters:
X - the load config type
Returns:
the load config

getData

public <X> X getData()
Returns the data from the load request.

Type Parameters:
X - the data type
Returns:
the data