Class AbstractDragDropBehavior

java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.hippoecm.frontend.plugins.yui.AbstractYuiAjaxBehavior
org.hippoecm.frontend.plugins.yui.dragdrop.AbstractDragDropBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable
Direct Known Subclasses:
DragBehavior, DropBehavior

public abstract class AbstractDragDropBehavior extends AbstractYuiAjaxBehavior
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final DragDropSettings
     

    Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

    INDICATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Override this method to get access to the IYuiContext
    protected abstract String
    Specify the clientside class that is used as the DragDropModel
    protected Class<? extends org.apache.wicket.behavior.Behavior>
    Return a class from the same package as the javascript file you want to load
    protected abstract String
    Provide the name of the javascript file that should be loaded on the client
    void
    renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
    Don't call super since WicketAjax is loaded by Yui webapp behavior TODO: webapp ajax is configurable, maybe check here and still load it.

    Methods inherited from class org.hippoecm.frontend.plugins.yui.AbstractYuiAjaxBehavior

    onRenderHead, updateAjaxAttributes, updateAjaxSettings

    Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

    findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, respond

    Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior

    afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind

    Methods inherited from class org.apache.wicket.behavior.Behavior

    beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.wicket.IRequestListener

    rendersPage
  • Field Details

  • Constructor Details

    • AbstractDragDropBehavior

      public AbstractDragDropBehavior(DragDropSettings settings)
  • Method Details

    • addHeaderContribution

      public void addHeaderContribution(IYuiContext context)
      Description copied from class: AbstractYuiAjaxBehavior
      Override this method to get access to the IYuiContext
      Overrides:
      addHeaderContribution in class AbstractYuiAjaxBehavior
      Parameters:
      context - The IYuiContext this behavior can use to register YUI-modules and the likes.
    • renderHead

      public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
      Description copied from class: AbstractYuiAjaxBehavior
      Don't call super since WicketAjax is loaded by Yui webapp behavior TODO: webapp ajax is configurable, maybe check here and still load it.
      Specified by:
      renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
      Overrides:
      renderHead in class AbstractYuiAjaxBehavior
    • getHeaderContributorClass

      protected Class<? extends org.apache.wicket.behavior.Behavior> getHeaderContributorClass()
      Return a class from the same package as the javascript file you want to load
      Returns:
      Class from the same package as the javascript file you want to load
    • getHeaderContributorFilename

      protected abstract String getHeaderContributorFilename()
      Provide the name of the javascript file that should be loaded on the client
      Returns:
      Filename of the javascript
    • getClientSideClassname

      protected abstract String getClientSideClassname()
      Specify the clientside class that is used as the DragDropModel