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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
JQueryEffectBehavior.CallbackEvent
Provides the event object that will be broadcasted by theJQueryAjaxBehavior
callback
-
Constructor Summary
Constructors Constructor Description JQueryEffectBehavior(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
newCallbackBehavior()
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
toString(String selector, Effect effect)
Helper method that returns theJQueryEffectBehavior
string representationstatic String
toString(String selector, String effect)
Helper method that returns theJQueryEffectBehavior
string representation-
Methods 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
-
-
-
-
Field Detail
-
METHOD
public static final String METHOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JQueryEffectBehavior
public JQueryEffectBehavior(String selector, String effect, IEffectListener listener)
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
public JQueryEffectBehavior(String selector, String effect, int speed, IEffectListener listener)
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 Detail
-
toString
public static String toString(String selector, Effect effect)
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
public static String toString(String selector, String effect)
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
-
$
protected String $()
- Overrides:
$
in classcom.googlecode.wicket.jquery.core.JQueryBehavior
-
$
public String $(String effect)
Gets the jQuery statement.- Overrides:
$
in classcom.googlecode.wicket.jquery.core.JQueryBehavior
- Parameters:
effect
- the effect to be played- Returns:
- the jQuery statement
-
$
public String $(String effect, String options)
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
-
-