com.google.gwt.uibinder.rebind
Class IndentedWriter

java.lang.Object
  extended by com.google.gwt.uibinder.rebind.IndentedWriter

public class IndentedWriter
extends java.lang.Object

Pleasant wrapper for PrintWriter, manages indentation levels. Name is a misnomer, as this doesn't implement Writer.


Constructor Summary
IndentedWriter(java.io.PrintWriter pw)
           
 
Method Summary
 void indent()
          Indents the generated code.
 void newline()
          Outputs a new line.
 void outdent()
          Un-indents the generated code.
 void write(java.lang.String format)
          Outputs the given string.
 void write(java.lang.String format, java.lang.Object... args)
          Outputs the given string with replacements, using the Java message format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentedWriter

public IndentedWriter(java.io.PrintWriter pw)
Method Detail

indent

public void indent()
Indents the generated code.


newline

public void newline()
Outputs a new line.


outdent

public void outdent()
Un-indents the generated code.


write

public void write(java.lang.String format)
Outputs the given string.


write

public void write(java.lang.String format,
                  java.lang.Object... args)
Outputs the given string with replacements, using the Java message format.