|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
com.googlecode.wicket.jquery.ui.effect.JQueryEffectBehavior
public class JQueryEffectBehavior
Provides a specific jQuery behavior for playing effects.
Nested Class Summary | |
---|---|
protected static class |
JQueryEffectBehavior.CallbackEvent
Provides the event object that will be broadcasted by the JQueryAjaxBehavior callback |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior |
---|
add, onConfigure, renderHead, toString |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
afterRender, beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onEvent, onException, onRemove, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 JQueryEffectBehavior(String selector, 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 effectMethod Detail |
---|
public 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 played
public String $(String effect, String options)
effect
- the effect to be playedoptions
- the options to be applied
protected JQueryAjaxBehavior newCallbackBehavior()
JQueryAjaxBehavior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |