/** * This constructor may be used by subclasses to explicitly use an existing * element. This element must be a <textarea> element. * * @param element the element to be used */ protected TextArea(Element element) { super(element.<Element>cast()); TextAreaElement.as(element); }
/** * This constructor may be used by subclasses to explicitly use an existing * element. This element must be a <textarea> element. * * @param element * the element to be used */ protected TextArea(Element element) { super(element.<Element> cast()); TextAreaElement.as(element); }
/** * This constructor may be used by subclasses to explicitly use an existing * element. This element must be a <textarea> element. * * @param element the element to be used */ protected TextArea(Element element) { super(element.<Element>cast()); TextAreaElement.as(element); }
/** * This constructor may be used by subclasses to explicitly use an existing element. This element * must be a <textarea> element. * * @param element the element to be used */ protected TextArea(final Element element) { super(element.<Element>cast()); TextAreaElement.as(element); }
/** * This constructor may be used by subclasses to explicitly use an existing element. This element * must be a <textarea> element. * * @param element the element to be used */ protected TextArea(final Element element) { super(element.<Element>cast()); TextAreaElement.as(element); }
/** * This constructor may be used by subclasses to explicitly use an existing * element. This element must be a <textarea> element. * * @param element the element to be used */ protected TextArea(Element element) { super(element.<Element>cast()); TextAreaElement.as(element); }
@Override public int getMaxLength() { String maxLengthAtt = TextAreaElement.as(this.getElement()).getAttribute("maxLength"); if (maxLengthAtt != null && maxLengthAtt.length() > 0) { return Integer.valueOf(maxLengthAtt); } return -1; }
@Override public int getMaxLength() { String maxLengthAtt = TextAreaElement.as(this.getElement()).getAttribute("maxLength"); if (maxLengthAtt != null && maxLengthAtt.length() > 0) { return Integer.valueOf(maxLengthAtt); } return -1; }
/** * This constructor may be used by subclasses to explicitly use an existing * element. This element must be a <textarea> element. * * @param element the element to be used */ protected TextArea(final Element element) { super(element.<Element>cast()); TextAreaElement.as(element); element.addClassName(Styles.FORM_CONTROL); }
/** * This constructor may be used by subclasses to explicitly use an existing * element. This element must be a <textarea> element. * * @param element the element to be used */ protected TextArea(final Element element) { super(element.<Element>cast()); TextAreaElement.as(element); element.addClassName(Styles.FORM_CONTROL); }
public void setRows(int rows) { this.rows = rows; TextAreaElement.as(this.getElement()).setRows(rows); }
public void setRows(int rows) { this.rows = rows; TextAreaElement.as(this.getElement()).setRows(rows); }
public int setRows() { return TextAreaElement.as(this.getElement()).getRows(); }
public int setRows() { return TextAreaElement.as(this.getElement()).getRows(); }
/** * Convenience method creating a new GWT object wrapping the TextAreaElement with given id. * @param id * @param config * @return CodeMirrorWrapper */ public static CodeMirrorWrapper fromTextArea(String id, Config config) { return fromTextArea(TextAreaElement.as(Document.get().getElementById(id)), config); }
return new String[] {ie.getValue()}; } else if (e.getNodeName().equalsIgnoreCase("textarea")) { return new String[] {TextAreaElement.as(e).getValue()}; } else if (e.getNodeName().equalsIgnoreCase("button")) { return new String[] {ButtonElement.as(e).getValue()};