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

com.vaadin.polymer.neon.widget.NeonAnimatable 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.neon.widget;

import com.vaadin.polymer.neon.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;

/**
 * 

<neon-animatable> is a simple container element implementing Polymer.NeonAnimatableBehavior. This is a convenience element for use with <neon-animated-pages>.

*
<neon-animated-pages selected="0"
 *                      entry-animation="slide-from-right-animation"
 *                      exit-animation="slide-left-animation">
 *   <neon-animatable>1</neon-animatable>
 *   <neon-animatable>2</neon-animatable>
 * </neon-animated-pages>
 * 
*/ public class NeonAnimatable extends PolymerWidget { /** * Default Constructor. */ public NeonAnimatable() { this(""); } /** * Constructor used by UIBinder to create widgets with content. */ public NeonAnimatable(String html) { super(NeonAnimatableElement.TAG, NeonAnimatableElement.SRC, html); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public NeonAnimatableElement getPolymerElement() { try { return (NeonAnimatableElement) getElement(); } catch (ClassCastException e) { jsinteropError(); return null; } } /** *

Animation configuration. See README for more info.

* * JavaScript Info: * @property animationConfig * @type Object * */ public JavaScriptObject getAnimationConfig(){ return getPolymerElement().getAnimationConfig(); } /** *

Animation configuration. See README for more info.

* * JavaScript Info: * @property animationConfig * @type Object * */ public void setAnimationConfig(JavaScriptObject value) { getPolymerElement().setAnimationConfig(value); } /** *

Animation configuration. See README for more info.

* * JavaScript Info: * @attribute animation-config * */ public void setAnimationConfig(String value) { getPolymerElement().setAttribute("animation-config", value); } /** *

Convenience property for setting an ‘entry’ animation. Do not set animationConfig.entry
manually if using this. The animated node is set to this if using this property.

* * JavaScript Info: * @property entryAnimation * @type String * */ public String getEntryAnimation(){ return getPolymerElement().getEntryAnimation(); } /** *

Convenience property for setting an ‘entry’ animation. Do not set animationConfig.entry
manually if using this. The animated node is set to this if using this property.

* * JavaScript Info: * @property entryAnimation * @type String * */ public void setEntryAnimation(String value) { getPolymerElement().setEntryAnimation(value); } /** *

Convenience property for setting an ‘exit’ animation. Do not set animationConfig.exit
manually if using this. The animated node is set to this if using this property.

* * JavaScript Info: * @property exitAnimation * @type String * */ public String getExitAnimation(){ return getPolymerElement().getExitAnimation(); } /** *

Convenience property for setting an ‘exit’ animation. Do not set animationConfig.exit
manually if using this. The animated node is set to this if using this property.

* * JavaScript Info: * @property exitAnimation * @type String * */ public void setExitAnimation(String value) { getPolymerElement().setExitAnimation(value); } /** *

An element implementing Polymer.NeonAnimationRunnerBehavior calls this method to configure
an animation with an optional type. Elements implementing Polymer.NeonAnimatableBehavior
should define the property animationConfig, which is either a configuration object
or a map of animation type to array of configuration objects.

* * JavaScript Info: * @method getAnimationConfig * @param {} type * */ public void getAnimationConfig(JavaScriptObject type) { getPolymerElement().getAnimationConfig(type); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy