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

com.vaadin.polymer.paper.widget.PaperToast 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 paper-toast project by The Polymer Authors
 * that is licensed with http://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.paper.widget;

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

/**
 * 

paper-toast provides a subtle notification toast.

*/ public class PaperToast extends PolymerWidget { /** * Default Constructor. */ public PaperToast() { this(""); } /** * Constructor used by UIBinder to create widgets with content. */ public PaperToast(String html) { super(PaperToastElement.TAG, PaperToastElement.SRC, html); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public PaperToastElement getPolymerElement() { return (PaperToastElement) getElement(); } /** *

The duration in milliseconds to show the toast.

* * JavaScript Info: * @property duration * @type Number * */ public double getDuration(){ return getPolymerElement().getDuration(); } /** *

The duration in milliseconds to show the toast.

* * JavaScript Info: * @property duration * @type Number * */ public void setDuration(double value) { getPolymerElement().setDuration(value); } /** *

The duration in milliseconds to show the toast.

* * JavaScript Info: * @attribute duration * */ public void setDuration(String value) { getPolymerElement().setAttribute("duration", value); } /** *

Hide the toast

* * JavaScript Info: * @method hide * */ public void hide() { getPolymerElement().hide(); } /** *

Show the toast.

* * JavaScript Info: * @method show * */ public void show() { getPolymerElement().show(); } /** *

The text to display in the toast.

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

The text to display in the toast.

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

Toggle the opened state of the toast.

* * JavaScript Info: * @method toggle * */ public void toggle() { getPolymerElement().toggle(); } /** *

True if the toast is currently visible.

* * JavaScript Info: * @property visible * @type Boolean * */ public boolean getVisible(){ return getPolymerElement().getVisible(); } /** *

True if the toast is currently visible.

* * JavaScript Info: * @property visible * @type Boolean * */ public void setVisible(boolean value) { getPolymerElement().setVisible(value); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy