public abstract class Effect extends Object implements ChainableStatement, Serializable
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 Form| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
JsScope |
effectCallback()
The JavaScript code to execute after the effect is over.
|
void |
setCallback(JsScope callback)
Sets the callback of this effect.
|
CharSequence[] |
statementArgs() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchainLabelpublic 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.public CharSequence[] statementArgs()
statementArgs in interface ChainableStatementpublic JsScope effectCallback()
JsScope to execute.Copyright © 2015. All Rights Reserved.