com.vaadin.polymer.iron.widget.IronAutogrowTextarea Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-autogrow-textarea 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.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-autogrow-textarea
is an element containing a textarea that grows in height as more
lines of input are entered. Unless an explicit height or the maxRows
property is set, it will
never scroll.
* Example:
* <iron-autogrow-textarea id="a1">
* <textarea id="t1"></textarea>
* </iron-autogrow-textarea>
*
*
*
Because the textarea
‘s value
property is not observable, you should use
this element’s bind-value
instead for imperative updates.
*/
public class IronAutogrowTextarea extends PolymerWidget {
/**
* Default Constructor.
*/
public IronAutogrowTextarea() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public IronAutogrowTextarea(String html) {
super(IronAutogrowTextareaElement.TAG, IronAutogrowTextareaElement.SRC, html);
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public IronAutogrowTextareaElement getPolymerElement() {
return (IronAutogrowTextareaElement) getElement();
}
/**
* Bound to the textarea’s autocomplete
attribute.
*
* JavaScript Info:
* @property autocomplete
* @type String
*
*/
public String getAutocomplete(){
return getPolymerElement().getAutocomplete();
}
/**
* Bound to the textarea’s autocomplete
attribute.
*
* JavaScript Info:
* @property autocomplete
* @type String
*
*/
public void setAutocomplete(String value) {
getPolymerElement().setAutocomplete(value);
}
/**
* Bound to the textarea’s autofocus
attribute.
*
* JavaScript Info:
* @property autofocus
* @type String
*
*/
public String getAutofocus(){
return getPolymerElement().getAutofocus();
}
/**
* Bound to the textarea’s autofocus
attribute.
*
* JavaScript Info:
* @property autofocus
* @type String
*
*/
public void setAutofocus(String value) {
getPolymerElement().setAutofocus(value);
}
/**
* Use this property instead of value
for two-way data binding.
*
* JavaScript Info:
* @property bindValue
* @type String
*
*/
public String getBindValue(){
return getPolymerElement().getBindValue();
}
/**
* Use this property instead of value
for two-way data binding.
*
* JavaScript Info:
* @property bindValue
* @type String
*
*/
public void setBindValue(String value) {
getPolymerElement().setBindValue(value);
}
/**
* Bound to the textarea’s inputmode
attribute.
*
* JavaScript Info:
* @property inputmode
* @type String
*
*/
public String getInputmode(){
return getPolymerElement().getInputmode();
}
/**
* Bound to the textarea’s inputmode
attribute.
*
* JavaScript Info:
* @property inputmode
* @type String
*
*/
public void setInputmode(String value) {
getPolymerElement().setInputmode(value);
}
/**
* The maximum number of rows this element can grow to until it
scrolls. 0 means no maximum.
*
* JavaScript Info:
* @property maxRows
* @type Number
*
*/
public double getMaxRows(){
return getPolymerElement().getMaxRows();
}
/**
* The maximum number of rows this element can grow to until it
scrolls. 0 means no maximum.
*
* JavaScript Info:
* @property maxRows
* @type Number
*
*/
public void setMaxRows(double value) {
getPolymerElement().setMaxRows(value);
}
/**
* The maximum number of rows this element can grow to until it
scrolls. 0 means no maximum.
*
* JavaScript Info:
* @attribute max-rows
*
*/
public void setMaxRows(String value) {
getPolymerElement().setAttribute("max-rows", value);
}
/**
* The maximum length of the input value.
*
* JavaScript Info:
* @property maxlength
* @type Number
*
*/
public double getMaxlength(){
return getPolymerElement().getMaxlength();
}
/**
* The maximum length of the input value.
*
* JavaScript Info:
* @property maxlength
* @type Number
*
*/
public void setMaxlength(double value) {
getPolymerElement().setMaxlength(value);
}
/**
* The maximum length of the input value.
*
* JavaScript Info:
* @attribute maxlength
*
*/
public void setMaxlength(String value) {
getPolymerElement().setAttribute("maxlength", value);
}
/**
* Bound to the textarea’s name
attribute.
*
* JavaScript Info:
* @property name
* @type String
*
*/
public String getName(){
return getPolymerElement().getName();
}
/**
* Bound to the textarea’s name
attribute.
*
* JavaScript Info:
* @property name
* @type String
*
*/
public void setName(String value) {
getPolymerElement().setName(value);
}
/**
* Bound to the textarea’s placeholder
attribute.
*
* JavaScript Info:
* @property placeholder
* @type String
*
*/
public String getPlaceholder(){
return getPolymerElement().getPlaceholder();
}
/**
* Bound to the textarea’s placeholder
attribute.
*
* JavaScript Info:
* @property placeholder
* @type String
*
*/
public void setPlaceholder(String value) {
getPolymerElement().setPlaceholder(value);
}
/**
* Bound to the textarea’s readonly
attribute.
*
* JavaScript Info:
* @property readonly
* @type String
*
*/
public String getReadonly(){
return getPolymerElement().getReadonly();
}
/**
* Bound to the textarea’s readonly
attribute.
*
* JavaScript Info:
* @property readonly
* @type String
*
*/
public void setReadonly(String value) {
getPolymerElement().setReadonly(value);
}
/**
* Set to true to mark the textarea as required.
*
* JavaScript Info:
* @property required
* @type Boolean
*
*/
public boolean getRequired(){
return getPolymerElement().getRequired();
}
/**
* Set to true to mark the textarea as required.
*
* JavaScript Info:
* @property required
* @type Boolean
*
*/
public void setRequired(boolean value) {
getPolymerElement().setRequired(value);
}
/**
* The initial number of rows.
*
* JavaScript Info:
* @property rows
* @type Number
*
*/
public double getRows(){
return getPolymerElement().getRows();
}
/**
* The initial number of rows.
*
* JavaScript Info:
* @property rows
* @type Number
*
*/
public void setRows(double value) {
getPolymerElement().setRows(value);
}
/**
* The initial number of rows.
*
* JavaScript Info:
* @attribute rows
*
*/
public void setRows(String value) {
getPolymerElement().setAttribute("rows", value);
}
/**
* Returns the underlying textarea.
*
* JavaScript Info:
* @method textarea
*
*/
public void textarea() {
getPolymerElement().textarea();
}
/**
*
*
* 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:
* @method hasValidator
* @behavior IronInput
*/
public void hasValidator() {
getPolymerElement().hasValidator();
}
/**
* True if the last call to validate
is invalid.
*
* JavaScript Info:
* @property invalid
* @type Boolean
* @behavior IronInput
*/
public boolean getInvalid(){
return getPolymerElement().getInvalid();
}
/**
* True if the last call to validate
is invalid.
*
* JavaScript Info:
* @property invalid
* @type Boolean
* @behavior IronInput
*/
public void setInvalid(boolean value) {
getPolymerElement().setInvalid(value);
}
/**
*
*
* JavaScript Info:
* @method validate
* @param {Object} values
* @behavior IronInput
*/
public void validate(JavaScriptObject values) {
getPolymerElement().validate(values);
}
/**
* Name of the validator to use.
*
* JavaScript Info:
* @property validator
* @type String
* @behavior IronInput
*/
public String getValidator(){
return getPolymerElement().getValidator();
}
/**
* Name of the validator to use.
*
* JavaScript Info:
* @property validator
* @type String
* @behavior IronInput
*/
public void setValidator(String value) {
getPolymerElement().setValidator(value);
}
/**
* Namespace for this validator.
*
* JavaScript Info:
* @property validatorType
* @type String
* @behavior IronInput
*/
public String getValidatorType(){
return getPolymerElement().getValidatorType();
}
/**
* Namespace for this validator.
*
* JavaScript Info:
* @property validatorType
* @type String
* @behavior IronInput
*/
public void setValidatorType(String value) {
getPolymerElement().setValidatorType(value);
}
/**
*
*
* JavaScript Info:
* @property observers
* @type Array
* @behavior IronInput
*/
public JsArray getObservers(){
return getPolymerElement().getObservers();
}
/**
*
*
* JavaScript Info:
* @property observers
* @type Array
* @behavior IronInput
*/
public void setObservers(JsArray value) {
getPolymerElement().setObservers(value);
}
/**
* If true, the user cannot interact with this element.
*
* JavaScript Info:
* @property disabled
* @type Boolean
* @behavior PaperInput
*/
public boolean getDisabled(){
return getPolymerElement().getDisabled();
}
/**
* If true, the user cannot interact with this element.
*
* JavaScript Info:
* @property disabled
* @type Boolean
* @behavior PaperInput
*/
public void setDisabled(boolean value) {
getPolymerElement().setDisabled(value);
}
/**
* If true, the element currently has focus.
*
* JavaScript Info:
* @property focused
* @type Boolean
* @behavior PaperInput
*/
public boolean getFocused(){
return getPolymerElement().getFocused();
}
/**
* If true, the element currently has focus.
*
* JavaScript Info:
* @property focused
* @type Boolean
* @behavior PaperInput
*/
public void setFocused(boolean value) {
getPolymerElement().setFocused(value);
}
}