src/main/java/org/vaadin/console/client/ui/TextConsoleConfig.java
changeset 0 c46bb04134cb
child 4 27bd1032a5c6
equal deleted inserted replaced
-1:000000000000 0:c46bb04134cb
       
     1 package org.vaadin.console.client.ui;
       
     2 
       
     3 import com.google.gwt.core.client.JavaScriptObject;
       
     4 
       
     5 public class TextConsoleConfig extends JavaScriptObject {
       
     6 
       
     7     public static TextConsoleConfig newInstance() {
       
     8         return JavaScriptObject.createObject().cast();
       
     9     }
       
    10 
       
    11     protected TextConsoleConfig() {
       
    12     }
       
    13 
       
    14     public final native int getCols() /*-{
       
    15                                       return this.cols;
       
    16                                       }-*/;
       
    17 
       
    18     public final native void setCols(int cols) /*-{
       
    19                                                this.cols = cols;
       
    20                                                }-*/;
       
    21 
       
    22     public final native int getRows() /*-{
       
    23                                       return this.rows;
       
    24                                       }-*/;
       
    25 
       
    26     public final native void setRows(int rows) /*-{
       
    27                                                this.rows = rows;
       
    28                                                }-*/;
       
    29 
       
    30     public final native void setGreeting(String greeting) /*-{
       
    31                                                           this.greeting = greeting;
       
    32                                                           }-*/;
       
    33 
       
    34     public final native String getGreeting() /*-{
       
    35                                              return this.greeting;
       
    36                                              }-*/;
       
    37 
       
    38     public final native void setWrap(boolean w) /*-{
       
    39                                                 this.wrap = w;
       
    40                                                 }-*/;
       
    41 
       
    42     public final native boolean isWrap() /*-{
       
    43                                           return this.wrap;
       
    44                                           }-*/;
       
    45 
       
    46     public final native void setPs(String ps) /*-{
       
    47                                               this.ps = ps;
       
    48                                               }-*/;
       
    49 
       
    50     public final native String getPs() /*-{
       
    51                                        return this.ps;
       
    52                                        }-*/;
       
    53 
       
    54     public final native int getMaxBufferSize() /*-{
       
    55                                                return this.bufferRows;
       
    56                                                }-*/;
       
    57 
       
    58     public final native void setMaxBufferSize(int rows) /*-{
       
    59                                                         this.bufferRows = rows;
       
    60                                                         }-*/;
       
    61 
       
    62 }