org.wicketstuff.jquery.crop
Class CropBehaviour
java.lang.Object
org.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.wicketstuff.jquery.JQueryBehavior
org.wicketstuff.jquery.crop.CropBehaviour
- All Implemented Interfaces:
- Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.behavior.IComponentConfigurationBehavior, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IHeaderContributor
public class CropBehaviour
- extends JQueryBehavior
- Author:
- Edvin Syse
- See Also:
- Serialized Form
|
Field Summary |
static org.apache.wicket.markup.html.resources.CompressedResourceReference |
CROP_BG
|
static org.apache.wicket.markup.html.resources.CompressedResourceReference |
IRESIZABLE_JS
|
static org.apache.wicket.markup.html.resources.CompressedResourceReference |
IUTIL_JS
|
| Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
INDICATOR |
| Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener |
INTERFACE |
|
Method Summary |
protected CharSequence |
getCallbackScript()
|
protected CharSequence |
getOnReadyScript()
to be override by subclass if need to run script when dom is ready. |
void |
onCropped(org.apache.wicket.ajax.AjaxRequestTarget target,
int width,
int height,
int top,
int left)
|
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
|
protected void |
respond(org.apache.wicket.ajax.AjaxRequestTarget target)
|
| Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onBind, 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, onConfigure, onException, rendered |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IRESIZABLE_JS
public static final org.apache.wicket.markup.html.resources.CompressedResourceReference IRESIZABLE_JS
IUTIL_JS
public static final org.apache.wicket.markup.html.resources.CompressedResourceReference IUTIL_JS
CROP_BG
public static final org.apache.wicket.markup.html.resources.CompressedResourceReference CROP_BG
CropBehaviour
public CropBehaviour()
CropBehaviour
public CropBehaviour(CropOptions options)
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)
getCallbackScript
protected CharSequence getCallbackScript()
- Overrides:
getCallbackScript in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
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
respond
protected void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
- Overrides:
respond in class JQueryBehavior
onCropped
public void onCropped(org.apache.wicket.ajax.AjaxRequestTarget target,
int width,
int height,
int top,
int left)
Copyright © 2012. All Rights Reserved.