Class 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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected DragDropSettings settings  
      • Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

        INDICATOR
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addHeaderContribution​(IYuiContext context)
      Override this method to get access to the IYuiContext
      protected abstract String getClientSideClassname()
      Specify the clientside class that is used as the DragDropModel
      protected Class<? extends org.apache.wicket.behavior.Behavior> getHeaderContributorClass()
      Return a class from the same package as the javascript file you want to load
      protected abstract String getHeaderContributorFilename()
      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.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 interface org.apache.wicket.IRequestListener

        rendersPage
    • Constructor Detail

      • AbstractDragDropBehavior

        public AbstractDragDropBehavior​(DragDropSettings settings)
    • Method Detail

      • 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