com.extjs.gxt.ui.client.fx.MultiEffect 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, 2008, Ext JS, LLC.
* [email protected]
*
* http://extjs.com/license
*/
package com.extjs.gxt.ui.client.fx;
import java.util.ArrayList;
import java.util.List;
import com.extjs.gxt.ui.client.core.El;
public class MultiEffect extends BaseEffect {
protected List effects;
public MultiEffect(El el) {
super(el);
effects = new ArrayList();
}
public void addEffects(List effects) {
for (Effect e : effects) {
this.effects.add(e);
}
}
public void addEffects(Effect... effects) {
for (int i = 0; i < effects.length; i++) {
this.effects.add(effects[i]);
}
}
@Override
public void onCancel() {
for (Effect e : effects) {
e.onCancel();
}
}
@Override
public void onComplete() {
for (Effect e : effects) {
e.onComplete();
}
}
@Override
public void onStart() {
for (Effect e : effects) {
e.onStart();
}
}
@Override
public void onUpdate(double progress) {
for (Effect e : effects) {
e.onUpdate(progress);
}
}
}