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

com.vaadin.polymer.iron.widget.IronAutogrowTextarea 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 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.iron.widget.event.IronFormElementRegisterEvent;
import com.vaadin.polymer.iron.widget.event.IronFormElementRegisterEventHandler;

import com.vaadin.polymer.iron.widget.event.IronFormElementUnregisterEvent;
import com.vaadin.polymer.iron.widget.event.IronFormElementUnregisterEventHandler;

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></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); getPolymerElement().addEventListener( com.vaadin.polymer.iron.element.event.IronFormElementRegisterEvent.NAME, new com.vaadin.polymer.iron.element.event.IronFormElementRegisterEvent.Listener() { @Override protected void handleEvent(com.vaadin.polymer.iron.element.event.IronFormElementRegisterEvent event) { fireEvent(new IronFormElementRegisterEvent(event)); } }); getPolymerElement().addEventListener( com.vaadin.polymer.iron.element.event.IronFormElementUnregisterEvent.NAME, new com.vaadin.polymer.iron.element.event.IronFormElementUnregisterEvent.Listener() { @Override protected void handleEvent(com.vaadin.polymer.iron.element.event.IronFormElementUnregisterEvent event) { fireEvent(new IronFormElementUnregisterEvent(event)); } }); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public IronAutogrowTextareaElement getPolymerElement() { try { return (IronAutogrowTextareaElement) getElement(); } catch (ClassCastException e) { jsinteropError(); return null; } } /** *

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 Boolean * */ public boolean getAutofocus(){ return getPolymerElement().getAutofocus(); } /** *

Bound to the textarea’s autofocus attribute.

* * JavaScript Info: * @property autofocus * @type Boolean * */ public void setAutofocus(boolean 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(); } /** *

Returns true if value is valid. The validator provided in validator
will be used first, if it exists; otherwise, the textarea‘s validity
is used.

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

The value for this input, same as bindValue

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

The value for this input, same as bindValue

* * JavaScript Info: * @property value * @type String * */ public void setValue(String value) { getPolymerElement().setValue(value); } /** * * * 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 attached * @behavior PaperInput */ public void attached() { getPolymerElement().attached(); } /** * * * JavaScript Info: * @method detached * @behavior PaperInput */ public void detached() { getPolymerElement().detached(); } /** * * * JavaScript Info: * @method hasValidator * @behavior PaperToggleButton */ public void hasValidator() { getPolymerElement().hasValidator(); } /** *

True if the last call to validate is invalid.

* * JavaScript Info: * @property invalid * @type Boolean * @behavior PaperToggleButton */ public boolean getInvalid(){ return getPolymerElement().getInvalid(); } /** *

True if the last call to validate is invalid.

* * JavaScript Info: * @property invalid * @type Boolean * @behavior PaperToggleButton */ public void setInvalid(boolean value) { getPolymerElement().setInvalid(value); } /** *

Name of the validator to use.

* * JavaScript Info: * @property validator * @type String * @behavior PaperToggleButton */ public String getValidator(){ return getPolymerElement().getValidator(); } /** *

Name of the validator to use.

* * JavaScript Info: * @property validator * @type String * @behavior PaperToggleButton */ public void setValidator(String value) { getPolymerElement().setValidator(value); } /** *

Namespace for this validator.

* * JavaScript Info: * @property validatorType * @type String * @behavior PaperToggleButton */ public String getValidatorType(){ return getPolymerElement().getValidatorType(); } /** *

Namespace for this validator.

* * JavaScript Info: * @property validatorType * @type String * @behavior PaperToggleButton */ public void setValidatorType(String value) { getPolymerElement().setValidatorType(value); } /** * * * JavaScript Info: * @property observers * @type Array * @behavior PaperToggleButton */ public JsArray getObservers(){ return getPolymerElement().getObservers(); } /** * * * JavaScript Info: * @property observers * @type Array * @behavior PaperToggleButton */ 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); } /** *

Fired when the element is added to an iron-form.

* * JavaScript Info: * @event iron-form-element-register */ public HandlerRegistration addIronFormElementRegisterHandler(IronFormElementRegisterEventHandler handler) { return addHandler(handler, IronFormElementRegisterEvent.TYPE); } /** *

Fired when the element is removed from an iron-form.

* * JavaScript Info: * @event iron-form-element-unregister */ public HandlerRegistration addIronFormElementUnregisterHandler(IronFormElementUnregisterEventHandler handler) { return addHandler(handler, IronFormElementUnregisterEvent.TYPE); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy