
gxt-2.1.1-sources.com.extjs.gxt.ui.client.fx.FxConfig 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 - Ext for GWT
* Copyright(c) 2007-2009, Ext JS, LLC.
* [email protected]
*
* http://extjs.com/license
*/
package com.extjs.gxt.ui.client.fx;
import com.extjs.gxt.ui.client.event.FxEvent;
import com.extjs.gxt.ui.client.event.Listener;
/**
* Allows the configuration of an Fx instance using a single object.
*/
public class FxConfig {
public static final FxConfig NONE = new FxConfig();
private Listener effectStartListener;
private Listener effectCompleteListener;
private int duration;
public FxConfig() {
}
public FxConfig(int duration) {
this.setDuration(duration);
}
public FxConfig(Listener callback) {
this.effectCompleteListener = callback;
}
public FxConfig(int duration, Listener callback) {
this.setDuration(duration);
this.effectCompleteListener = callback;
}
public void setDuration(int duration) {
this.duration = duration;
}
public int getDuration() {
return duration;
}
public Listener getEffectStartListener() {
return effectStartListener;
}
public void setEffectStartListener(Listener effectStartListener) {
this.effectStartListener = effectStartListener;
}
public Listener getEffectCompleteListener() {
return effectCompleteListener;
}
public void setEffectCompleteListener(Listener effectCompleteListener) {
this.effectCompleteListener = effectCompleteListener;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy