public class JQueryEffectBehavior extends JQueryAbstractBehavior 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 |
Constructor and Description |
---|
JQueryEffectBehavior(String selector,
String effect)
Constructor, with no option and a default speed of
SPEED |
JQueryEffectBehavior(String selector,
String effect,
int speed)
Constructor, with no option
|
JQueryEffectBehavior(String selector,
String effect,
Options options)
Constructor, with a default speed of
SPEED |
JQueryEffectBehavior(String selector,
String effect,
Options options,
int speed)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
$() |
String |
$(String effect)
Gets the jQuery statement.
|
String |
$(String effect,
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
|
add, getJQueryLibrarySettings, onConfigure, renderHead, renderScript, toString
public JQueryEffectBehavior(String selector, String effect)
SPEED
selector
- the html selector (ie: '#myId')effect
- the effect to be playedpublic JQueryEffectBehavior(String selector, String effect, Options options)
SPEED
selector
- the html selector (ie: '#myId')effect
- the effect to be playedoptions
- the options to be appliedpublic JQueryEffectBehavior(String selector, String effect, int speed)
selector
- the html selector (ie: '#myId')effect
- the effect to be playedspeed
- 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.Behavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, JQueryEvent event)
onAjax
in interface IJQueryAjaxAware
public void onEffectComplete(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
isCallbackEnabled()
protected String $()
$
in class JQueryAbstractBehavior
public String $(String effect)
effect
- the effect to be playedpublic String $(String effect, String options)
effect
- the effect to be playedoptions
- the options to be appliedprotected JQueryAjaxBehavior newCallbackBehavior()
JQueryAjaxBehavior
Copyright © 2013 7thWeb. All Rights Reserved.