Class SpinnerBehavior
- 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.form.spinner.SpinnerBehavior
-
- 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
- Direct Known Subclasses:
TimeSpinnerBehavior
public class SpinnerBehavior extends JQueryUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Provides a jQuery spinnerJQueryBehavior
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SpinnerBehavior.OnSpinAjaxBehavior
Provides aJQueryAjaxBehavior
that aims to be wired to the 'spin' eventprotected static class
SpinnerBehavior.OnStopAjaxBehavior
Provides aJQueryAjaxBehavior
that aims to be wired to the 'stop' eventprotected static class
SpinnerBehavior.SpinEvent
Provides an event object that will be broadcasted by theSpinnerBehavior.OnSpinAjaxBehavior
callbackprotected static class
SpinnerBehavior.StopEvent
Provides an event object that will be broadcasted by theSpinnerBehavior.OnStopAjaxBehavior
callback
-
Constructor Summary
Constructors Constructor Description SpinnerBehavior(String selector, ISpinnerListener listener)
SpinnerBehavior(String selector, ISpinnerListener listener, com.googlecode.wicket.jquery.core.Options options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(org.apache.wicket.Component component)
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
newOnSpinAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'stop' eventprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
newOnStopAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'stop' eventvoid
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
void
onConfigure(org.apache.wicket.Component component)
-
Methods inherited from class com.googlecode.wicket.jquery.ui.JQueryUIBehavior
destroy, 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
-
SpinnerBehavior
public SpinnerBehavior(String selector, ISpinnerListener listener)
-
SpinnerBehavior
public SpinnerBehavior(String selector, ISpinnerListener listener, com.googlecode.wicket.jquery.core.Options options)
-
-
Method Detail
-
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bind
in classorg.apache.wicket.behavior.Behavior
-
newOnSpinAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnSpinAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'stop' event- Parameters:
source
- theIJQueryAjaxAware
- Returns:
- a new
OnStopAjaxBehavior
by default
-
newOnStopAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnStopAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'stop' event- Parameters:
source
- theIJQueryAjaxAware
- Returns:
- a new
OnStopAjaxBehavior
by default
-
onConfigure
public void onConfigure(org.apache.wicket.Component component)
- Overrides:
onConfigure
in classJQueryUIBehavior
-
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
-
-