| author | indvdum |
| Fri, 20 May 2011 17:52:09 +0400 | |
| changeset 9 | dbc3bbf10535 |
| parent 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@4 | 45 |
|
| indvdum@4 | 46 |
public final native void setPrintPromptOnInput(boolean p) /*-{
|
| indvdum@4 | 47 |
this.PrintPromptOnInput = p; |
| indvdum@4 | 48 |
}-*/; |
| indvdum@4 | 49 |
|
| indvdum@4 | 50 |
public final native boolean isPrintPromptOnInput() /*-{
|
| indvdum@4 | 51 |
return this.PrintPromptOnInput; |
| indvdum@4 | 52 |
}-*/; |
| indvdum@9 | 53 |
|
| indvdum@9 | 54 |
public final native void setSmartScrollToEnd(boolean s) /*-{
|
| indvdum@9 | 55 |
this.isSmartScrollToEnd = s; |
| indvdum@9 | 56 |
}-*/; |
| indvdum@9 | 57 |
|
| indvdum@9 | 58 |
public final native boolean isSmartScrollToEnd() /*-{
|
| indvdum@9 | 59 |
return this.isSmartScrollToEnd; |
| indvdum@9 | 60 |
}-*/; |
| indvdum@9 | 61 |
|
| indvdum@9 | 62 |
public final native void setScrolledToEnd(boolean s) /*-{
|
| indvdum@9 | 63 |
this.isScrolledToEnd = s; |
| indvdum@9 | 64 |
}-*/; |
| indvdum@9 | 65 |
|
| indvdum@9 | 66 |
public final native boolean isScrolledToEnd() /*-{
|
| indvdum@9 | 67 |
return this.isScrolledToEnd; |
| indvdum@9 | 68 |
}-*/; |
| indvdum@0 | 69 |
|
| indvdum@0 | 70 |
public final native void setPs(String ps) /*-{
|
| indvdum@0 | 71 |
this.ps = ps; |
| indvdum@0 | 72 |
}-*/; |
| indvdum@0 | 73 |
|
| indvdum@0 | 74 |
public final native String getPs() /*-{
|
| indvdum@0 | 75 |
return this.ps; |
| indvdum@0 | 76 |
}-*/; |
| indvdum@0 | 77 |
|
| indvdum@0 | 78 |
public final native int getMaxBufferSize() /*-{
|
| indvdum@0 | 79 |
return this.bufferRows; |
| indvdum@0 | 80 |
}-*/; |
| indvdum@0 | 81 |
|
| indvdum@0 | 82 |
public final native void setMaxBufferSize(int rows) /*-{
|
| indvdum@0 | 83 |
this.bufferRows = rows; |
| indvdum@0 | 84 |
}-*/; |
| indvdum@0 | 85 |
|
| indvdum@0 | 86 |
} |