diff -r dbc3bbf10535 -r 1f81f87f3283 src/main/java/org/vaadin/console/Console.java --- a/src/main/java/org/vaadin/console/Console.java Fri May 20 17:52:09 2011 +0400 +++ b/src/main/java/org/vaadin/console/Console.java Fri May 20 18:18:38 2011 +0400 @@ -56,6 +56,9 @@ client.call("setWrap", wrap); } + /** + * @return true, if entered by user text immediately will print to console, false otherwise + */ public boolean isPrintPromptOnInput() { return config.isPrintPromptOnInput; } @@ -65,10 +68,18 @@ client.call("setPrintPromptOnInput", isPrintPromptOnInput); } + /** + * @return true, if method scrollToEnd will only work if last scroll state was "end" + * (like Linux KDE console emulator "Konsole"), false otherwise (by default) + */ public boolean isSmartScrollToEnd() { return config.isSmartScrollToEnd; } + /** + * @param isSmartScrollToEnd if true - method scrollToEnd will only work if last scroll + * state was "end" (like Linux KDE console emulator "Konsole"); false by default + */ public void setSmartScrollToEnd(final boolean isSmartScrollToEnd) { config.isSmartScrollToEnd = isSmartScrollToEnd; client.call("setSmartScrollToEnd", isSmartScrollToEnd); @@ -595,12 +606,15 @@ client.call("println", string, className); } + /** + * @param string text to append to the last printed line + */ public void append(final String string) { client.call("append", string); } /** - * @param string + * @param string text to append to the last printed line * @param className CSS class name for string */ public void append(final String string, final String className) { @@ -647,6 +661,9 @@ client.call("scrollToEnd"); } + /** + * Focus input element of console. + */ public void focusInput() { client.call("focusInput"); }