com.google.gwt.dom.client.TextAreaElement Java Examples

The following examples show how to use com.google.gwt.dom.client.TextAreaElement. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CodeMirror.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
private native JavaScriptObject initCodeMirrorJSO(TextAreaElement tae) /*-{
    var cm = $wnd.CodeMirror.fromTextArea(tae, {
        mode: "xml",
        lineNumbers: true,
        lineWrapping: false,
        indentUnit: 4,
        autoCloseTags: true,
        foldGutter: true,
        gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
    });
    return cm;
}-*/;
 
Example #2
Source File: InputTextArea.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public int getMaxLength() {
	String maxLengthAtt = TextAreaElement.as(this.getElement()).getAttribute("maxLength");
	if (maxLengthAtt != null && maxLengthAtt.length() > 0) {
		return Integer.valueOf(maxLengthAtt);
	}
	return -1;
}
 
Example #3
Source File: InputTextArea.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void setRows(int rows) {
	this.rows = rows;
	TextAreaElement.as(this.getElement()).setRows(rows);
}
 
Example #4
Source File: InputTextArea.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
public int setRows() {
	return TextAreaElement.as(this.getElement()).getRows();
}