org.odlabs.wiquery.ui.draggable
Class DraggableAjaxBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.odlabs.wiquery.core.behavior.WiQueryAbstractAjaxBehavior
                  extended by org.odlabs.wiquery.ui.draggable.DraggableAjaxBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.IClusterable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, IWiQueryPlugin

public abstract class DraggableAjaxBehavior
extends WiQueryAbstractAjaxBehavior

Sets the attached component draggable and receives ajax event when dragging has stopped.

  • When the drag stops, onStop(Component, AjaxRequestTarget) is called by an Ajax request.
  • When the drag starts, onStart(Component, AjaxRequestTarget) is called by an Ajax request.
  • During the drag, when mouse movement occurs, onDrag(Component, AjaxRequestTarget) is called by an Ajax request. Be careful with this as it could cause a lot of ajax requests.