src/main/java/org/vaadin/console/client/ui/TextConsoleConfig.java
changeset 0 c46bb04134cb
child 4 27bd1032a5c6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/main/java/org/vaadin/console/client/ui/TextConsoleConfig.java	Sun May 15 17:46:06 2011 +0400
     1.3 @@ -0,0 +1,62 @@
     1.4 +package org.vaadin.console.client.ui;
     1.5 +
     1.6 +import com.google.gwt.core.client.JavaScriptObject;
     1.7 +
     1.8 +public class TextConsoleConfig extends JavaScriptObject {
     1.9 +
    1.10 +    public static TextConsoleConfig newInstance() {
    1.11 +        return JavaScriptObject.createObject().cast();
    1.12 +    }
    1.13 +
    1.14 +    protected TextConsoleConfig() {
    1.15 +    }
    1.16 +
    1.17 +    public final native int getCols() /*-{
    1.18 +                                      return this.cols;
    1.19 +                                      }-*/;
    1.20 +
    1.21 +    public final native void setCols(int cols) /*-{
    1.22 +                                               this.cols = cols;
    1.23 +                                               }-*/;
    1.24 +
    1.25 +    public final native int getRows() /*-{
    1.26 +                                      return this.rows;
    1.27 +                                      }-*/;
    1.28 +
    1.29 +    public final native void setRows(int rows) /*-{
    1.30 +                                               this.rows = rows;
    1.31 +                                               }-*/;
    1.32 +
    1.33 +    public final native void setGreeting(String greeting) /*-{
    1.34 +                                                          this.greeting = greeting;
    1.35 +                                                          }-*/;
    1.36 +
    1.37 +    public final native String getGreeting() /*-{
    1.38 +                                             return this.greeting;
    1.39 +                                             }-*/;
    1.40 +
    1.41 +    public final native void setWrap(boolean w) /*-{
    1.42 +                                                this.wrap = w;
    1.43 +                                                }-*/;
    1.44 +
    1.45 +    public final native boolean isWrap() /*-{
    1.46 +                                          return this.wrap;
    1.47 +                                          }-*/;
    1.48 +
    1.49 +    public final native void setPs(String ps) /*-{
    1.50 +                                              this.ps = ps;
    1.51 +                                              }-*/;
    1.52 +
    1.53 +    public final native String getPs() /*-{
    1.54 +                                       return this.ps;
    1.55 +                                       }-*/;
    1.56 +
    1.57 +    public final native int getMaxBufferSize() /*-{
    1.58 +                                               return this.bufferRows;
    1.59 +                                               }-*/;
    1.60 +
    1.61 +    public final native void setMaxBufferSize(int rows) /*-{
    1.62 +                                                        this.bufferRows = rows;
    1.63 +                                                        }-*/;
    1.64 +
    1.65 +}