|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.fx.Fx
public class Fx
Runs an effect and fires events. The run multiple effects see
MultiEffect
.
Field Summary | |
---|---|
protected com.google.gwt.animation.client.Animation |
animation
|
protected int |
duration
|
protected Effect |
effect
|
Constructor Summary | |
---|---|
Fx()
|
|
Fx(FxConfig config)
|
Method Summary | |
---|---|
void |
addEffectListener(EffectListener listener)
Adds a listener to be notified of effect events. |
void |
cancel()
Cancels the effect. |
Effect |
getEffect()
Returns the effect. |
protected void |
onCancel()
|
protected void |
onComplete()
|
protected void |
onStart()
|
protected void |
onUpdate(double progress)
|
void |
removeEffectListener(EffectListener listener)
Removes a previously added effect listener. |
boolean |
run(Effect effect)
Runs the effect for the given duration. |
boolean |
run(int duration,
Effect effect)
Runs the effect for the given duration. |
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Effect effect
protected com.google.gwt.animation.client.Animation animation
protected int duration
Constructor Detail |
---|
public Fx()
public Fx(FxConfig config)
Method Detail |
---|
public void addEffectListener(EffectListener listener)
listener
- the listener to be addedpublic Effect getEffect()
public void cancel()
public void removeEffectListener(EffectListener listener)
listener
- the listener to be removedpublic boolean run(Effect effect)
effect
- the effect run
public boolean run(int duration, Effect effect)
duration
- the effect duration in millisecondseffect
- the effect run
protected void onCancel()
protected void onComplete()
protected void onStart()
protected void onUpdate(double progress)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |