+ new option - setSmartScrollToEnd: scrollToEnd work only if last scroll state is was "end"
1 package org.vaadin.console.client.ui;
3 import com.google.gwt.core.client.JavaScriptObject;
5 public class TextConsoleConfig extends JavaScriptObject {
7 public static TextConsoleConfig newInstance() {
8 return JavaScriptObject.createObject().cast();
11 protected TextConsoleConfig() {
14 public final native int getCols() /*-{
18 public final native void setCols(int cols) /*-{
22 public final native int getRows() /*-{
26 public final native void setRows(int rows) /*-{
30 public final native void setGreeting(String greeting) /*-{
31 this.greeting = greeting;
34 public final native String getGreeting() /*-{
38 public final native void setWrap(boolean w) /*-{
42 public final native boolean isWrap() /*-{
46 public final native void setPrintPromptOnInput(boolean p) /*-{
47 this.PrintPromptOnInput = p;
50 public final native boolean isPrintPromptOnInput() /*-{
51 return this.PrintPromptOnInput;
54 public final native void setSmartScrollToEnd(boolean s) /*-{
55 this.isSmartScrollToEnd = s;
58 public final native boolean isSmartScrollToEnd() /*-{
59 return this.isSmartScrollToEnd;
62 public final native void setScrolledToEnd(boolean s) /*-{
63 this.isScrolledToEnd = s;
66 public final native boolean isScrolledToEnd() /*-{
67 return this.isScrolledToEnd;
70 public final native void setPs(String ps) /*-{
74 public final native String getPs() /*-{
78 public final native int getMaxBufferSize() /*-{
79 return this.bufferRows;
82 public final native void setMaxBufferSize(int rows) /*-{
83 this.bufferRows = rows;