com.extjs.gxt.ui.client.data.PropertyChangeEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxt Show documentation
Show all versions of gxt Show documentation
Rich Internet Application Framework for GWT
/*
* Ext GWT 2.2.0 - Ext for GWT
* Copyright(c) 2007-2010, 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;
}
}