Class DraggableBehavior

    • Constructor Detail

      • DraggableBehavior

        public DraggableBehavior​(com.googlecode.wicket.jquery.core.Options options,
                                 IDraggableListener listener)
        Constructor
        Parameters:
        options - the Options
        listener - the IDraggableListener
      • DraggableBehavior

        public DraggableBehavior​(String selector,
                                 com.googlecode.wicket.jquery.core.Options options,
                                 IDraggableListener listener)
        Constructor
        Parameters:
        selector - the html selector (ie: "#myId")
        options - the Options
        listener - the IDraggableListener
    • Method Detail

      • onAjax

        public void onAjax​(AjaxRequestTarget target,
                           com.googlecode.wicket.jquery.core.JQueryEvent event)
        Specified by:
        onAjax in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
      • newOnDragStartAjaxBehavior

        protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragStartAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
        Gets a new JQueryAjaxBehavior that will be wired to the 'start' event
        Parameters:
        source - the IJQueryAjaxAware
        Returns:
        a new OnDragStartAjaxBehavior by default
      • newOnDragStopAjaxBehavior

        protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragStopAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
        Gets a new JQueryAjaxBehavior that will be wired to the 'stop' event
        Parameters:
        source - the IJQueryAjaxAware
        Returns:
        a new OnDragStopAjaxBehavior by default