public class JQueryScript extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANIMATE_TEMPLATE |
static String |
CHILDREN_TEMPLATE |
static String |
CLICK_TEMPLATE |
static Integer |
DEFAULT_ANIMATION_DURATION |
static String |
DEFAULT_EASING_FUNCTION |
static String |
FADEIN_TEMPLATE |
static String |
FADEOUT_TEMPLATE |
static String |
FADETOGGLE_TEMPLATE |
static String |
HIDE_TEMPLATE |
static String |
HOVER_INTENT_TEMPLATE |
static String |
KEYPRESS_TEMPLATE |
protected StringBuffer |
scriptBuffer |
static String |
SHOW_TEMPLATE |
static String |
SLIDEDOWN_TEMPLATE |
static String |
SLIDETOGGLE_TEMPLATE |
static String |
SLIDEUP_TEMPLATE |
static String |
TOGGLE_TEMPLATE |
| Constructor and Description |
|---|
JQueryScript()
Create a new JQuery Script using this as a selector.
|
JQueryScript(org.apache.wicket.Component component)
Create a new JQuery Script using the components markupid as a selector.
|
JQueryScript(String selector)
Create a new JQuery Script using the given selector.
|
| Modifier and Type | Method and Description |
|---|---|
JQueryScript |
addClass(String string) |
JQueryScript |
animate(Properties properties,
Integer duration,
String easing,
CharSequence callbackScript)
Perform a custom animation of a set of CSS properties.
|
JQueryScript |
append(String script) |
JQueryScript |
children(String selector)
Get the children of each element in the set of matched elements, optionally filtered by a
selector.
|
JQueryScript |
click(String callbackScript) |
JQueryScript |
fadeIn()
Display the matched elements by fading them to opaque.
|
JQueryScript |
fadeIn(Integer duration,
CharSequence callbackScript)
Display the matched elements by fading them to opaque.
|
JQueryScript |
fadeIn(Integer duration,
String easing,
CharSequence callbackScript)
Display the matched elements by fading them to opaque.
|
JQueryScript |
fadeOut()
Hide the matched elements by fading them to transparent.
|
JQueryScript |
fadeOut(Integer duration,
String easing,
String callbackScript)
Hide the matched elements by fading them to transparent.
|
JQueryScript |
fadeToggle()
Display or hide the matched elements by animating their opacity.
|
JQueryScript |
fadeToggle(Integer duration,
String easing,
String callbackScript)
Display or hide the matched elements by animating their opacity.
|
JQueryScript |
hide()
Hide the matched elements.
|
JQueryScript |
hide(Integer duration,
String easing,
String callbackScript)
Hide the matched elements.
|
JQueryScript |
hoverIntent(CharSequence callBackIn,
CharSequence callBackOut)
Bind two handlers to the matched elements, to be executed when the mouse pointer enters and
leaves the elements.
|
JQueryScript |
removeClass(String string) |
JQueryScript |
show()
Display the matched elements.
|
JQueryScript |
show(Integer duration,
String easing,
String callbackScript)
Display the matched elements.
|
JQueryScript |
siblings(String selector) |
JQueryScript |
slideDown()
Display the matched elements with a sliding motion.
|
JQueryScript |
slideDown(Integer duration,
String easing,
String callbackScript)
Display the matched elements with a sliding motion.
|
JQueryScript |
slideToggle()
Display or hide the matched elements with a sliding motion.
|
JQueryScript |
slideToggle(Integer duration,
String easing,
String callbackScript)
Display or hide the matched elements with a sliding motion.
|
JQueryScript |
slideUp()
Hide the matched elements with a sliding motion.
|
JQueryScript |
slideUp(Integer duration,
String easing,
String callbackScript)
Hide the matched elements with a sliding motion.
|
JQueryScript |
toggle()
Display or hide the matched elements.
|
JQueryScript |
toggle(Integer duration,
String easing,
String callbackScript)
Display or hide the matched elements.
|
String |
toString() |
public static Integer DEFAULT_ANIMATION_DURATION
public static String DEFAULT_EASING_FUNCTION
public static String ANIMATE_TEMPLATE
public static String CHILDREN_TEMPLATE
public static String HIDE_TEMPLATE
public static String SHOW_TEMPLATE
public static String HOVER_INTENT_TEMPLATE
public static String FADEIN_TEMPLATE
public static String FADETOGGLE_TEMPLATE
public static String FADEOUT_TEMPLATE
public static String TOGGLE_TEMPLATE
public static String SLIDEDOWN_TEMPLATE
public static String SLIDEUP_TEMPLATE
public static String SLIDETOGGLE_TEMPLATE
public static String KEYPRESS_TEMPLATE
public static String CLICK_TEMPLATE
protected final StringBuffer scriptBuffer
public JQueryScript()
public JQueryScript(org.apache.wicket.Component component)
Component.setMarkupId(String).component - The component to be selected.public JQueryScript(String selector)
selector - The selector to use.public JQueryScript animate(Properties properties, Integer duration, String easing, CharSequence callbackScript)
properties - A map of CSS properties that the animation will move toward.duration - A number determining how long the animation will run (in milliseconds), defaults
to 400.easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript children(String selector)
selector - The selector to use.public JQueryScript fadeIn()
public JQueryScript fadeIn(Integer duration, CharSequence callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 400.callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript fadeIn(Integer duration, String easing, CharSequence callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 400.easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript fadeOut()
public JQueryScript fadeOut(Integer duration, String easing, String callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 400.easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript fadeToggle()
duration - A number determining how long the animation will run (in milliseconds), defaults
to 400.easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript fadeToggle(Integer duration, String easing, String callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 400.easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript hide()
public JQueryScript hoverIntent(CharSequence callBackIn, CharSequence callBackOut)
callBackIn - A script to execute when the mouse pointer enters the element.callBackOut - A script to execute when the mouse pointer leaves the element.public JQueryScript hide(Integer duration, String easing, String callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 0 (hiding immediately).easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript click(String callbackScript)
public JQueryScript show()
public JQueryScript show(Integer duration, String easing, String callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 0 (showing immediately).easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript slideDown()
public JQueryScript slideDown(Integer duration, String easing, String callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 400.easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript slideUp()
public JQueryScript slideUp(Integer duration, String easing, String callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 400.easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript slideToggle()
public JQueryScript slideToggle(Integer duration, String easing, String callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 400.easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript toggle()
public JQueryScript toggle(Integer duration, String easing, String callbackScript)
duration - A number determining how long the animation will run (in milliseconds), defaults
to 0 (toggling immediately).easing - A string indicating which easing function to use for the transition, defaults to
"swing".callbackScript - A script to call once the animation is complete, defaults to an empty script.public JQueryScript siblings(String selector)
public JQueryScript removeClass(String string)
public JQueryScript addClass(String string)
public JQueryScript append(String script)
Copyright © 2013 dontdrinkandroot. All rights reserved.