ontopoly.jquery
Class DroppableBehavior

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 ontopoly.jquery.JQueryBehavior
                  extended by ontopoly.jquery.DroppableBehavior
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 abstract class DroppableBehavior
extends JQueryBehavior

See Also:
Serialized Form

Field Summary
protected  java.lang.String id
           
 
Fields inherited from class ontopoly.jquery.JQueryBehavior
JS_JQUERY, JS_JQUERY_UI
 
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
DroppableBehavior(java.lang.String id)
           
 
Method Summary
protected abstract  org.apache.wicket.MarkupContainer getDropContainer()
          Should return the container that contains all the droppable targets.
protected  void onBind()
           
protected abstract  void onDrop(org.apache.wicket.Component component, org.apache.wicket.ajax.AjaxRequestTarget target)
           
 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, 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

id

protected java.lang.String id
Constructor Detail

DroppableBehavior

public DroppableBehavior(java.lang.String id)
Method Detail

onBind

protected void onBind()
Overrides:
onBind 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)
Specified by:
respond in class org.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.



Copyright © 2000-2012 Ontopia.