Subversion Repository Public Repository

litesoft

Diff Revisions 720 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/LowLevelLogger.java

Diff revisions: vs.
  @@ -3,32 +3,25 @@
3 3 import com.google.gwt.user.client.*;
4 4 import com.google.gwt.user.client.ui.*;
5 5
6 - public class LowLevelLogger
7 - {
8 - public static void println( String text )
9 - {
6 + public class LowLevelLogger {
7 + public static void println( String text ) {
10 8 print( text );
11 - if ( !appendToLog( DOM.createElement( "BR" ) ) )
12 - {
9 + if ( !appendToLog( DOM.createElement( "BR" ) ) ) {
13 10 System.out.println();
14 11 }
15 12 }
16 13
17 - public static void print( String text )
18 - {
14 + public static void print( String text ) {
19 15 Element span = DOM.createSpan();
20 16 span.setInnerText( text );
21 - if ( !appendToLog( span ) )
22 - {
17 + if ( !appendToLog( span ) ) {
23 18 System.out.print( text );
24 19 }
25 20 }
26 21
27 - private static boolean appendToLog( Element element )
28 - {
22 + private static boolean appendToLog( Element element ) {
29 23 RootPanel panel = RootPanel.get( "logPanel" );
30 - if ( panel == null )
31 - {
24 + if ( panel == null ) {
32 25 return false;
33 26 }
34 27 panel.getElement().appendChild( element );