litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/ConfirmDialog.java
|
@@ -7,10 +7,8 @@ |
7 |
7 |
|
|
8 |
8 |
|
import com.google.gwt.user.client.*; |
9 |
9 |
|
|
10 |
|
- |
public class ConfirmDialog extends AbstractMessageDialog |
11 |
|
- |
{ |
12 |
|
- |
protected ConfirmDialog() |
13 |
|
- |
{ |
|
10 |
+ |
public class ConfirmDialog extends AbstractMessageDialog { |
|
11 |
+ |
protected ConfirmDialog() { |
14 |
12 |
|
super( "Confirm", "litesoft-ConfirmDialog", // |
15 |
13 |
|
"litesoft-ConfirmDialogBodyPanel", "litesoft-ConfirmDialogHTML", "litesoft-ConfirmDialogButtonBar", "litesoft-ConfirmDialogIcon" ); |
16 |
14 |
|
} |
|
@@ -20,8 +18,7 @@ |
20 |
18 |
|
private String mYesButtonText; |
21 |
19 |
|
private boolean mYesClicked = false; |
22 |
20 |
|
|
23 |
|
- |
public ConfirmDialog( String pTitle, String pMessage, String pYesButtonText, String pNoButtonText, ConfirmCallBack pCallBack ) |
24 |
|
- |
{ |
|
21 |
+ |
public ConfirmDialog( String pTitle, String pMessage, String pYesButtonText, String pNoButtonText, ConfirmCallBack pCallBack ) { |
25 |
22 |
|
this(); |
26 |
23 |
|
|
27 |
24 |
|
mCallBack = pCallBack; |
|
@@ -31,29 +28,23 @@ |
31 |
28 |
|
initialize( pTitle, pMessage, null ); |
32 |
29 |
|
} |
33 |
30 |
|
|
34 |
|
- |
public ConfirmDialog( String pTitle, String pMessage, ConfirmCallBack pCallBack ) |
35 |
|
- |
{ |
|
31 |
+ |
public ConfirmDialog( String pTitle, String pMessage, ConfirmCallBack pCallBack ) { |
36 |
32 |
|
this( pTitle, pMessage, null, null, pCallBack ); |
37 |
33 |
|
} |
38 |
34 |
|
|
39 |
35 |
|
@Override |
40 |
|
- |
public void hide() |
41 |
|
- |
{ |
|
36 |
+ |
public void hide() { |
42 |
37 |
|
super.hide(); |
43 |
|
- |
if ( mCallBack != null ) |
44 |
|
- |
{ |
|
38 |
+ |
if ( mCallBack != null ) { |
45 |
39 |
|
mCallBack.confirmed( mYesClicked ); |
46 |
40 |
|
} |
47 |
41 |
|
} |
48 |
42 |
|
|
49 |
43 |
|
@Override |
50 |
|
- |
protected Button[] createButtons() |
51 |
|
- |
{ |
52 |
|
- |
Command zYesHandler = new HideCommand() |
53 |
|
- |
{ |
|
44 |
+ |
protected Button[] createButtons() { |
|
45 |
+ |
Command zYesHandler = new HideCommand() { |
54 |
46 |
|
@Override |
55 |
|
- |
public void execute() |
56 |
|
- |
{ |
|
47 |
+ |
public void execute() { |
57 |
48 |
|
mYesClicked = true; |
58 |
49 |
|
super.execute(); |
59 |
50 |
|
} |