com.vaadin.polymer.paper.element.PaperTextareaElement Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from paper-input project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.paper.element;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;
/**
* <paper-textarea>
is a multi-line text field with Material Design styling.
* <paper-textarea label="Textarea label"></paper-textarea>
*
*
*
See Polymer.PaperInputBehavior
for more API docs.
* Validation
* Currently only required
and maxlength
validation is supported.
* Styling
* See Polymer.PaperInputContainer
for a list of custom properties used to
style this element.
*/
@JsType
public interface PaperTextareaElement extends HTMLElement {
public static final String TAG = "paper-textarea";
public static final String SRC = "paper-input/all-imports.html";
/**
* Set this to specify the pattern allowed by preventInvalidInput
. Bind this to the
<input is="iron-input">
‘s allowedPattern
property.
*
* JavaScript Info:
* @property allowedPattern
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getAllowedPattern();
/**
* Set this to specify the pattern allowed by preventInvalidInput
. Bind this to the
<input is="iron-input">
‘s allowedPattern
property.
*
* JavaScript Info:
* @property allowedPattern
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setAllowedPattern(String value);
/**
* Set to true to always float the label. Bind this to the <paper-input-container>
‘s
alwaysFloatLabel
property.
*
* JavaScript Info:
* @property alwaysFloatLabel
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getAlwaysFloatLabel();
/**
* Set to true to always float the label. Bind this to the <paper-input-container>
‘s
alwaysFloatLabel
property.
*
* JavaScript Info:
* @property alwaysFloatLabel
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setAlwaysFloatLabel(boolean value);
/**
* Set to true to auto-validate the input value. Bind this to the <paper-input-container>
‘s
autoValidate
property.
*
* JavaScript Info:
* @property autoValidate
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getAutoValidate();
/**
* Set to true to auto-validate the input value. Bind this to the <paper-input-container>
‘s
autoValidate
property.
*
* JavaScript Info:
* @property autoValidate
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setAutoValidate(boolean value);
/**
* Bind this to the <input is="iron-input">
‘s autocomplete
property.
*
* JavaScript Info:
* @property autocomplete
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getAutocomplete();
/**
* Bind this to the <input is="iron-input">
‘s autocomplete
property.
*
* JavaScript Info:
* @property autocomplete
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setAutocomplete(String value);
/**
* Bind this to the <input is="iron-input">
‘s autofocus
property.
*
* JavaScript Info:
* @property autofocus
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getAutofocus();
/**
* Bind this to the <input is="iron-input">
‘s autofocus
property.
*
* JavaScript Info:
* @property autofocus
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setAutofocus(boolean value);
/**
* Set to true to show a character counter.
*
* JavaScript Info:
* @property charCounter
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getCharCounter();
/**
* Set to true to show a character counter.
*
* JavaScript Info:
* @property charCounter
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setCharCounter(boolean value);
/**
* Set to true to disable this input. Bind this to both the <paper-input-container>
‘s
and the input’s disabled
property.
*
* JavaScript Info:
* @property disabled
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getDisabled();
/**
* Set to true to disable this input. Bind this to both the <paper-input-container>
‘s
and the input’s disabled
property.
*
* JavaScript Info:
* @property disabled
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setDisabled(boolean value);
/**
* The error message to display when the input is invalid. Bind this to the
<paper-input-error>
‘s content, if using.
*
* JavaScript Info:
* @property errorMessage
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getErrorMessage();
/**
* The error message to display when the input is invalid. Bind this to the
<paper-input-error>
‘s content, if using.
*
* JavaScript Info:
* @property errorMessage
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setErrorMessage(String value);
/**
* Returns a reference to the input element.
*
* JavaScript Info:
* @method inputElement
* @behavior PaperTextarea
*/
void inputElement();
/**
* Bind this to the <input is="iron-input">
‘s inputmode
property.
*
* JavaScript Info:
* @property inputmode
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getInputmode();
/**
* Bind this to the <input is="iron-input">
‘s inputmode
property.
*
* JavaScript Info:
* @property inputmode
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setInputmode(String value);
/**
* Returns true if the value is invalid. Bind this to both the <paper-input-container>
‘s
and the input’s invalid
property.
*
* JavaScript Info:
* @property invalid
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getInvalid();
/**
* Returns true if the value is invalid. Bind this to both the <paper-input-container>
‘s
and the input’s invalid
property.
*
* JavaScript Info:
* @property invalid
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setInvalid(boolean value);
/**
* The label for this input. Bind this to <paper-input-container>
‘s label
property.
*
* JavaScript Info:
* @property label
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getLabel();
/**
* The label for this input. Bind this to <paper-input-container>
‘s label
property.
*
* JavaScript Info:
* @property label
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setLabel(String value);
/**
* The datalist of the input (if any). This should match the id of an existing
*
* JavaScript Info:
* @property list
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getList();
/**
* The datalist of the input (if any). This should match the id of an existing
*
* JavaScript Info:
* @property list
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setList(String value);
/**
* The maximum length of the input value. Bind this to the <input is="iron-input">
‘s
maxlength
property.
*
* JavaScript Info:
* @property maxlength
* @type Number
* @behavior PaperTextarea
*/
@JsProperty double getMaxlength();
/**
* The maximum length of the input value. Bind this to the <input is="iron-input">
‘s
maxlength
property.
*
* JavaScript Info:
* @property maxlength
* @type Number
* @behavior PaperTextarea
*/
@JsProperty void setMaxlength(double value);
/**
* Bind this to the <input is="iron-input">
‘s minlength
property.
*
* JavaScript Info:
* @property minlength
* @type Number
* @behavior PaperTextarea
*/
@JsProperty double getMinlength();
/**
* Bind this to the <input is="iron-input">
‘s minlength
property.
*
* JavaScript Info:
* @property minlength
* @type Number
* @behavior PaperTextarea
*/
@JsProperty void setMinlength(double value);
/**
* Bind this to the <input is="iron-input">
‘s name
property.
*
* JavaScript Info:
* @property name
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getName();
/**
* Bind this to the <input is="iron-input">
‘s name
property.
*
* JavaScript Info:
* @property name
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setName(String value);
/**
* Set to true to disable the floating label. Bind this to the <paper-input-container>
‘s
noLabelFloat
property.
*
* JavaScript Info:
* @property noLabelFloat
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getNoLabelFloat();
/**
* Set to true to disable the floating label. Bind this to the <paper-input-container>
‘s
noLabelFloat
property.
*
* JavaScript Info:
* @property noLabelFloat
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setNoLabelFloat(boolean value);
/**
* A pattern to validate the input
with. Bind this to the <input is="iron-input">
‘s
pattern
property.
*
* JavaScript Info:
* @property pattern
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getPattern();
/**
* A pattern to validate the input
with. Bind this to the <input is="iron-input">
‘s
pattern
property.
*
* JavaScript Info:
* @property pattern
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setPattern(String value);
/**
* A placeholder string in addition to the label. If this is set, the label will always float.
*
* JavaScript Info:
* @property placeholder
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getPlaceholder();
/**
* A placeholder string in addition to the label. If this is set, the label will always float.
*
* JavaScript Info:
* @property placeholder
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setPlaceholder(String value);
/**
* Set to true to prevent the user from entering invalid input. Bind this to the
<input is="iron-input">
‘s preventInvalidInput
property.
*
* JavaScript Info:
* @property preventInvalidInput
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getPreventInvalidInput();
/**
* Set to true to prevent the user from entering invalid input. Bind this to the
<input is="iron-input">
‘s preventInvalidInput
property.
*
* JavaScript Info:
* @property preventInvalidInput
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setPreventInvalidInput(boolean value);
/**
* Bind this to the <input is="iron-input">
‘s readonly
property.
*
* JavaScript Info:
* @property readonly
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getReadonly();
/**
* Bind this to the <input is="iron-input">
‘s readonly
property.
*
* JavaScript Info:
* @property readonly
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setReadonly(boolean value);
/**
* Set to true to mark the input as required. Bind this to the <input is="iron-input">
‘s
required
property.
*
* JavaScript Info:
* @property required
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty boolean getRequired();
/**
* Set to true to mark the input as required. Bind this to the <input is="iron-input">
‘s
required
property.
*
* JavaScript Info:
* @property required
* @type Boolean
* @behavior PaperTextarea
*/
@JsProperty void setRequired(boolean value);
/**
* Bind this to the <input is="iron-input">
‘s size
property.
*
* JavaScript Info:
* @property size
* @type Number
* @behavior PaperTextarea
*/
@JsProperty double getSize();
/**
* Bind this to the <input is="iron-input">
‘s size
property.
*
* JavaScript Info:
* @property size
* @type Number
* @behavior PaperTextarea
*/
@JsProperty void setSize(double value);
/**
* The type of the input. The supported types are text
, number
and password
. Bind this
to the <input is="iron-input">
‘s type
property.
*
* JavaScript Info:
* @property type
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getType();
/**
* The type of the input. The supported types are text
, number
and password
. Bind this
to the <input is="iron-input">
‘s type
property.
*
* JavaScript Info:
* @property type
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setType(String value);
/**
* Restores the cursor to its original position after updating the value.
*
* JavaScript Info:
* @method updateValueAndPreserveCaret
* @param {string} newValue
* @behavior PaperTextarea
*/
void updateValueAndPreserveCaret(String newValue);
/**
* Validates the input element and sets an error style if needed.
*
* JavaScript Info:
* @method validate
* @behavior PaperTextarea
*/
void validate();
/**
* Name of the validator to use. Bind this to the <input is="iron-input">
‘s validator
property.
*
* JavaScript Info:
* @property validator
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getValidator();
/**
* Name of the validator to use. Bind this to the <input is="iron-input">
‘s validator
property.
*
* JavaScript Info:
* @property validator
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setValidator(String value);
/**
* The value for this input. Bind this to the <input is="iron-input">
‘s bindValue
property, or the value property of your input that is notify:true
.
*
* JavaScript Info:
* @property value
* @type String
* @behavior PaperTextarea
*/
@JsProperty String getValue();
/**
* The value for this input. Bind this to the <input is="iron-input">
‘s bindValue
property, or the value property of your input that is notify:true
.
*
* JavaScript Info:
* @property value
* @type String
* @behavior PaperTextarea
*/
@JsProperty void setValue(String value);
/**
*
*
* JavaScript Info:
* @method attached
* @behavior PaperTextarea
*/
void attached();
/**
*
*
* JavaScript Info:
* @property listeners
* @type Object
* @behavior PaperTextarea
*/
@JsProperty JavaScriptObject getListeners();
/**
*
*
* JavaScript Info:
* @property listeners
* @type Object
* @behavior PaperTextarea
*/
@JsProperty void setListeners(JavaScriptObject value);
/**
*
*
* JavaScript Info:
* @method detached
* @behavior PaperTextarea
*/
void detached();
}