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

com.extjs.gxt.ui.client.data.PropertyChangeEvent 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;

/**
 * A ChangeEvent for property changes.
 */
public class PropertyChangeEvent extends ChangeEvent {

  private String name;
  private Object oldValue;
  private Object newValue;

  public PropertyChangeEvent(int type, Model source, String name, Object oldValue,
      Object newValue) {
    super(type, source);
    this.name = name;
    this.oldValue = oldValue;
    this.newValue = newValue;
  }

  /**
   * Returns the new value.
   * 
   * @return the new value
   */
  public Object getNewValue() {
    return newValue;
  }

  /**
   * Returns the old value.
   * 
   * @return the old value
   */
  public Object getOldValue() {
    return oldValue;
  }

  /**
   * Returns the property name.
   * 
   * @return the name
   */
  public String getName() {
    return name;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy