Class JQueryEffectBehavior

java.lang.Object
org.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
com.googlecode.wicket.jquery.core.JQueryBehavior
com.googlecode.wicket.jquery.ui.JQueryUIBehavior
com.googlecode.wicket.jquery.ui.effect.JQueryEffectBehavior
All Implemented Interfaces:
com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware, JQueryDestroyListener.IDestroyable, Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable

public class JQueryEffectBehavior extends JQueryUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Provides a specific jQuery behavior for playing effects.
Author:
Sebastien Briquet - sebfz1
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    Provides the event object that will be broadcasted by the JQueryAjaxBehavior callback
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior

    method, options, selector
  • Constructor Summary

    Constructors
    Constructor
    Description
    JQueryEffectBehavior(String selector, String effect, int speed, IEffectListener listener)
    Constructor, with no option
    JQueryEffectBehavior(String selector, String effect, com.googlecode.wicket.jquery.core.Options options, int speed, IEffectListener listener)
    Constructor
    JQueryEffectBehavior(String selector, String effect, com.googlecode.wicket.jquery.core.Options options, IEffectListener listener)
    Constructor, with a default speed of SPEED
    JQueryEffectBehavior(String selector, String effect, IEffectListener listener)
    Constructor, with no option and a default speed of SPEED
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    $()
     
    $(String effect)
    Gets the jQuery statement.
    $(String effect, String options)
    Gets the jQuery statement.
    void
    bind(org.apache.wicket.Component component)
     
    protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
    Gets the ajax behavior that will be triggered when the user has selected items
    void
    onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
     
    static String
    toString(String selector, Effect effect)
    Helper method that returns the JQueryEffectBehavior string representation
    static String
    toString(String selector, String effect)
    Helper method that returns the JQueryEffectBehavior string representation

    Methods inherited from class com.googlecode.wicket.jquery.ui.JQueryUIBehavior

    destroy, onConfigure, onDestroy, widget, widget, widget, widget

    Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior

    $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, renderHead, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • JQueryEffectBehavior

      public JQueryEffectBehavior(String selector, String effect, IEffectListener listener)
      Constructor, with no option and a default speed of SPEED
      Parameters:
      selector - the html selector (ie: '#myId')
      effect - the effect to be played
      listener - the IEffectListener
    • JQueryEffectBehavior

      public JQueryEffectBehavior(String selector, String effect, com.googlecode.wicket.jquery.core.Options options, IEffectListener listener)
      Constructor, with a default speed of SPEED
      Parameters:
      selector - the html selector (ie: '#myId')
      effect - the effect to be played
      options - the options to be applied
      listener - the IEffectListener
    • JQueryEffectBehavior

      public JQueryEffectBehavior(String selector, String effect, int speed, IEffectListener listener)
      Constructor, with no option
      Parameters:
      selector - the html selector (ie: '#myId')
      effect - the effect to be played
      speed - the speed of the effect
      listener - the IEffectListener
    • JQueryEffectBehavior

      public JQueryEffectBehavior(String selector, String effect, com.googlecode.wicket.jquery.core.Options options, int speed, IEffectListener listener)
      Constructor
      Parameters:
      selector - the html selector (ie: '#myId')
      effect - the effect to be played
      options - the options to be applied
      speed - the speed of the effect
      listener - the IEffectListener
  • Method Details

    • toString

      public static String toString(String selector, Effect effect)
      Helper method that returns the JQueryEffectBehavior string representation
      Parameters:
      selector - the html selector (ie: '#myId')
      effect - the effect to be played
      Returns:
      the effect javascript statement
    • toString

      public static String toString(String selector, String effect)
      Helper method that returns the JQueryEffectBehavior string representation
      Parameters:
      selector - the html selector (ie: '#myId')
      effect - the effect to be played
      Returns:
      the effect javascript statement
    • bind

      public void bind(org.apache.wicket.Component component)
      Overrides:
      bind in class org.apache.wicket.behavior.Behavior
    • 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
    • $

      protected String $()
      Overrides:
      $ in class com.googlecode.wicket.jquery.core.JQueryBehavior
    • $

      public String $(String effect)
      Gets the jQuery statement.
      Overrides:
      $ in class com.googlecode.wicket.jquery.core.JQueryBehavior
      Parameters:
      effect - the effect to be played
      Returns:
      the jQuery statement
    • $

      public String $(String effect, String options)
      Gets the jQuery statement.
      Parameters:
      effect - the effect to be played
      options - the options to be applied
      Returns:
      the jQuery statement
    • newCallbackBehavior

      protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newCallbackBehavior()
      Gets the ajax behavior that will be triggered when the user has selected items
      Returns:
      the JQueryAjaxBehavior