com.vaadin.polymer.iron.widget.IronDropdown Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-dropdown project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.iron.widget;
import com.vaadin.polymer.iron.element.*;
import com.vaadin.polymer.iron.widget.event.IronOverlayClosedEvent;
import com.vaadin.polymer.iron.widget.event.IronOverlayClosedEventHandler;
import com.vaadin.polymer.iron.widget.event.IronOverlayOpenedEvent;
import com.vaadin.polymer.iron.widget.event.IronOverlayOpenedEventHandler;
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;
/**
* <iron-dropdown>
is a generalized element that is useful when you have
hidden content (.dropdown-content
) that is revealed due to some change in
state that should cause it to do so.
* Note that this is a low-level element intended to be used as part of other
composite elements that cause dropdowns to be revealed.
* Examples of elements that might be implemented using an iron-dropdown
include comboboxes, menubuttons, selects. The list goes on.
* The <iron-dropdown>
element exposes attributes that allow the position
of the .dropdown-content
relative to the .dropdown-trigger
to be
configured.
* <iron-dropdown horizontal-align="right" vertical-align="top">
* <div class="dropdown-content">Hello!</div>
* </iron-dropdown>
*
*
*
In the above example, the <div>
with class .dropdown-content
will be
hidden until the dropdown element has opened
set to true, or when the open
method is called on the element.
*/
public class IronDropdown extends PolymerWidget {
/**
* Default Constructor.
*/
public IronDropdown() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public IronDropdown(String html) {
super(IronDropdownElement.TAG, IronDropdownElement.SRC, html);
getPolymerElement().addEventListener(
com.vaadin.polymer.iron.element.event.IronOverlayClosedEvent.NAME,
new com.vaadin.polymer.iron.element.event.IronOverlayClosedEvent.Listener() {
@Override
protected void handleEvent(com.vaadin.polymer.iron.element.event.IronOverlayClosedEvent event) {
fireEvent(new IronOverlayClosedEvent(event));
}
});
getPolymerElement().addEventListener(
com.vaadin.polymer.iron.element.event.IronOverlayOpenedEvent.NAME,
new com.vaadin.polymer.iron.element.event.IronOverlayOpenedEvent.Listener() {
@Override
protected void handleEvent(com.vaadin.polymer.iron.element.event.IronOverlayOpenedEvent event) {
fireEvent(new IronOverlayOpenedEvent(event));
}
});
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public IronDropdownElement getPolymerElement() {
try {
return (IronDropdownElement) getElement();
} catch (ClassCastException e) {
jsinteropError();
return null;
}
}
/**
* An animation config. If provided, this will be used to animate the
closing of the dropdown.
*
* JavaScript Info:
* @property closeAnimationConfig
* @type Object
*
*/
public JavaScriptObject getCloseAnimationConfig(){
return getPolymerElement().getCloseAnimationConfig();
}
/**
* An animation config. If provided, this will be used to animate the
closing of the dropdown.
*
* JavaScript Info:
* @property closeAnimationConfig
* @type Object
*
*/
public void setCloseAnimationConfig(JavaScriptObject value) {
getPolymerElement().setCloseAnimationConfig(value);
}
/**
* An animation config. If provided, this will be used to animate the
closing of the dropdown.
*
* JavaScript Info:
* @attribute close-animation-config
*
*/
public void setCloseAnimationConfig(String value) {
getPolymerElement().setAttribute("close-animation-config", value);
}
/**
* The element that is contained by the dropdown, if any.
*
* JavaScript Info:
* @method containedElement
*
*/
public void containedElement() {
getPolymerElement().containedElement();
}
/**
* If provided, this will be the element that will be focused when
the dropdown opens.
*
* JavaScript Info:
* @property focusTarget
* @type Object
*
*/
public JavaScriptObject getFocusTarget(){
return getPolymerElement().getFocusTarget();
}
/**
* If provided, this will be the element that will be focused when
the dropdown opens.
*
* JavaScript Info:
* @property focusTarget
* @type Object
*
*/
public void setFocusTarget(JavaScriptObject value) {
getPolymerElement().setFocusTarget(value);
}
/**
* If provided, this will be the element that will be focused when
the dropdown opens.
*
* JavaScript Info:
* @attribute focus-target
*
*/
public void setFocusTarget(String value) {
getPolymerElement().setAttribute("focus-target", value);
}
/**
* The orientation against which to align the dropdown content
horizontally relative to the dropdown trigger.
*
* JavaScript Info:
* @property horizontalAlign
* @type String
*
*/
public String getHorizontalAlign(){
return getPolymerElement().getHorizontalAlign();
}
/**
* The orientation against which to align the dropdown content
horizontally relative to the dropdown trigger.
*
* JavaScript Info:
* @property horizontalAlign
* @type String
*
*/
public void setHorizontalAlign(String value) {
getPolymerElement().setHorizontalAlign(value);
}
/**
* A pixel value that will be added to the position calculated for the
given horizontalAlign
. Use a negative value to offset to the
left, or a positive value to offset to the right.
*
* JavaScript Info:
* @property horizontalOffset
* @type Number
*
*/
public double getHorizontalOffset(){
return getPolymerElement().getHorizontalOffset();
}
/**
* A pixel value that will be added to the position calculated for the
given horizontalAlign
. Use a negative value to offset to the
left, or a positive value to offset to the right.
*
* JavaScript Info:
* @property horizontalOffset
* @type Number
*
*/
public void setHorizontalOffset(double value) {
getPolymerElement().setHorizontalOffset(value);
}
/**
* A pixel value that will be added to the position calculated for the
given horizontalAlign
. Use a negative value to offset to the
left, or a positive value to offset to the right.
*
* JavaScript Info:
* @attribute horizontal-offset
*
*/
public void setHorizontalOffset(String value) {
getPolymerElement().setAttribute("horizontal-offset", value);
}
/**
* Set to true to disable animations when opening and closing the
dropdown.
*
* JavaScript Info:
* @property noAnimations
* @type Boolean
*
*/
public boolean getNoAnimations(){
return getPolymerElement().getNoAnimations();
}
/**
* Set to true to disable animations when opening and closing the
dropdown.
*
* JavaScript Info:
* @property noAnimations
* @type Boolean
*
*/
public void setNoAnimations(boolean value) {
getPolymerElement().setNoAnimations(value);
}
/**
* An animation config. If provided, this will be used to animate the
opening of the dropdown.
*
* JavaScript Info:
* @property openAnimationConfig
* @type Object
*
*/
public JavaScriptObject getOpenAnimationConfig(){
return getPolymerElement().getOpenAnimationConfig();
}
/**
* An animation config. If provided, this will be used to animate the
opening of the dropdown.
*
* JavaScript Info:
* @property openAnimationConfig
* @type Object
*
*/
public void setOpenAnimationConfig(JavaScriptObject value) {
getPolymerElement().setOpenAnimationConfig(value);
}
/**
* An animation config. If provided, this will be used to animate the
opening of the dropdown.
*
* JavaScript Info:
* @attribute open-animation-config
*
*/
public void setOpenAnimationConfig(String value) {
getPolymerElement().setAttribute("open-animation-config", value);
}
/**
* The element that should be used to position the dropdown when
it is opened.
*
* JavaScript Info:
* @property positionTarget
* @type Object
*
*/
public JavaScriptObject getPositionTarget(){
return getPolymerElement().getPositionTarget();
}
/**
* The element that should be used to position the dropdown when
it is opened.
*
* JavaScript Info:
* @property positionTarget
* @type Object
*
*/
public void setPositionTarget(JavaScriptObject value) {
getPolymerElement().setPositionTarget(value);
}
/**
* The element that should be used to position the dropdown when
it is opened.
*
* JavaScript Info:
* @attribute position-target
*
*/
public void setPositionTarget(String value) {
getPolymerElement().setAttribute("position-target", value);
}
/**
* The orientation against which to align the dropdown content
vertically relative to the dropdown trigger.
*
* JavaScript Info:
* @property verticalAlign
* @type String
*
*/
public String getVerticalAlign(){
return getPolymerElement().getVerticalAlign();
}
/**
* The orientation against which to align the dropdown content
vertically relative to the dropdown trigger.
*
* JavaScript Info:
* @property verticalAlign
* @type String
*
*/
public void setVerticalAlign(String value) {
getPolymerElement().setVerticalAlign(value);
}
/**
* A pixel value that will be added to the position calculated for the
given verticalAlign
. Use a negative value to offset towards the
top, or a positive value to offset towards the bottom.
*
* JavaScript Info:
* @property verticalOffset
* @type Number
*
*/
public double getVerticalOffset(){
return getPolymerElement().getVerticalOffset();
}
/**
* A pixel value that will be added to the position calculated for the
given verticalAlign
. Use a negative value to offset towards the
top, or a positive value to offset towards the bottom.
*
* JavaScript Info:
* @property verticalOffset
* @type Number
*
*/
public void setVerticalOffset(double value) {
getPolymerElement().setVerticalOffset(value);
}
/**
* A pixel value that will be added to the position calculated for the
given verticalAlign
. Use a negative value to offset towards the
top, or a positive value to offset towards the bottom.
*
* JavaScript Info:
* @attribute vertical-offset
*
*/
public void setVerticalOffset(String value) {
getPolymerElement().setAttribute("vertical-offset", value);
}
/**
*
*
* JavaScript Info:
* @method attached
*
*/
public void attached() {
getPolymerElement().attached();
}
/**
*
*
* JavaScript Info:
* @property listeners
* @type Object
*
*/
public JavaScriptObject getListeners(){
return getPolymerElement().getListeners();
}
/**
*
*
* JavaScript Info:
* @property listeners
* @type Object
*
*/
public void setListeners(JavaScriptObject value) {
getPolymerElement().setListeners(value);
}
/**
*
*
* JavaScript Info:
* @property observers
* @type Array
*
*/
public JsArray getObservers(){
return getPolymerElement().getObservers();
}
/**
*
*
* JavaScript Info:
* @property observers
* @type Array
*
*/
public void setObservers(JsArray value) {
getPolymerElement().setObservers(value);
}
/**
* If true, the user cannot interact with this element.
*
* JavaScript Info:
* @property disabled
* @type Boolean
* @behavior PaperTab
*/
public boolean getDisabled(){
return getPolymerElement().getDisabled();
}
/**
* If true, the user cannot interact with this element.
*
* JavaScript Info:
* @property disabled
* @type Boolean
* @behavior PaperTab
*/
public void setDisabled(boolean value) {
getPolymerElement().setDisabled(value);
}
/**
* If true, the element currently has focus.
*
* JavaScript Info:
* @property focused
* @type Boolean
* @behavior PaperTab
*/
public boolean getFocused(){
return getPolymerElement().getFocused();
}
/**
* If true, the element currently has focus.
*
* JavaScript Info:
* @property focused
* @type Boolean
* @behavior PaperTab
*/
public void setFocused(boolean value) {
getPolymerElement().setFocused(value);
}
/**
* Can be used to imperatively add a key binding to the implementing
element. This is the imperative equivalent of declaring a keybinding
in the keyBindings
prototype property.
*
* JavaScript Info:
* @method addOwnKeyBinding
* @param {} eventString
* @param {} handlerName
* @behavior PaperTab
*/
public void addOwnKeyBinding(JavaScriptObject eventString, JavaScriptObject handlerName) {
getPolymerElement().addOwnKeyBinding(eventString, handlerName);
}
/**
*
*
* JavaScript Info:
* @property keyBindings
* @type Object
* @behavior PaperTab
*/
public JavaScriptObject getKeyBindings(){
return getPolymerElement().getKeyBindings();
}
/**
*
*
* JavaScript Info:
* @property keyBindings
* @type Object
* @behavior PaperTab
*/
public void setKeyBindings(JavaScriptObject value) {
getPolymerElement().setKeyBindings(value);
}
/**
* The HTMLElement that will be firing relevant KeyboardEvents.
*
* JavaScript Info:
* @property keyEventTarget
* @type Object
* @behavior PaperTab
*/
public JavaScriptObject getKeyEventTarget(){
return getPolymerElement().getKeyEventTarget();
}
/**
* The HTMLElement that will be firing relevant KeyboardEvents.
*
* JavaScript Info:
* @property keyEventTarget
* @type Object
* @behavior PaperTab
*/
public void setKeyEventTarget(JavaScriptObject value) {
getPolymerElement().setKeyEventTarget(value);
}
/**
* The HTMLElement that will be firing relevant KeyboardEvents.
*
* JavaScript Info:
* @attribute key-event-target
* @behavior PaperTab
*/
public void setKeyEventTarget(String value) {
getPolymerElement().setAttribute("key-event-target", value);
}
/**
*
*
* JavaScript Info:
* @method keyboardEventMatchesKeys
* @param {} event
* @param {} eventString
* @behavior PaperTab
*/
public void keyboardEventMatchesKeys(JavaScriptObject event, JavaScriptObject eventString) {
getPolymerElement().keyboardEventMatchesKeys(event, eventString);
}
/**
* When called, will remove all imperatively-added key bindings.
*
* JavaScript Info:
* @method removeOwnKeyBindings
* @behavior PaperTab
*/
public void removeOwnKeyBindings() {
getPolymerElement().removeOwnKeyBindings();
}
/**
*
*
* JavaScript Info:
* @method detached
* @behavior PaperTab
*/
public void detached() {
getPolymerElement().detached();
}
/**
*
*
* JavaScript Info:
* @method registered
* @behavior PaperTab
*/
public void registered() {
getPolymerElement().registered();
}
/**
* The backdrop element.
*
* JavaScript Info:
* @method backdropElement
* @behavior PaperDialog
*/
public void backdropElement() {
getPolymerElement().backdropElement();
}
/**
* Cancels the overlay.
*
* JavaScript Info:
* @method cancel
* @behavior PaperDialog
*/
public void cancel() {
getPolymerElement().cancel();
}
/**
* True if the overlay was canceled when it was last closed.
*
* JavaScript Info:
* @property canceled
* @type Boolean
* @behavior PaperDialog
*/
public boolean getCanceled(){
return getPolymerElement().getCanceled();
}
/**
* True if the overlay was canceled when it was last closed.
*
* JavaScript Info:
* @property canceled
* @type Boolean
* @behavior PaperDialog
*/
public void setCanceled(boolean value) {
getPolymerElement().setCanceled(value);
}
/**
* Close the overlay.
*
* JavaScript Info:
* @method close
* @behavior PaperDialog
*/
public void close() {
getPolymerElement().close();
}
/**
* Returns the reason this dialog was last closed.
*
* JavaScript Info:
* @property closingReason
* @type Object
* @behavior PaperDialog
*/
public JavaScriptObject getClosingReason(){
return getPolymerElement().getClosingReason();
}
/**
* Returns the reason this dialog was last closed.
*
* JavaScript Info:
* @property closingReason
* @type Object
* @behavior PaperDialog
*/
public void setClosingReason(JavaScriptObject value) {
getPolymerElement().setClosingReason(value);
}
/**
* Returns the reason this dialog was last closed.
*
* JavaScript Info:
* @attribute closing-reason
* @behavior PaperDialog
*/
public void setClosingReason(String value) {
getPolymerElement().setAttribute("closing-reason", value);
}
/**
* Set to true to disable auto-focusing the overlay or child nodes with
the autofocus
attribute` when the overlay is opened.
*
* JavaScript Info:
* @property noAutoFocus
* @type Boolean
* @behavior PaperDialog
*/
public boolean getNoAutoFocus(){
return getPolymerElement().getNoAutoFocus();
}
/**
* Set to true to disable auto-focusing the overlay or child nodes with
the autofocus
attribute` when the overlay is opened.
*
* JavaScript Info:
* @property noAutoFocus
* @type Boolean
* @behavior PaperDialog
*/
public void setNoAutoFocus(boolean value) {
getPolymerElement().setNoAutoFocus(value);
}
/**
* Set to true to disable canceling the overlay with the ESC key.
*
* JavaScript Info:
* @property noCancelOnEscKey
* @type Boolean
* @behavior PaperDialog
*/
public boolean getNoCancelOnEscKey(){
return getPolymerElement().getNoCancelOnEscKey();
}
/**
* Set to true to disable canceling the overlay with the ESC key.
*
* JavaScript Info:
* @property noCancelOnEscKey
* @type Boolean
* @behavior PaperDialog
*/
public void setNoCancelOnEscKey(boolean value) {
getPolymerElement().setNoCancelOnEscKey(value);
}
/**
* Set to true to disable canceling the overlay by clicking outside it.
*
* JavaScript Info:
* @property noCancelOnOutsideClick
* @type Boolean
* @behavior PaperDialog
*/
public boolean getNoCancelOnOutsideClick(){
return getPolymerElement().getNoCancelOnOutsideClick();
}
/**
* Set to true to disable canceling the overlay by clicking outside it.
*
* JavaScript Info:
* @property noCancelOnOutsideClick
* @type Boolean
* @behavior PaperDialog
*/
public void setNoCancelOnOutsideClick(boolean value) {
getPolymerElement().setNoCancelOnOutsideClick(value);
}
/**
* Open the overlay.
*
* JavaScript Info:
* @method open
* @behavior PaperDialog
*/
public void open() {
getPolymerElement().open();
}
/**
* True if the overlay is currently displayed.
*
* JavaScript Info:
* @property opened
* @type Boolean
* @behavior PaperDialog
*/
public boolean getOpened(){
return getPolymerElement().getOpened();
}
/**
* True if the overlay is currently displayed.
*
* JavaScript Info:
* @property opened
* @type Boolean
* @behavior PaperDialog
*/
public void setOpened(boolean value) {
getPolymerElement().setOpened(value);
}
/**
* Toggle the opened state of the overlay.
*
* JavaScript Info:
* @method toggle
* @behavior PaperDialog
*/
public void toggle() {
getPolymerElement().toggle();
}
/**
* Set to true to display a backdrop behind the overlay.
*
* JavaScript Info:
* @property withBackdrop
* @type Boolean
* @behavior PaperDialog
*/
public boolean getWithBackdrop(){
return getPolymerElement().getWithBackdrop();
}
/**
* Set to true to display a backdrop behind the overlay.
*
* JavaScript Info:
* @property withBackdrop
* @type Boolean
* @behavior PaperDialog
*/
public void setWithBackdrop(boolean value) {
getPolymerElement().setWithBackdrop(value);
}
/**
* Set to true to auto-fit on attach.
*
* JavaScript Info:
* @property autoFitOnAttach
* @type Boolean
* @behavior PaperDialog
*/
public boolean getAutoFitOnAttach(){
return getPolymerElement().getAutoFitOnAttach();
}
/**
* Set to true to auto-fit on attach.
*
* JavaScript Info:
* @property autoFitOnAttach
* @type Boolean
* @behavior PaperDialog
*/
public void setAutoFitOnAttach(boolean value) {
getPolymerElement().setAutoFitOnAttach(value);
}
/**
* Centers horizontally and vertically if not already positioned. This also sets
position:fixed
.
*
* JavaScript Info:
* @method center
* @behavior PaperDialog
*/
public void center() {
getPolymerElement().center();
}
/**
* Constrains the size of the element to the window or fitInfo
by setting max-height
and/or max-width
.
*
* JavaScript Info:
* @method constrain
* @behavior PaperDialog
*/
public void constrain() {
getPolymerElement().constrain();
}
/**
* Fits and optionally centers the element into the window, or fitInfo
if specified.
*
* JavaScript Info:
* @method fit
* @behavior PaperDialog
*/
public void fit() {
getPolymerElement().fit();
}
/**
* The element to fit this
into.
*
* JavaScript Info:
* @property fitInto
* @type Object
* @behavior PaperDialog
*/
public JavaScriptObject getFitInto(){
return getPolymerElement().getFitInto();
}
/**
* The element to fit this
into.
*
* JavaScript Info:
* @property fitInto
* @type Object
* @behavior PaperDialog
*/
public void setFitInto(JavaScriptObject value) {
getPolymerElement().setFitInto(value);
}
/**
* The element to fit this
into.
*
* JavaScript Info:
* @attribute fit-into
* @behavior PaperDialog
*/
public void setFitInto(String value) {
getPolymerElement().setAttribute("fit-into", value);
}
/**
* Equivalent to calling resetFit()
and fit()
. Useful to call this after the element,
the window, or the fitInfo
element has been resized.
*
* JavaScript Info:
* @method refit
* @behavior PaperDialog
*/
public void refit() {
getPolymerElement().refit();
}
/**
* Resets the target element’s position and size constraints, and clear
the memoized data.
*
* JavaScript Info:
* @method resetFit
* @behavior PaperDialog
*/
public void resetFit() {
getPolymerElement().resetFit();
}
/**
* The element that will receive a max-height
/width
. By default it is the same as this
,
but it can be set to a child element. This is useful, for example, for implementing a
scrolling region inside the element.
*
* JavaScript Info:
* @property sizingTarget
* @type !Element
* @behavior PaperDialog
*/
public JavaScriptObject getSizingTarget(){
return getPolymerElement().getSizingTarget();
}
/**
* The element that will receive a max-height
/width
. By default it is the same as this
,
but it can be set to a child element. This is useful, for example, for implementing a
scrolling region inside the element.
*
* JavaScript Info:
* @property sizingTarget
* @type !Element
* @behavior PaperDialog
*/
public void setSizingTarget(JavaScriptObject value) {
getPolymerElement().setSizingTarget(value);
}
/**
* The element that will receive a max-height
/width
. By default it is the same as this
,
but it can be set to a child element. This is useful, for example, for implementing a
scrolling region inside the element.
*
* JavaScript Info:
* @attribute sizing-target
* @behavior PaperDialog
*/
public void setSizingTarget(String value) {
getPolymerElement().setAttribute("sizing-target", value);
}
/**
* Used to assign the closest resizable ancestor to this resizable
if the ancestor detects a request for notifications.
*
* JavaScript Info:
* @method assignParentResizable
* @param {} parentResizable
* @behavior PaperTabs
*/
public void assignParentResizable(JavaScriptObject parentResizable) {
getPolymerElement().assignParentResizable(parentResizable);
}
/**
* Can be called to manually notify a resizable and its descendant
resizables of a resize change.
*
* JavaScript Info:
* @method notifyResize
* @behavior PaperTabs
*/
public void notifyResize() {
getPolymerElement().notifyResize();
}
/**
* This method can be overridden to filter nested elements that should or
should not be notified by the current element. Return true if an element
should be notified, or false if it should not be notified.
*
* JavaScript Info:
* @method resizerShouldNotify
* @param {HTMLElement} element
* @behavior PaperTabs
*/
public void resizerShouldNotify(JavaScriptObject element) {
getPolymerElement().resizerShouldNotify(element);
}
/**
* Used to remove a resizable descendant from the list of descendants
that should be notified of a resize change.
*
* JavaScript Info:
* @method stopResizeNotificationsFor
* @param {} target
* @behavior PaperTabs
*/
public void stopResizeNotificationsFor(JavaScriptObject target) {
getPolymerElement().stopResizeNotificationsFor(target);
}
/**
* Animation configuration. See README for more info.
*
* JavaScript Info:
* @property animationConfig
* @type Object
* @behavior NeonAnimatedPages
*/
public JavaScriptObject getAnimationConfig(){
return getPolymerElement().getAnimationConfig();
}
/**
* Animation configuration. See README for more info.
*
* JavaScript Info:
* @property animationConfig
* @type Object
* @behavior NeonAnimatedPages
*/
public void setAnimationConfig(JavaScriptObject value) {
getPolymerElement().setAnimationConfig(value);
}
/**
* Animation configuration. See README for more info.
*
* JavaScript Info:
* @attribute animation-config
* @behavior NeonAnimatedPages
*/
public void setAnimationConfig(String value) {
getPolymerElement().setAttribute("animation-config", value);
}
/**
* Cancels the currently running animation.
*
* JavaScript Info:
* @method cancelAnimation
* @behavior NeonAnimatedPages
*/
public void cancelAnimation() {
getPolymerElement().cancelAnimation();
}
/**
* 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
* @behavior NeonAnimatedPages
*/
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
* @behavior NeonAnimatedPages
*/
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
* @behavior NeonAnimatedPages
*/
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
* @behavior NeonAnimatedPages
*/
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
* @behavior NeonAnimatedPages
*/
public void getAnimationConfig(JavaScriptObject type) {
getPolymerElement().getAnimationConfig(type);
}
/**
* Plays an animation with an optional type
.
*
* JavaScript Info:
* @method playAnimation
* @param {string=} type
* @param {!Object=} cookie
* @behavior NeonAnimatedPages
*/
public void playAnimation(JavaScriptObject type, JavaScriptObject cookie) {
getPolymerElement().playAnimation(type, cookie);
}
/**
* Fired after the iron-overlay
closes.
*
* JavaScript Info:
* @event iron-overlay-closed
*/
public HandlerRegistration addIronOverlayClosedHandler(IronOverlayClosedEventHandler handler) {
return addHandler(handler, IronOverlayClosedEvent.TYPE);
}
/**
* Fired after the iron-overlay
opens.
*
* JavaScript Info:
* @event iron-overlay-opened
*/
public HandlerRegistration addIronOverlayOpenedHandler(IronOverlayOpenedEventHandler handler) {
return addHandler(handler, IronOverlayOpenedEvent.TYPE);
}
}