public class JQueryEffectBehavior extends JQueryUIBehavior implements com.googlecode.wicket.jquery.core.ajax.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,
com.googlecode.wicket.jquery.core.Options options)
Constructor, with a default speed of
SPEED |
JQueryEffectBehavior(String selector,
String effect,
com.googlecode.wicket.jquery.core.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.
|
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newCallbackBehavior()
Gets the ajax behavior that will be triggered when the user has selected items
|
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
com.googlecode.wicket.jquery.core.JQueryEvent event) |
void |
onEffectComplete(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the effects is completed
|
destroy, onConfigure, onDestroy, widget, widget
$, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, on, on, on, remove, renderHead, setOption, setOption, setOption, setOptions, setSelector
add, getJQueryLibrarySettings, getToken, renderScript, toString
public static final String METHOD
public JQueryEffectBehavior(String selector, String effect)
SPEED
selector
- the html selector (ie: '#myId')effect
- the effect to be playedpublic JQueryEffectBehavior(String selector, String effect, com.googlecode.wicket.jquery.core.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 JQueryEffectBehavior(String selector, String effect, com.googlecode.wicket.jquery.core.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.Behavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
onAjax
in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
public void onEffectComplete(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
isCallbackEnabled()
protected String $()
$
in class com.googlecode.wicket.jquery.core.JQueryBehavior
public String $(String effect)
$
in class com.googlecode.wicket.jquery.core.JQueryBehavior
effect
- the effect to be playedpublic String $(String effect, String options)
effect
- the effect to be playedoptions
- the options to be appliedprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newCallbackBehavior()
JQueryAjaxBehavior
Copyright © 2015 7thWeb. All rights reserved.