Package ontopoly.jquery
Class DroppableBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.AbstractBehavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
-
- ontopoly.jquery.JQueryBehavior
-
- ontopoly.jquery.DroppableBehavior
-
- All Implemented Interfaces:
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 abstract class DroppableBehavior extends JQueryBehavior
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringid-
Fields inherited from class ontopoly.jquery.JQueryBehavior
JS_JQUERY, JS_JQUERY_UI
-
-
Constructor Summary
Constructors Constructor Description DroppableBehavior(String id)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.apache.wicket.MarkupContainergetDropContainer()Should return the container that contains all the droppable targets.protected voidonBind()protected abstract voidonDrop(org.apache.wicket.Component component, org.apache.wicket.ajax.AjaxRequestTarget target)voidrenderHead(org.apache.wicket.markup.html.IHeaderResponse response)protected voidrespond(org.apache.wicket.ajax.AjaxRequestTarget target)-
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
-
-
-
-
Field Detail
-
id
protected String id
-
-
Constructor Detail
-
DroppableBehavior
public DroppableBehavior(String id)
-
-
Method Detail
-
onBind
protected void onBind()
- Overrides:
onBindin classorg.apache.wicket.ajax.AbstractDefaultAjaxBehavior
-
renderHead
public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
- Specified by:
renderHeadin interfaceorg.apache.wicket.markup.html.IHeaderContributor- Overrides:
renderHeadin classJQueryBehavior
-
respond
protected void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
- Specified by:
respondin classorg.apache.wicket.ajax.AbstractDefaultAjaxBehavior
-
onDrop
protected abstract void onDrop(org.apache.wicket.Component component, org.apache.wicket.ajax.AjaxRequestTarget target)
-
getDropContainer
protected abstract org.apache.wicket.MarkupContainer getDropContainer()
Should return the container that contains all the droppable targets. This will then be used to search for the appropriate target.
-
-