Class JQueryEffectBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
com.googlecode.wicket.jquery.core.JQueryBehavior
com.googlecode.wicket.jquery.ui.JQueryUIBehavior
com.googlecode.wicket.jquery.ui.effect.JQueryEffectBehavior
- All Implemented Interfaces:
com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
,JQueryDestroyListener.IDestroyable
,Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
public class JQueryEffectBehavior
extends JQueryUIBehavior
implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Provides a specific jQuery behavior for playing effects.
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Provides the event object that will be broadcasted by theJQueryAjaxBehavior
callback -
Field Summary
FieldsFields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
method, options, selector
-
Constructor Summary
ConstructorsConstructorDescriptionJQueryEffectBehavior
(String selector, String effect, int speed, IEffectListener listener) Constructor, with no optionJQueryEffectBehavior
(String selector, String effect, com.googlecode.wicket.jquery.core.Options options, int speed, IEffectListener listener) ConstructorJQueryEffectBehavior
(String selector, String effect, com.googlecode.wicket.jquery.core.Options options, IEffectListener listener) Constructor, with a default speed ofSPEED
JQueryEffectBehavior
(String selector, String effect, IEffectListener listener) Constructor, with no option and a default speed ofSPEED
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
$()
Gets the jQuery statement.Gets the jQuery statement.void
bind
(org.apache.wicket.Component component) protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
Gets the ajax behavior that will be triggered when the user has selected itemsvoid
onAjax
(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event) static String
Helper method that returns theJQueryEffectBehavior
string representationstatic String
Helper method that returns theJQueryEffectBehavior
string representationMethods inherited from class com.googlecode.wicket.jquery.ui.JQueryUIBehavior
destroy, onConfigure, onDestroy, widget, widget, widget, widget
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, renderHead, setOption, setOption, setOption, setOptions, setSelector
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, unbind
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
JQueryEffectBehavior
Constructor, with no option and a default speed ofSPEED
- Parameters:
selector
- the html selector (ie: '#myId')effect
- the effect to be playedlistener
- theIEffectListener
-
JQueryEffectBehavior
public JQueryEffectBehavior(String selector, String effect, com.googlecode.wicket.jquery.core.Options options, IEffectListener listener) Constructor, with a default speed ofSPEED
- Parameters:
selector
- the html selector (ie: '#myId')effect
- the effect to be playedoptions
- the options to be appliedlistener
- theIEffectListener
-
JQueryEffectBehavior
Constructor, with no option- Parameters:
selector
- the html selector (ie: '#myId')effect
- the effect to be playedspeed
- the speed of the effectlistener
- theIEffectListener
-
JQueryEffectBehavior
public JQueryEffectBehavior(String selector, String effect, com.googlecode.wicket.jquery.core.Options options, int speed, IEffectListener listener) Constructor- Parameters:
selector
- the html selector (ie: '#myId')effect
- the effect to be playedoptions
- the options to be appliedspeed
- the speed of the effectlistener
- theIEffectListener
-
-
Method Details
-
toString
Helper method that returns theJQueryEffectBehavior
string representation- Parameters:
selector
- the html selector (ie: '#myId')effect
- the effect to be played- Returns:
- the effect javascript statement
-
toString
Helper method that returns theJQueryEffectBehavior
string representation- Parameters:
selector
- the html selector (ie: '#myId')effect
- the effect to be played- Returns:
- the effect javascript statement
-
bind
public void bind(org.apache.wicket.Component component) - Overrides:
bind
in classorg.apache.wicket.behavior.Behavior
-
onAjax
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event) - Specified by:
onAjax
in interfacecom.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
-
$
- Overrides:
$
in classcom.googlecode.wicket.jquery.core.JQueryBehavior
-
$
Gets the jQuery statement.- Overrides:
$
in classcom.googlecode.wicket.jquery.core.JQueryBehavior
- Parameters:
effect
- the effect to be played- Returns:
- the jQuery statement
-
$
Gets the jQuery statement.- Parameters:
effect
- the effect to be playedoptions
- the options to be applied- Returns:
- the jQuery statement
-
newCallbackBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newCallbackBehavior()Gets the ajax behavior that will be triggered when the user has selected items- Returns:
- the
JQueryAjaxBehavior
-