All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.extjs.gxt.ui.client.data.LoadEvent Maven / Gradle / Ivy

There is a newer version: 2.3.1-gwt22
Show newest version
/*
 * Ext GWT - Ext for GWT
 * Copyright(c) 2007, 2008, Ext JS, LLC.
 * [email protected]
 * 
 * http://extjs.com/license
 */
package com.extjs.gxt.ui.client.data;

import com.extjs.gxt.ui.client.event.BaseEvent;

/**
 * Instances of this class are sent as a result of load operations.
 * 
 * @param  the load config type
 * @param  the result data type
 */
public class LoadEvent extends BaseEvent {

  /**
   * The loader that triggered this event.
   */
  public Loader loader;

  /**
   * The LoadConfig object
   */
  public C config;

  /**
   * The LoadResult object.
   */
  public D data;

  public Throwable exception;

  /**
   * Creates a new load event.
   * 
   * @param loader the data loader
   */
  public LoadEvent(Loader loader) {
    this.loader = loader;
  }

  /**
   * Creates a new load event.
   * 
   * @param loader the data loader
   * @param config the config object
   */
  public LoadEvent(Loader loader, C config) {
    this.loader = loader;
    this.config = config;
  }

  /**
   * Creates a new load event.
   * 
   * @param loader the data loader
   * @param config the config object
   * @param data the data
   */
  public LoadEvent(Loader loader, C config, D data) {
    this.loader = loader;
    this.config = config;
    this.data = data;
  }

  /**
   * Creates a new load event.
   * 
   * @param loader the data loader
   * @param config the config object
   * @param t the exception
   */
  public LoadEvent(Loader loader, C config, Throwable t) {
    this.loader = loader;
    this.config = config;
    this.exception = t;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy