public abstract class AbstractDragDropBehavior extends AbstractYuiAjaxBehavior
Modifier and Type | Field and Description |
---|---|
protected DragDropSettings |
settings |
Constructor and Description |
---|
AbstractDragDropBehavior(DragDropSettings settings) |
Modifier and Type | Method and Description |
---|---|
void |
addHeaderContribution(IYuiContext context)
Override this method to get access to the IYuiContext
|
protected CharSequence |
getCallbackScript(boolean onlyTargetActivePage) |
protected abstract String |
getClientSideClassname()
Specify the clientside class that is used as the DragDropModel
|
protected Class<? extends org.apache.wicket.behavior.IBehavior> |
getHeaderContributorClass()
Return a class from the same package as the javascript file you want to load
|
protected abstract String |
getHeaderContributorFilename()
Provide the name of the javascript file that should be loaded on the client
|
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
Don't call super since WicketAjax is loaded by Yui webapp behavior
TODO: webapp ajax is configurable, maybe check here and still load it.
|
getCallbackFunction, getCallbackParameters, onRenderHead, updateAjaxSettings
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, respond, throttleScript
bind, getCallbackUrl, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution
protected final DragDropSettings settings
public AbstractDragDropBehavior(DragDropSettings settings)
public void addHeaderContribution(IYuiContext context)
AbstractYuiAjaxBehavior
addHeaderContribution
in class AbstractYuiAjaxBehavior
context
- The IYuiContext this behavior can use to register YUI-modules and the likes.public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
AbstractYuiAjaxBehavior
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
in class AbstractYuiAjaxBehavior
protected CharSequence getCallbackScript(boolean onlyTargetActivePage)
getCallbackScript
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
protected Class<? extends org.apache.wicket.behavior.IBehavior> getHeaderContributorClass()
protected abstract String getHeaderContributorFilename()
protected abstract String getClientSideClassname()
Copyright © 2007-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.