Subversion Repository Public Repository

litesoft

Diff Revisions 150 vs 151 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/UtilsGwt.java

Diff revisions: vs.
  @@ -26,8 +26,8 @@
26 26 }-*/;
27 27
28 28 public static native void windowResizeTo( int pWidth, int pHeight ) /*-{
29 - $wnd.resizeTo(pWidth, pHeight);
30 - }-*/;
29 + $wnd.resizeTo( pWidth, pHeight );
30 + }-*/;
31 31
32 32 /**
33 33 * Native method to get a cell's element.
  @@ -39,7 +39,7 @@
39 39 * @return the TD element
40 40 */
41 41 public static native Element getTableTD( Element pTable, int pRow, int pCol ) /*-{
42 - return pTable.rows[pRow].cells[pCol];
42 + return pTable.rows[pRow].cells[pCol];
43 43 }-*/;
44 44
45 45 public static native Element getElementById( String pID ) /*-{
  @@ -61,21 +61,21 @@
61 61 var zStep = 1;
62 62 try
63 63 {
64 - if( zDoc.dispatchEvent ) // W3C
64 + if ( zDoc.dispatchEvent ) // W3C
65 65 {
66 66 zStep = 2;
67 67 var zEvent = document.createEvent( "MouseEvents" );
68 68 zStep = 3;
69 - zEvent.initMouseEvent("click", true, true,window, 1, 1, 1, 1, 1, false, false, false, false, 0, zTarget);
69 + zEvent.initMouseEvent( "click", true, true, window, 1, 1, 1, 1, 1, false, false, false, false, 0, zTarget );
70 70 zStep = 4;
71 71 zTarget.dispatchEvent( zEvent );
72 72 return null;
73 73 }
74 74 zStep = 5;
75 - if( document.fireEvent ) // IE
75 + if ( document.fireEvent ) // IE
76 76 {
77 77 zStep = 6;
78 - zTarget.fireEvent("onclick");
78 + zTarget.fireEvent( "onclick" );
79 79 return null;
80 80 }
81 81 return "Un-recognized/supported Browser";
  @@ -89,7 +89,7 @@
89 89 }-*/;
90 90
91 91 public static native boolean windowExists( String name ) /*-{
92 - var winHandle = $wnd.open("", name, "");
92 + var winHandle = $wnd.open( "", name, "" );
93 93 return winHandle ? true : false;
94 94 }-*/;
95 95
  @@ -98,7 +98,7 @@
98 98 }-*/;
99 99
100 100 public static native void windowToFront( String name ) /*-{
101 - var winHandle = $wnd.open("", name, "");
101 + var winHandle = $wnd.open( "", name, "" );
102 102 winHandle.focus();
103 103 }-*/;
104 104
  @@ -107,7 +107,7 @@
107 107 }-*/;
108 108
109 109 public static native void closeWindow( String name ) /*-{
110 - var winHandle = $wnd.open("", name, "");
110 + var winHandle = $wnd.open( "", name, "" );
111 111 if ( winHandle.DisableCloseConfirmFlag != true )
112 112 winHandle.DisableCloseConfirmFlag = true;
113 113 winHandle.close();
  @@ -122,18 +122,18 @@
122 122 }-*/;
123 123
124 124 public static native boolean trywindowOpenWithHtml( String pName, String pFeatures, String pHTML ) /*-{
125 - var winHandle = $wnd.open("", pName, pFeatures);
125 + var winHandle = $wnd.open( "", pName, pFeatures );
126 126 if ( !winHandle )
127 127 {
128 128 return false;
129 129 }
130 - winHandle.document.write(pHTML);
130 + winHandle.document.write( pHTML );
131 131 winHandle.document.close();
132 132 return true;
133 133 }-*/;
134 134
135 135 public static native boolean tryWindowOpen( String pURL, String pName, String pFeatures ) /*-{
136 - var winHandle = $wnd.open(pURL, pName, pFeatures);
136 + var winHandle = $wnd.open( pURL, pName, pFeatures );
137 137 return winHandle ? true : false;
138 138 }-*/;
139 139