Class AjaxTreeView.ExpandBehavior

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable
    Enclosing class:
    AjaxTreeView

    public static class AjaxTreeView.ExpandBehavior
    extends com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
    Provides a databound behavior that extends node(s)
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String $()  
      void bind​(org.apache.wicket.Component component)  
      protected String getDataBoundCallback()
      Gets the callback/handler to be triggered on 'dataBound' event
      • Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior

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

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

      • ExpandBehavior

        public ExpandBehavior​(String path)
        Constructor
        Parameters:
        path - the path to the node, as an id-array, ie: [1, 2, 3]
      • ExpandBehavior

        public ExpandBehavior​(List<String> paths)
        Constructor
        Parameters:
        paths - the List of paths to the node, as an id-array list
    • Method Detail

      • bind

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

        protected String getDataBoundCallback()
        Gets the callback/handler to be triggered on 'dataBound' event
        Returns:
        statement like function(e) {...}
      • $

        protected String $()
        Specified by:
        $ in class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior