Class AbstractDragDropBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
-
- org.hippoecm.frontend.plugins.yui.AbstractYuiAjaxBehavior
-
- org.hippoecm.frontend.plugins.yui.dragdrop.AbstractDragDropBehavior
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.IRequestListener
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
DragBehavior
,DropBehavior
public abstract class AbstractDragDropBehavior extends AbstractYuiAjaxBehavior
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DragDropSettings
settings
-
Constructor Summary
Constructors Constructor Description AbstractDragDropBehavior(DragDropSettings settings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addHeaderContribution(IYuiContext context)
Override this method to get access to the IYuiContextprotected abstract String
getClientSideClassname()
Specify the clientside class that is used as the DragDropModelprotected Class<? extends org.apache.wicket.behavior.Behavior>
getHeaderContributorClass()
Return a class from the same package as the javascript file you want to loadprotected abstract String
getHeaderContributorFilename()
Provide the name of the javascript file that should be loaded on the clientvoid
renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.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.-
Methods inherited from class org.hippoecm.frontend.plugins.yui.AbstractYuiAjaxBehavior
onRenderHead, updateAjaxAttributes, updateAjaxSettings
-
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, respond
-
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
-
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag
-
-
-
-
Field Detail
-
settings
protected final DragDropSettings settings
-
-
Constructor Detail
-
AbstractDragDropBehavior
public AbstractDragDropBehavior(DragDropSettings settings)
-
-
Method Detail
-
addHeaderContribution
public void addHeaderContribution(IYuiContext context)
Description copied from class:AbstractYuiAjaxBehavior
Override this method to get access to the IYuiContext- Overrides:
addHeaderContribution
in classAbstractYuiAjaxBehavior
- Parameters:
context
- The IYuiContext this behavior can use to register YUI-modules and the likes.
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
Description copied from class:AbstractYuiAjaxBehavior
Don't call super since WicketAjax is loaded by Yui webapp behavior TODO: webapp ajax is configurable, maybe check here and still load it.- Specified by:
renderHead
in interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor
- Overrides:
renderHead
in classAbstractYuiAjaxBehavior
-
getHeaderContributorClass
protected Class<? extends org.apache.wicket.behavior.Behavior> getHeaderContributorClass()
Return a class from the same package as the javascript file you want to load- Returns:
- Class from the same package as the javascript file you want to load
-
getHeaderContributorFilename
protected abstract String getHeaderContributorFilename()
Provide the name of the javascript file that should be loaded on the client- Returns:
- Filename of the javascript
-
getClientSideClassname
protected abstract String getClientSideClassname()
Specify the clientside class that is used as the DragDropModel
-
-