org.wicketstuff.jquery.codepress
Class CodepressBehaviour

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      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.codepress.CodepressBehaviour
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IHeaderContributor

public class CodepressBehaviour
extends JQueryBehavior

Author:
Edvin Syse
See Also:
Serialized Form

Field Summary
static org.apache.wicket.markup.html.resources.CompressedResourceReference CODEPRESS_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
CodepressBehaviour()
           
CodepressBehaviour(CodepressOptions options)
           
 
Method Summary
protected  java.lang.CharSequence getOnReadyScript()
          to be override by subclass if need to run script when dom is ready.
protected  void onBind()
           
 void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
           
 
Methods inherited from class org.wicketstuff.jquery.JQueryBehavior
getIncludeJQueryJS, logger, respond
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getCallbackScript, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, throttleScript
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
bind, getCallbackUrl, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, cleanup, detach, detachModel, exception, isEnabled, isTemporary, onException, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODEPRESS_JS

public static final org.apache.wicket.markup.html.resources.CompressedResourceReference CODEPRESS_JS
Constructor Detail

CodepressBehaviour

public CodepressBehaviour()

CodepressBehaviour

public CodepressBehaviour(CodepressOptions options)
Method Detail

renderHead

public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
Specified by:
renderHead in interface org.apache.wicket.markup.html.IHeaderContributor
Overrides:
renderHead in class JQueryBehavior

getOnReadyScript

protected java.lang.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 org.apache.wicket.ajax.AbstractDefaultAjaxBehavior


Copyright © 2010. All Rights Reserved.