com.vaadin.polymer.paper.widget.PaperMaterial Maven / Gradle / Ivy
The newest version!
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from paper-material 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.*;
import com.vaadin.polymer.*;
import com.vaadin.polymer.elemental.*;
import com.vaadin.polymer.PolymerWidget;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;
/**
* Material design: Cards
* paper-material
is a container that renders two shadows on top of each other to
create the effect of a lifted piece of paper.
* Example:
* <paper-material elevation="1">
* ... content ...
* </paper-material>
*
*
*
*/
public class PaperMaterial extends PolymerWidget {
/**
* Default Constructor.
*/
public PaperMaterial() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public PaperMaterial(String html) {
super(PaperMaterialElement.TAG, PaperMaterialElement.SRC, html);
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public PaperMaterialElement getPolymerElement() {
return (PaperMaterialElement) getElement();
}
/**
* Set this to true to animate the shadow when setting a new
elevation
value.
*
* JavaScript Info:
* @property animated
* @type Boolean
*
*/
public boolean getAnimated() {
return getPolymerElement().getAnimated();
}
/**
* Set this to true to animate the shadow when setting a new
elevation
value.
*
* JavaScript Info:
* @property animated
* @type Boolean
*
*/
public void setAnimated(boolean value) {
getPolymerElement().setAnimated(value);
}
/**
* The z-depth of this element, from 0-5. Setting to 0 will remove the
shadow, and each increasing number greater than 0 will be “deeper”
than the last.
*
* JavaScript Info:
* @property elevation
* @type Number
*
*/
public double getElevation() {
return getPolymerElement().getElevation();
}
/**
* The z-depth of this element, from 0-5. Setting to 0 will remove the
shadow, and each increasing number greater than 0 will be “deeper”
than the last.
*
* JavaScript Info:
* @property elevation
* @type Number
*
*/
public void setElevation(double value) {
getPolymerElement().setElevation(value);
}
// Needed in UIBinder
/**
* The z-depth of this element, from 0-5. Setting to 0 will remove the
shadow, and each increasing number greater than 0 will be “deeper”
than the last.
*
* JavaScript Info:
* @attribute elevation
*
*/
public void setElevation(String value) {
Polymer.property(this.getPolymerElement(), "elevation", value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy