Interface IDraggableListener

  • All Superinterfaces:
    org.apache.wicket.util.io.IClusterable, Serializable
    All Known Implementing Classes:
    Draggable, DraggableAdapter

    public interface IDraggableListener
    extends org.apache.wicket.util.io.IClusterable
    Event listener shared by the Draggable widget and the DraggableBehavior
    Author:
    Sebastien Briquet - sebfz1
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isStopEventEnabled()
      Indicates whether the 'stop' event is enabled.
      If true, the onDragStop(AjaxRequestTarget, int, int) event will be triggered.
      void onDragStart​(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)
      Triggered when the drag starts
      Note: offsetTop and offsetLeft are available as RequestCycle parameters
      void onDragStop​(org.apache.wicket.ajax.AjaxRequestTarget target, int top, int left)
      Triggered when the drag stops
      offsetTop and offsetLeft are available as RequestCycle parameters
    • Method Detail

      • isStopEventEnabled

        boolean isStopEventEnabled()
        Indicates whether the 'stop' event is enabled.
        If true, the onDragStop(AjaxRequestTarget, int, int) event will be triggered.
        Returns:
        false by default
      • onDragStart

        void onDragStart​(org.apache.wicket.ajax.AjaxRequestTarget target,
                         int top,
                         int left)
        Triggered when the drag starts
        Note: offsetTop and offsetLeft are available as RequestCycle parameters
        Parameters:
        target - the AjaxRequestTarget
        top - the position's top value
        left - the position's left value
      • onDragStop

        void onDragStop​(org.apache.wicket.ajax.AjaxRequestTarget target,
                        int top,
                        int left)
        Triggered when the drag stops
        offsetTop and offsetLeft are available as RequestCycle parameters
        Parameters:
        target - the AjaxRequestTarget
        top - the position's top value
        left - the position's left value
        See Also:
        isStopEventEnabled()