|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odlabs.wiquery.core.effects.Effect
public abstract class Effect
$Id$
Defines an abstract effect. Any jQuery effect has the same format:
.effectName(speed, [callback])
An effect is a ChainableStatement
, so all subclasses will have to implement
ChainableStatement.chainLabel()
to indicate the effect name.
EffectSpeed
,
ChainableStatement
,
Serialized FormConstructor Summary | |
---|---|
Effect(CharSequence... parameters)
Creates a new effect. |
|
Effect(EffectSpeed effectSpeed,
CharSequence... parameters)
Creates a new effect. |
|
Effect(EffectSpeed effectSpeed,
JsScope callback,
CharSequence... parameters)
Creates a new effect. |
Method Summary | |
---|---|
JsScope |
effectCallback()
The JavaScript code to execute after the effect is over. |
void |
setCallback(JsScope callback)
Sets the callback of this effect. |
CharSequence[] |
statementArgs()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.odlabs.wiquery.core.javascript.ChainableStatement |
---|
chainLabel |
Constructor Detail |
---|
public Effect(CharSequence... parameters)
parameters
- the list of parameters to apply to the effect.public Effect(EffectSpeed effectSpeed, CharSequence... parameters)
effectSpeed
- the speed to display the effect.parameters
- the list of parameters to apply to the effect.public Effect(EffectSpeed effectSpeed, JsScope callback, CharSequence... parameters)
effectSpeed
- the speed to display the effect.callback
- Callback on the effectparameters
- the list of parameters to apply to the effect.Method Detail |
---|
public CharSequence[] statementArgs()
statementArgs
in interface ChainableStatement
public JsScope effectCallback()
JsScope
to execute.public void setCallback(JsScope callback)
callback
- A JsScope
defining the callback
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |