Class DroppableBehavior

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String METHOD  
      • Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior

        method, options, selector
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(org.apache.wicket.Component component)  
      protected String getOnDragEnterStatement()
      Gets the javascript statement that will we executed on 'dragenter' event
      The event variable is 'e'
      e.target Element, The current Draggable element.
      e.draggable kendo.ui.Draggable, Reference to the Draggable instance that enters a drop target.
      e.dropTarget jQuery, The current DropTarget element in the area that initiated the event.
      protected String getOnDragLeaveStatement()
      Gets the javascript statement that will we executed on 'dragleave' event
      The event variable is 'e' e.target Element, The current Draggable element.
      e.draggable kendo.ui.Draggable, Reference to the Draggable instance that enters a drop target.
      e.dropTarget jQuery, The current DropTarget element in the area that initiated the event.
      protected String getOnDropStatement()
      Gets the javascript statement that will we executed on 'drop' event
      The event variable is 'e' e.target Element, The current Draggable element.
      e.draggable kendo.ui.Draggable, Reference to the Draggable instance that enters a drop target.
      e.dropTarget jQuery, The current DropTarget element in the area that initiated the event.
      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragEnterAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, String statement)
      Gets a new JQueryAjaxBehavior that will be wired to the 'dragenter' event
      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragLeaveAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, String statement)
      Gets a new JQueryAjaxBehavior that will be wired to the 'dragleave' event
      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDropAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, String statement)
      Gets a new JQueryAjaxBehavior that will be wired to the 'drop' event
      void onAjax​(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)  
      void onConfigure​(org.apache.wicket.Component component)  
      void setDraggable​(org.apache.wicket.Component draggable)  
      • Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior

        $, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelector
      • Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior

        add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
      • Methods inherited from class org.apache.wicket.behavior.Behavior

        afterRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, unbind
    • Constructor Detail

      • DroppableBehavior

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

      • setDraggable

        public void setDraggable​(org.apache.wicket.Component draggable)
      • getOnDragEnterStatement

        protected String getOnDragEnterStatement()
        Gets the javascript statement that will we executed on 'dragenter' event
        The event variable is 'e'
        e.target Element, The current Draggable element.
        e.draggable kendo.ui.Draggable, Reference to the Draggable instance that enters a drop target.
        e.dropTarget jQuery, The current DropTarget element in the area that initiated the event.
        Returns:
        the javascript statement
      • getOnDragLeaveStatement

        protected String getOnDragLeaveStatement()
        Gets the javascript statement that will we executed on 'dragleave' event
        The event variable is 'e' e.target Element, The current Draggable element.
        e.draggable kendo.ui.Draggable, Reference to the Draggable instance that enters a drop target.
        e.dropTarget jQuery, The current DropTarget element in the area that initiated the event.
        Returns:
        the javascript statement
      • getOnDropStatement

        protected String getOnDropStatement()
        Gets the javascript statement that will we executed on 'drop' event
        The event variable is 'e' e.target Element, The current Draggable element.
        e.draggable kendo.ui.Draggable, Reference to the Draggable instance that enters a drop target.
        e.dropTarget jQuery, The current DropTarget element in the area that initiated the event.
        Returns:
        the javascript statement
      • bind

        public void bind​(org.apache.wicket.Component component)
        Overrides:
        bind in class org.apache.wicket.behavior.Behavior
      • onConfigure

        public void onConfigure​(org.apache.wicket.Component component)
        Overrides:
        onConfigure in class KendoUIBehavior
      • onAjax

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

        protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragEnterAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
                                                                                                       String statement)
        Gets a new JQueryAjaxBehavior that will be wired to the 'dragenter' event
        Parameters:
        source - the IJQueryAjaxAware
        statement - the statement to execute just before the ajax call
        Returns:
        a new OnDragEnterAjaxBehavior by default
      • newOnDragLeaveAjaxBehavior

        protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragLeaveAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
                                                                                                       String statement)
        Gets a new JQueryAjaxBehavior that will be wired to the 'dragleave' event
        Parameters:
        source - the IJQueryAjaxAware
        statement - the statement to execute just before the ajax call
        Returns:
        a new OnDragLeaveAjaxBehavior by default
      • newOnDropAjaxBehavior

        protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDropAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
                                                                                                  String statement)
        Gets a new JQueryAjaxBehavior that will be wired to the 'drop' event
        Parameters:
        source - the IJQueryAjaxAware
        statement - the statement to execute just before the ajax call
        Returns:
        a new OnDropAjaxBehavior by default