Class DatePickerBehavior
- 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.datepicker.DatePickerBehavior
-
- 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 abstract class DatePickerBehavior extends JQueryUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Provides a jQuery datepicker behavior- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDatePickerBehavior.OnSelectAjaxBehaviorProvides aJQueryAjaxPostBehaviorthat aims to be wired to the 'onSelect' eventprotected static classDatePickerBehavior.SelectEventProvides an event object that will be broadcasted by theDatePickerBehavior.OnSelectAjaxBehaviorcallback
-
Constructor Summary
Constructors Constructor Description DatePickerBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, IDatePickerListener listener)ConstructorDatePickerBehavior(String selector, IDatePickerListener listener)Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbind(org.apache.wicket.Component component)voiddestroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)Removes the widget functionality completely.protected abstract com.googlecode.wicket.jquery.core.ajax.JQueryAjaxPostBehaviornewOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)Gets a newJQueryAjaxPostBehaviorthat will be wired to the 'onSelect' eventvoidonAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)voidonConfigure(org.apache.wicket.Component component)-
Methods inherited from class com.googlecode.wicket.jquery.ui.JQueryUIBehavior
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
-
DatePickerBehavior
public DatePickerBehavior(String selector, IDatePickerListener listener)
Constructor- Parameters:
selector- the html selector (ie: "#myId")listener- theIDatePickerListener
-
DatePickerBehavior
public DatePickerBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, IDatePickerListener listener)
Constructor- Parameters:
selector- the html selector (ie: "#myId")options- theOptionslistener- theIDatePickerListener
-
-
Method Detail
-
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bindin classorg.apache.wicket.behavior.Behavior
-
destroy
public void destroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Description copied from interface:JQueryDestroyListener.IDestroyableRemoves the widget functionality completely. This will return the element back to its pre-init state.
This method is automatically called on ajax request. In case of web socket requests, this may be called manually.- Specified by:
destroyin interfaceJQueryDestroyListener.IDestroyable- Overrides:
destroyin classJQueryUIBehavior- Parameters:
handler- theIPartialPageRequestHandler
-
onConfigure
public void onConfigure(org.apache.wicket.Component component)
- Overrides:
onConfigurein classJQueryUIBehavior
-
onAjax
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)- Specified by:
onAjaxin interfacecom.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
-
newOnSelectAjaxBehavior
protected abstract com.googlecode.wicket.jquery.core.ajax.JQueryAjaxPostBehavior newOnSelectAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxPostBehaviorthat will be wired to the 'onSelect' event- Parameters:
source- theIJQueryAjaxAware- Returns:
- a new
OnSelectAjaxBehaviorby default
-
-