com.vaadin.polymer.paper.widget.PaperItem Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from paper-item project by The Polymer Authors
* that is licensed with MIT 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-item>
is a non-interactive list item. By default, it is a horizontal flexbox.
* <paper-item>Item</paper-item>
*
*
*
Use this element with <paper-item-body>
to make Material Design styled two-line and three-line
items.
* <paper-item>
* <paper-item-body two-line>
* <div>Show your status</div>
* <div secondary>Your status is visible to everyone</div>
* </paper-item-body>
* <iron-icon icon="warning"></iron-icon>
* </paper-item>
*
*
*
Styling
* The following custom properties and mixins are available for styling:
*
*
*
* Custom property
* Description
* Default
*
*
*
*
* --paper-item-min-height
* Minimum height of the item
* 48px
*
*
* --paper-item
* Mixin applied to the item
* {}
*
*
*
* Accessibility
* This element has role="listitem"
by default. Depending on usage, it may be more appropriate to set
role="menuitem"
, role="menuitemcheckbox"
or role="menuitemradio"
.
* <paper-item role="menuitemcheckbox">
* <paper-item-body>
* Show your status
* </paper-item-body>
* <paper-checkbox></paper-checkbox>
* </paper-item>
*
*
*
*/
public class PaperItem extends PolymerWidget {
/**
* Default Constructor.
*/
public PaperItem() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public PaperItem(String html) {
super(PaperItemElement.TAG, PaperItemElement.SRC, html);
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public PaperItemElement getPolymerElement() {
return (PaperItemElement) getElement();
}
/**
*
*
* JavaScript Info:
* @property hostAttributes
* @type Object
*
*/
public JavaScriptObject getHostAttributes(){
return getPolymerElement().getHostAttributes();
}
/**
*
*
* JavaScript Info:
* @property hostAttributes
* @type Object
*
*/
public void setHostAttributes(JavaScriptObject value) {
getPolymerElement().setHostAttributes(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy