All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.polymer.cascaded.widget.CascadedAnimation Maven / Gradle / Ivy

There is a newer version: 1.9.3.1
Show newest version
/*
 * This code was generated with Vaadin Web Component GWT API Generator, 
 * from neon-animation project by The Polymer Authors
 * that is licensed with http://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.cascaded.widget;

import com.vaadin.polymer.cascaded.element.*;

import com.vaadin.polymer.PolymerWidget;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;

/**
 * 

<cascaded-animation> applies an animation on an array of elements with a delay between each.
the delay defaults to 50ms.

*

Configuration:

*
{
 *   name: 'cascaded-animation',
 *   animation: <animation-name>,
 *   nodes: <array-of-nodes>,
 *   nodedelay: <node-delay-in-ms>,
 *   timing: <animation-timing>
 * }
 * 
*/ public class CascadedAnimation extends PolymerWidget { /** * Default Constructor. */ public CascadedAnimation() { this(""); } /** * Constructor used by UIBinder to create widgets with content. */ public CascadedAnimation(String html) { super(CascadedAnimationElement.TAG, CascadedAnimationElement.SRC, html); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public CascadedAnimationElement getPolymerElement() { return (CascadedAnimationElement) getElement(); } /** * * * JavaScript Info: * @method complete * */ public void complete() { getPolymerElement().complete(); } /** * * * JavaScript Info: * @method configure * @param {{animation: string, nodes: !Array., nodeDelay: (number|undefined), timing: (Object|undefined)}} config * */ public void configure(JavaScriptObject config) { getPolymerElement().configure(config); } /** *

Defines the animation timing.

* * JavaScript Info: * @property animationTiming * @type Object * @behavior TransformAnimation */ public JavaScriptObject getAnimationTiming(){ return getPolymerElement().getAnimationTiming(); } /** *

Defines the animation timing.

* * JavaScript Info: * @property animationTiming * @type Object * @behavior TransformAnimation */ public void setAnimationTiming(JavaScriptObject value) { getPolymerElement().setAnimationTiming(value); } /** *

Defines the animation timing.

* * JavaScript Info: * @attribute animation-timing * @behavior TransformAnimation */ public void setAnimationTiming(String value) { getPolymerElement().setAttribute("animation-timing", value); } /** *

Sets transform and transformOrigin properties along with the prefixed versions.

* * JavaScript Info: * @method setPrefixedProperty * @param {} node * @param {} property * @param {} value * @behavior TransformAnimation */ public void setPrefixedProperty(JavaScriptObject node, JavaScriptObject property, JavaScriptObject value) { getPolymerElement().setPrefixedProperty(node, property, value); } /** *

Returns the animation timing by mixing in properties from config to the defaults defined
by the animation.

* * JavaScript Info: * @method timingFromConfig * @param {} config * @behavior TransformAnimation */ public void timingFromConfig(JavaScriptObject config) { getPolymerElement().timingFromConfig(config); } /** * * * JavaScript Info: * @method registered * @behavior TransformAnimation */ public void registered() { getPolymerElement().registered(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy