* append methods now return Console object
authorindvdum
Mon, 23 May 2011 13:13:51 +0400
changeset 14f6b22b2ab1b9
parent 13 a16932cdfd58
child 15 ea825ba6336b
* append methods now return Console object
src/main/java/org/vaadin/console/Console.java
     1.1 --- a/src/main/java/org/vaadin/console/Console.java	Fri May 20 23:48:23 2011 +0400
     1.2 +++ b/src/main/java/org/vaadin/console/Console.java	Mon May 23 13:13:51 2011 +0400
     1.3 @@ -615,10 +615,12 @@
     1.4  	}
     1.5      
     1.6      /**
     1.7 -     * @param string text to append to the last printed line 
     1.8 +     * @param string text to append to the last printed line
     1.9 +     * @return this Console object
    1.10       */
    1.11 -    public void append(final String string) {
    1.12 +    public Console append(final String string) {
    1.13      	client.call("append", string);
    1.14 +    	return this;
    1.15      }
    1.16  
    1.17  	/**
    1.18 @@ -626,9 +628,11 @@
    1.19  	 * 
    1.20  	 * @param string text to append to the last printed line
    1.21  	 * @param className CSS class name for string
    1.22 +	 * @return this Console object
    1.23  	 */
    1.24 -	public void append(final String string, final String className) {
    1.25 +	public Console append(final String string, final String className) {
    1.26  		client.call("append", string, className);
    1.27 +		return this;
    1.28  	}
    1.29  
    1.30      public void newLine() {