public class JQueryEffectBehavior extends JQueryUIBehavior implements IJQueryAjaxAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JQueryEffectBehavior.CallbackEvent
Provides the event object that will be broadcasted by the
JQueryAjaxBehavior callback |
method, options, selector| Constructor and Description |
|---|
JQueryEffectBehavior(java.lang.String selector,
java.lang.String effect)
Constructor, with no option and a default speed of
SPEED |
JQueryEffectBehavior(java.lang.String selector,
java.lang.String effect,
int speed)
Constructor, with no option
|
JQueryEffectBehavior(java.lang.String selector,
java.lang.String effect,
Options options)
Constructor, with a default speed of
SPEED |
JQueryEffectBehavior(java.lang.String selector,
java.lang.String effect,
Options options,
int speed)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
$() |
java.lang.String |
$(java.lang.String effect)
Gets the jQuery statement.
|
java.lang.String |
$(java.lang.String effect,
java.lang.String options)
Gets the jQuery statement.
|
void |
bind(org.apache.wicket.Component component) |
boolean |
isCallbackEnabled()
Indicates whether the callback should be triggered when the effect completes.
If true, the onEffectComplete(AjaxRequestTarget) event will be triggered. |
protected JQueryAjaxBehavior |
newCallbackBehavior()
Gets the ajax behavior that will be triggered when the user has selected items
|
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event) |
void |
onEffectComplete(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the effects is completed
|
onConfigure$, beforeRender, getMethod, getOption, getOptions, getSelector, on, on, on, renderHead, setOption, setOption, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, getToken, renderScript, toStringpublic JQueryEffectBehavior(java.lang.String selector,
java.lang.String effect)
SPEEDselector - the html selector (ie: '#myId')effect - the effect to be playedpublic JQueryEffectBehavior(java.lang.String selector,
java.lang.String effect,
Options options)
SPEEDselector - the html selector (ie: '#myId')effect - the effect to be playedoptions - the options to be appliedpublic JQueryEffectBehavior(java.lang.String selector,
java.lang.String effect,
int speed)
selector - the html selector (ie: '#myId')effect - the effect to be playedspeed - the speed of the effectpublic JQueryEffectBehavior(java.lang.String selector,
java.lang.String effect,
Options options,
int speed)
selector - the html selector (ie: '#myId')effect - the effect to be playedoptions - the options to be appliedspeed - the speed of the effectpublic boolean isCallbackEnabled()
onEffectComplete(AjaxRequestTarget) event will be triggered.public void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorpublic void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
onAjax in interface IJQueryAjaxAwarepublic void onEffectComplete(org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetisCallbackEnabled()protected java.lang.String $()
$ in class JQueryBehaviorpublic java.lang.String $(java.lang.String effect)
$ in class JQueryBehavioreffect - the effect to be playedpublic java.lang.String $(java.lang.String effect,
java.lang.String options)
effect - the effect to be playedoptions - the options to be appliedprotected JQueryAjaxBehavior newCallbackBehavior()
JQueryAjaxBehaviorCopyright © 2014 7thWeb. All Rights Reserved.