diff -r 000000000000 -r c46bb04134cb src/main/java/org/vaadin/console/client/ui/TextConsoleConfig.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/org/vaadin/console/client/ui/TextConsoleConfig.java Sun May 15 17:46:06 2011 +0400 @@ -0,0 +1,62 @@ +package org.vaadin.console.client.ui; + +import com.google.gwt.core.client.JavaScriptObject; + +public class TextConsoleConfig extends JavaScriptObject { + + public static TextConsoleConfig newInstance() { + return JavaScriptObject.createObject().cast(); + } + + protected TextConsoleConfig() { + } + + public final native int getCols() /*-{ + return this.cols; + }-*/; + + public final native void setCols(int cols) /*-{ + this.cols = cols; + }-*/; + + public final native int getRows() /*-{ + return this.rows; + }-*/; + + public final native void setRows(int rows) /*-{ + this.rows = rows; + }-*/; + + public final native void setGreeting(String greeting) /*-{ + this.greeting = greeting; + }-*/; + + public final native String getGreeting() /*-{ + return this.greeting; + }-*/; + + public final native void setWrap(boolean w) /*-{ + this.wrap = w; + }-*/; + + public final native boolean isWrap() /*-{ + return this.wrap; + }-*/; + + public final native void setPs(String ps) /*-{ + this.ps = ps; + }-*/; + + public final native String getPs() /*-{ + return this.ps; + }-*/; + + public final native int getMaxBufferSize() /*-{ + return this.bufferRows; + }-*/; + + public final native void setMaxBufferSize(int rows) /*-{ + this.bufferRows = rows; + }-*/; + +}