com.extjs.gxt.ui.client.event.SliderEvent 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
/*
* Sencha GXT 2.3.1 - Sencha for GWT
* Copyright(c) 2007-2013, Sencha, Inc.
* [email protected]
*
* http://www.sencha.com/products/gxt/license/
*/
package com.extjs.gxt.ui.client.event;
import com.extjs.gxt.ui.client.widget.Slider;
import com.google.gwt.user.client.Event;
/**
* Slider event type.
*
* @see Slider
*/
public class SliderEvent extends BoxComponentEvent {
private int newValue = -1;
private int oldValue = -1;
private Slider slider;
public SliderEvent(Slider slider) {
super(slider);
this.slider = slider;
}
public SliderEvent(Slider slider, Event event) {
super(slider, event);
this.slider = slider;
}
/**
* Returns the new value.
*
* @return the new value
*/
public int getNewValue() {
return newValue;
}
/**
* Returns the old value.
*
* @return the old value
*/
public int getOldValue() {
return oldValue;
}
/**
* Returns the source slider.
*
* @return the slider
*/
public Slider getSlider() {
return slider;
}
/**
* Sets the new value.
*
* @param newValue the new value
*/
public void setNewValue(int newValue) {
this.newValue = newValue;
}
/**
* Sets the old value.
*
* @param oldValue the old value
*/
public void setOldValue(int oldValue) {
this.oldValue = oldValue;
}
/**
* Sets the source slider.
*
* @param slider the slider
*/
public void setSlider(Slider slider) {
this.slider = slider;
}
}