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