|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.query.client.GQuery
com.google.gwt.query.client.plugins.QueuePlugin<Effects>
com.google.gwt.query.client.plugins.Effects
public class Effects
Effects plugin for Gwt Query.
| Nested Class Summary | |
|---|---|
static class |
Effects.GQAnimation
Class to access protected methods in Animation. |
static class |
Effects.Speed
Just a class to store predefined speed constant values. |
| Nested classes/interfaces inherited from class com.google.gwt.query.client.plugins.QueuePlugin |
|---|
QueuePlugin.DelayFunction |
| Nested classes/interfaces inherited from class com.google.gwt.query.client.GQuery |
|---|
GQuery.Offset |
| Field Summary | |
|---|---|
static Class<Effects> |
Effects
|
| Fields inherited from class com.google.gwt.query.client.plugins.QueuePlugin |
|---|
DEFAULT_NAME, JUMP_TO_END, Queue, QUEUE_DATA_PREFIX |
| Fields inherited from class com.google.gwt.query.client.GQuery |
|---|
attributeImpl, body, currentContext, currentSelector, dataCache, document, engine, Events, GQUERY, Widgets, window |
| Constructor Summary | |
|---|---|
protected |
Effects(GQuery gq)
|
| Method Summary | |
|---|---|
Effects |
animate(Object stringOrProperties,
Function... funcs)
The animate() method allows you to create animation effects on any numeric Attribute, CSS property, or color CSS property. |
Effects |
animate(Object stringOrProperties,
int duration,
Function... funcs)
The animate() method allows you to create animation effects on any numeric Attribute, CSS properties, or color CSS property. |
Effects |
animate(Object stringOrProperties,
int duration,
PropertiesAnimation.Easing easing,
Function... funcs)
The animate() method allows you to create animation effects on any numeric Attribute, CSS property, or color CSS property. |
Effects |
clip(ClipAnimation.Action a,
ClipAnimation.Corner c,
ClipAnimation.Direction d,
Function... f)
Animate the set of matched elements using the clip property. |
Effects |
clip(ClipAnimation.Action a,
ClipAnimation.Corner c,
ClipAnimation.Direction d,
int duration,
Function... f)
Animate the set of matched elements using the clip property. |
Effects |
clip(ClipAnimation.Action a,
ClipAnimation.Corner c,
Function... f)
Animate the set of matched elements using the clip property. |
Effects |
clipAppear(Function... f)
Reveal all matched elements by adjusting the clip property firing an optional callback after completion. |
Effects |
clipAppear(int millisecs,
Function... f)
Reveal all matched elements by adjusting the clip property firing an optional callback after completion. |
Effects |
clipDisappear(Function... f)
Hide all matched elements by adjusting the clip property firing an optional callback after completion. |
Effects |
clipDisappear(int millisecs,
Function... f)
Hide all matched elements by adjusting the clip property firing an optional callback after completion. |
Effects |
clipDown(Function... f)
Reveal all matched elements by adjusting the clip property firing an optional callback after completion. |
Effects |
clipDown(int millisecs,
Function... f)
Reveal all matched elements by adjusting the clip property firing an optional callback after completion. |
Effects |
clipToggle(Function... f)
Toggle the visibility of all matched elements by adjusting the clip property and firing an optional callback after completion. |
Effects |
clipToggle(int millisecs,
Function... f)
Toggle the visibility of all matched elements by adjusting the clip property and firing an optional callback after completion. |
Effects |
clipUp(Function... f)
Hide all matched elements by adjusting the clip property firing an optional callback after completion. |
Effects |
clipUp(int millisecs,
Function... f)
Hide all matched elements by adjusting the clip property firing an optional callback after completion. |
Effects |
fadeIn(Function... f)
Fade in all matched elements by adjusting their opacity and firing an optional callback after completion. |
Effects |
fadeIn(int millisecs,
Function... f)
Fade in all matched elements by adjusting their opacity and firing an optional callback after completion. |
Effects |
fadeOut(Function... f)
Fade out all matched elements by adjusting their opacity to 0, then setting display to "none" and firing an optional callback after completion. |
Effects |
fadeOut(int millisecs,
Function... f)
Fade out all matched elements by adjusting their opacity to 0, then setting display to "none" and firing an optional callback after completion. |
Effects |
fadeTo(int millisecs,
double opacity,
Function... f)
Fade the opacity of all matched elements to a specified opacity and firing an optional callback after completion. |
Effects |
fadeToggle(Function... f)
Display or hide the matched elements by animating their opacity. |
Effects |
fadeToggle(int millisecs,
Function... f)
Display or hide the matched elements by animating their opacity. |
protected boolean |
isOff()
|
Effects |
slideDown(Function... f)
Reveal all matched elements by adjusting their height and firing an optional callback after completion. |
Effects |
slideDown(int millisecs,
Function... f)
Reveal all matched elements by adjusting their height and firing an optional callback after completion. |
Effects |
slideLeft(Function... f)
Hide all matched elements by adjusting their width and firing an optional callback after completion. |
Effects |
slideLeft(int millisecs,
Function... f)
Hide all matched elements by adjusting their width and firing an optional callback after completion. |
Effects |
slideRight(Function... f)
Reveal all matched elements by adjusting their width and firing an optional callback after completion. |
Effects |
slideRight(int millisecs,
Function... f)
Reveal all matched elements by adjusting their width and firing an optional callback after completion. |
Effects |
slideToggle(int millisecs,
Function... f)
Toggle the visibility of all matched elements by adjusting their height and firing an optional callback after completion. |
Effects |
slideUp(Function... f)
Hide all matched elements by adjusting their height and firing an optional callback after completion. |
Effects |
slideUp(int millisecs,
Function... f)
Hide all matched elements by adjusting their height and firing an optional callback after completion. |
Effects |
toggle(boolean showOrHide)
Toggle displaying each of the set of matched elements. |
Effects |
toggle(int millisecs,
Function... f)
Toggle displaying each of the set of matched elements by animating the width, height, and opacity of the matched elements simultaneously. |
| Methods inherited from class com.google.gwt.query.client.plugins.QueuePlugin |
|---|
clearQueue, clearQueue, delay, delay, dequeue, dequeue, dequeueIfNotDoneYet, queue, queue, queue, queue, queue, queue, queue, replacequeue, stop, stop, stop, stop, stop, stop |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Class<Effects> Effects
| Constructor Detail |
|---|
protected Effects(GQuery gq)
| Method Detail |
|---|
protected boolean isOff()
public Effects animate(Object stringOrProperties,
int duration,
PropertiesAnimation.Easing easing,
Function... funcs)
//move the element from its original position to the position top:500px and left:500px for 400ms.
//use a swing easing function for the transition
$("#foo").animate(Properties.create("{top:'500px',left:'500px'}"), 400, Easing.SWING);
// Change the width and border attributes of a table
$("table").animate(Properties.create("{$width: '500', $border: '10'}"), 400, Easing.LINEAR);
In addition to numeric values, each property can take the strings 'show',
'hide', and 'toggle'. These shortcuts allow for custom hiding and showing
animations that take into account the display type of the element. Animated
properties can also be relative. If a value is supplied with a leading +=
or -= sequence of characters, then the target value is computed by adding
or subtracting the given number from the current value of the property.
Example:
//move the element from its original position to 500px to the left and 5OOpx down for 400ms.
//use a swing easing function for the transition
$("#foo").animate(Properties.create("{top:'+=500px',left:'+=500px'}"), 400, Easing.SWING);
For color css properties, values can be specified via hexadecimal or rgb or
literal values.
Example:
$("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)'", 400, Easing.SWING);
$("#foo").animate($$("{backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)'}"), 400, Easing.SWING);
animate in class GQueryp - a Properties object containing css properties to animate.funcs - an array of Function called once the animation is
completeduration - the duration in milliseconds of the animationeasing - the easing function to use for the transition
public Effects animate(Object stringOrProperties,
Function... funcs)
//move the element from its original position to left:500px for 500ms
$("#foo").animate("left:'500'");
// Change the width attribute of a table
$("table").animate("$width:'500'"), 400, Easing.LINEAR);
In addition to numeric values, each property can take the strings 'show',
'hide', and 'toggle'. These shortcuts allow for custom hiding and showing
animations that take into account the display type of the element. Animated
properties can also be relative. If a value is supplied with a leading +=
or -= sequence of characters, then the target value is computed by adding
or subtracting the given number from the current value of the property.
Example:
//move the element from its original position to 500px to the left for 500ms and
// change the background color of the element at the end of the animation
$("#foo").animate("left:'+=500'", new Function(){
public void f(Element e){
$(e).css(CSS.BACKGROUND_COLOR.with(RGBColor.RED);
}
});
The duration of the animation is 500ms.
For color css properties, values can be specified via hexadecimal or rgb or
literal values.
Example:
$("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)'");
animate in class GQueryprop - the property to animate : "cssName:'value'"funcs - an array of Function called once the animation is
complete
public Effects animate(Object stringOrProperties,
int duration,
Function... funcs)
//move the element from its original position to left:500px for 2s
$("#foo").animate("left:'500px'", 2000);
// Change the width attribute of a table
$("table").animate("$width:'500'"), 400);
In addition to numeric values, each property can take the strings 'show',
'hide', and 'toggle'. These shortcuts allow for custom hiding and showing
animations that take into account the display type of the element. Animated
properties can also be relative. If a value is supplied with a leading +=
or -= sequence of characters, then the target value is computed by adding
or subtracting the given number from the current value of the property.
Example:
//move the element from its original position to 500px to the left for 1000ms and
// change the background color of the element at the end of the animation
$("#foo").animate("left:'+=500'", 1000, new Function(){
public void f(Element e){
$(e).css(CSS.BACKGROUND_COLOR.with(RGBColor.RED);
}
});
For color css properties, values can be specified via hexadecimal or rgb or
literal values.
Example:
$("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000");
animate in class GQueryprop - the property to animate : "cssName:'value'"funcs - an array of Function called once the animation is
completeduration - the duration in milliseconds of the animation
public Effects clip(ClipAnimation.Action a,
ClipAnimation.Corner c,
ClipAnimation.Direction d,
Function... f)
public Effects clip(ClipAnimation.Action a,
ClipAnimation.Corner c,
ClipAnimation.Direction d,
int duration,
Function... f)
public Effects clip(ClipAnimation.Action a,
ClipAnimation.Corner c,
Function... f)
public Effects clipAppear(Function... f)
public Effects clipAppear(int millisecs,
Function... f)
public Effects clipDisappear(Function... f)
public Effects clipDisappear(int millisecs,
Function... f)
public Effects clipDown(Function... f)
public Effects clipDown(int millisecs,
Function... f)
public Effects clipToggle(Function... f)
public Effects clipToggle(int millisecs,
Function... f)
public Effects clipUp(Function... f)
public Effects clipUp(int millisecs,
Function... f)
public Effects fadeIn(Function... f)
fadeIn in class GQuery
public Effects fadeIn(int millisecs,
Function... f)
fadeIn in class GQuerypublic Effects fadeOut(Function... f)
fadeOut in class GQuery
public Effects fadeOut(int millisecs,
Function... f)
fadeOut in class GQuery
public Effects fadeTo(int millisecs,
double opacity,
Function... f)
public Effects fadeToggle(Function... f)
public Effects fadeToggle(int millisecs,
Function... f)
fadeToggle in class GQuerypublic Effects slideDown(Function... f)
slideDown in class GQuery
public Effects slideDown(int millisecs,
Function... f)
slideDown in class GQuerypublic Effects slideLeft(Function... f)
public Effects slideLeft(int millisecs,
Function... f)
public Effects slideRight(Function... f)
public Effects slideRight(int millisecs,
Function... f)
public Effects slideToggle(int millisecs,
Function... f)
slideToggle in class GQuerypublic Effects slideUp(Function... f)
slideUp in class GQuery
public Effects slideUp(int millisecs,
Function... f)
slideUp in class GQuerypublic Effects toggle(boolean showOrHide)
showOrHide - A Boolean indicating whether to show or hide the
elements.
public Effects toggle(int millisecs,
Function... f)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||