Interface IDroppableListener

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

    public interface IDroppableListener
    extends org.apache.wicket.util.io.IClusterable
    Event listener shared by the Droppable widget and the DroppableBehavior
    Author:
    Sebastien Briquet - sebfz1
    • Method Detail

      • isOverEventEnabled

        boolean isOverEventEnabled()
        Indicates whether the 'over' event is enabled.
        If true, the onOver(AjaxRequestTarget, Component) event will be triggered.
        Returns:
        false by default
      • isExitEventEnabled

        boolean isExitEventEnabled()
        Indicates whether the 'exit' (or 'out') event is enabled.
        If true, the onExit(AjaxRequestTarget, Component) event will be triggered.
        Returns:
        false by default
      • onDrop

        void onDrop​(org.apache.wicket.ajax.AjaxRequestTarget target,
                    org.apache.wicket.Component component)
        Triggered when a component with DraggableBehavior has been dropped
        Parameters:
        target - the AjaxRequestTarget
        component - the component with DraggableBehavior
      • onOver

        void onOver​(org.apache.wicket.ajax.AjaxRequestTarget target,
                    org.apache.wicket.Component component)
        Triggered when a component with DraggableBehavior overs the droppable area
        Parameters:
        target - the AjaxRequestTarget
        component - the component with DraggableBehavior
        See Also:
        isOverEventEnabled()
      • onExit

        void onExit​(org.apache.wicket.ajax.AjaxRequestTarget target,
                    org.apache.wicket.Component component)
        Triggered when a component with DraggableBehavior exits the droppable area
        Parameters:
        target - the AjaxRequestTarget
        component - the component with DraggableBehavior
        See Also:
        isExitEventEnabled()