litesoft
Diff Revisions
151
vs
157
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/AlertErrorDialog.java
|
@@ -2,9 +2,10 @@ |
2 |
2 |
|
package org.litesoft.GWT.client; |
3 |
3 |
|
|
4 |
4 |
|
import org.litesoft.GWT.client.nonpublic.*; |
|
5 |
+ |
import org.litesoft.GWT.client.widgets.Button; |
5 |
6 |
|
import org.litesoft.GWT.client.widgets.*; |
6 |
7 |
|
|
7 |
|
- |
import com.google.gwt.user.client.ui.Button; |
|
8 |
+ |
import com.google.gwt.event.dom.client.*; |
8 |
9 |
|
import com.google.gwt.user.client.ui.*; |
9 |
10 |
|
|
10 |
11 |
|
public class AlertErrorDialog extends AbstractMessageDialog |
|
@@ -36,14 +37,18 @@ |
36 |
37 |
|
|
37 |
38 |
|
if ( mDetail != null ) |
38 |
39 |
|
{ |
39 |
|
- |
zPanel.add( new Button( "Details", new ClickListener() |
|
40 |
+ |
zPanel.add( Button.named( "Details" ).blue().text().add( new ClickHandler() |
40 |
41 |
|
{ |
41 |
42 |
|
@Override |
42 |
|
- |
public void onClick( Widget sender ) |
|
43 |
+ |
public void onClick( ClickEvent event ) |
43 |
44 |
|
{ |
44 |
|
- |
UtilsGwt.windowOpenWithHtml( "", "location=0,menubar=1,status=0,scrollbars=1", "<html><body style='font-family:sans-serif; overflow:auto;'><h4>" + pMessage + "</h4>" + wrapWithPre( mDetail ) + "</body></html>" ); |
|
45 |
+ |
UtilsGwt.windowOpenWithHtml( "", "location=0,menubar=1,status=0,scrollbars=1", // |
|
46 |
+ |
"<html><body style='font-family:sans-serif; overflow:auto;'>" + // |
|
47 |
+ |
"<h4>" + pMessage + "</h4>" + // |
|
48 |
+ |
wrapWithPre( mDetail ) + // |
|
49 |
+ |
"</body></html>" ); |
45 |
50 |
|
} |
46 |
|
- |
} ) ); |
|
51 |
+ |
} ).create() ); |
47 |
52 |
|
} |
48 |
53 |
|
|
49 |
54 |
|
return zPanel; |