org.wicketstuff.jquery.datepicker
Class DatePickerBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.wicketstuff.jquery.JQueryBehavior
                  extended by org.wicketstuff.jquery.datepicker.DatePickerBehavior
All Implemented Interfaces:
Serializable, IBehaviorListener, IClusterable, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor

public class DatePickerBehavior
extends JQueryBehavior

Add support of the datePicker.

Author:
David Bernard (dwayne)
See Also:
Serialized Form

Field Summary
static ResourceReference DATE_JS
           
static ResourceReference DATEPICKER_CSS
           
static ResourceReference JQUERY_DATEPICKER_JS
           
 
Fields inherited from class org.wicketstuff.jquery.JQueryBehavior
INTERFACE_JS, JQUERY_BGIFRAME_JS, JQUERY_DEBUG_JS, JQUERY_JS, JQUERY_REGEXP, JQUERY_UI_JS
 
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
DatePickerBehavior()
           
DatePickerBehavior(DatePickerOptions options)
           
 
Method Summary
 Behavior getDatePickerStyle()
           
protected  CharSequence getOnReadyScript()
          to be override by subclass if need to run script when dom is ready.
 boolean isIncludeJquery()
           
protected  void onBind()
           
 void renderHead(Component component, IHeaderResponse response)
           
 void setIncludeJquery(boolean includeJquery)
           
 
Methods inherited from class org.wicketstuff.jquery.JQueryBehavior
getIncludeJQueryJS, logger, respond
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannel, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, throttleScript
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_JS

public static final ResourceReference DATE_JS

JQUERY_DATEPICKER_JS

public static final ResourceReference JQUERY_DATEPICKER_JS

DATEPICKER_CSS

public static final ResourceReference DATEPICKER_CSS
Constructor Detail

DatePickerBehavior

public DatePickerBehavior()

DatePickerBehavior

public DatePickerBehavior(DatePickerOptions options)
Method Detail

isIncludeJquery

public boolean isIncludeJquery()

setIncludeJquery

public void setIncludeJquery(boolean includeJquery)

renderHead

public void renderHead(Component component,
                       IHeaderResponse response)
Specified by:
renderHead in interface IComponentAwareHeaderContributor
Overrides:
renderHead in class JQueryBehavior

getOnReadyScript

protected CharSequence getOnReadyScript()
Description copied from class: JQueryBehavior
to be override by subclass if need to run script when dom is ready. The returned script is wrapped by caller into <script> tag and the "$(document).ready(function(){...}"

Overrides:
getOnReadyScript in class JQueryBehavior
Returns:
the script to execute when the dom is ready, or null (default)

onBind

protected void onBind()
Overrides:
onBind in class AbstractDefaultAjaxBehavior

getDatePickerStyle

public Behavior getDatePickerStyle()


Copyright © 2013. All Rights Reserved.