|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.wicket.javascript.JQueryScript
public class JQueryScript
| Field Summary | |
|---|---|
static java.lang.String |
ANIMATE_TEMPLATE
|
static java.lang.String |
CHILDREN_TEMPLATE
|
static java.lang.String |
CLICK_TEMPLATE
|
static java.lang.Integer |
DEFAULT_ANIMATION_DURATION
|
static java.lang.String |
DEFAULT_EASING_FUNCTION
|
static java.lang.String |
FADEIN_TEMPLATE
|
static java.lang.String |
FADEOUT_TEMPLATE
|
static java.lang.String |
FADETOGGLE_TEMPLATE
|
static java.lang.String |
HIDE_TEMPLATE
|
static java.lang.String |
HOVER_INTENT_TEMPLATE
|
static java.lang.String |
KEYPRESS_TEMPLATE
|
protected java.lang.StringBuffer |
scriptBuffer
|
static java.lang.String |
SHOW_TEMPLATE
|
static java.lang.String |
SLIDEDOWN_TEMPLATE
|
static java.lang.String |
SLIDETOGGLE_TEMPLATE
|
static java.lang.String |
SLIDEUP_TEMPLATE
|
static java.lang.String |
TOGGLE_TEMPLATE
|
| Constructor Summary | |
|---|---|
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(java.lang.String selector)
Create a new JQuery Script using the given selector. |
|
| Method Summary | |
|---|---|
JQueryScript |
addClass(java.lang.String string)
|
JQueryScript |
animate(java.util.Properties properties,
java.lang.Integer duration,
java.lang.String easing,
java.lang.CharSequence callbackScript)
Perform a custom animation of a set of CSS properties. |
JQueryScript |
append(java.lang.String script)
|
JQueryScript |
children(java.lang.String selector)
Get the children of each element in the set of matched elements, optionally filtered by a selector. |
JQueryScript |
click(java.lang.String callbackScript)
|
JQueryScript |
fadeIn()
Display the matched elements by fading them to opaque. |
JQueryScript |
fadeIn(java.lang.Integer duration,
java.lang.CharSequence callbackScript)
Display the matched elements by fading them to opaque. |
JQueryScript |
fadeIn(java.lang.Integer duration,
java.lang.String easing,
java.lang.CharSequence callbackScript)
Display the matched elements by fading them to opaque. |
JQueryScript |
fadeOut()
Hide the matched elements by fading them to transparent. |
JQueryScript |
fadeOut(java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.Integer duration,
java.lang.String easing,
java.lang.String callbackScript)
Display or hide the matched elements by animating their opacity. |
JQueryScript |
hide()
Hide the matched elements. |
JQueryScript |
hide(java.lang.Integer duration,
java.lang.String easing,
java.lang.String callbackScript)
Hide the matched elements. |
JQueryScript |
hoverIntent(java.lang.CharSequence callBackIn,
java.lang.CharSequence callBackOut)
Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. |
JQueryScript |
removeClass(java.lang.String string)
|
JQueryScript |
show()
Display the matched elements. |
JQueryScript |
show(java.lang.Integer duration,
java.lang.String easing,
java.lang.String callbackScript)
Display the matched elements. |
JQueryScript |
siblings(java.lang.String selector)
|
JQueryScript |
slideDown()
Display the matched elements with a sliding motion. |
JQueryScript |
slideDown(java.lang.Integer duration,
java.lang.String easing,
java.lang.String callbackScript)
Display the matched elements with a sliding motion. |
JQueryScript |
slideToggle()
Display or hide the matched elements with a sliding motion. |
JQueryScript |
slideToggle(java.lang.Integer duration,
java.lang.String easing,
java.lang.String callbackScript)
Display or hide the matched elements with a sliding motion. |
JQueryScript |
slideUp()
Hide the matched elements with a sliding motion. |
JQueryScript |
slideUp(java.lang.Integer duration,
java.lang.String easing,
java.lang.String callbackScript)
Hide the matched elements with a sliding motion. |
JQueryScript |
toggle()
Display or hide the matched elements. |
JQueryScript |
toggle(java.lang.Integer duration,
java.lang.String easing,
java.lang.String callbackScript)
Display or hide the matched elements. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.Integer DEFAULT_ANIMATION_DURATION
public static java.lang.String DEFAULT_EASING_FUNCTION
public static java.lang.String ANIMATE_TEMPLATE
public static java.lang.String CHILDREN_TEMPLATE
public static java.lang.String HIDE_TEMPLATE
public static java.lang.String SHOW_TEMPLATE
public static java.lang.String HOVER_INTENT_TEMPLATE
public static java.lang.String FADEIN_TEMPLATE
public static java.lang.String FADETOGGLE_TEMPLATE
public static java.lang.String FADEOUT_TEMPLATE
public static java.lang.String TOGGLE_TEMPLATE
public static java.lang.String SLIDEDOWN_TEMPLATE
public static java.lang.String SLIDEUP_TEMPLATE
public static java.lang.String SLIDETOGGLE_TEMPLATE
public static java.lang.String KEYPRESS_TEMPLATE
public static java.lang.String CLICK_TEMPLATE
protected final java.lang.StringBuffer scriptBuffer
| Constructor Detail |
|---|
public JQueryScript()
public JQueryScript(org.apache.wicket.Component component)
Component.setMarkupId(String).
component - The component to be selected.public JQueryScript(java.lang.String selector)
selector - The selector to use.| Method Detail |
|---|
public JQueryScript animate(java.util.Properties properties,
java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.String selector)
selector - The selector to use.
public JQueryScript fadeIn()
public JQueryScript fadeIn(java.lang.Integer duration,
java.lang.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(java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.CharSequence callBackIn,
java.lang.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(java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.String callbackScript)
public JQueryScript show()
public JQueryScript show(java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.Integer duration,
java.lang.String easing,
java.lang.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(java.lang.Integer duration,
java.lang.String easing,
java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic JQueryScript siblings(java.lang.String selector)
public JQueryScript removeClass(java.lang.String string)
public JQueryScript addClass(java.lang.String string)
public JQueryScript append(java.lang.String script)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||