Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/ConfirmManager.java

Diff revisions: vs.
  @@ -4,29 +4,24 @@
4 4 import org.litesoft.GWT.client.nonpublic.*;
5 5 import org.litesoft.commonfoundation.typeutils.*;
6 6
7 - public class ConfirmManager extends AbstractPopupManager
8 - {
9 - public static void confirm( String pFrom, String pTitle, String pBody, ConfirmCallBack pCallBack )
10 - {
7 + public class ConfirmManager extends AbstractPopupManager {
8 + public static void confirm( String pFrom, String pTitle, String pBody, ConfirmCallBack pCallBack ) {
11 9 confirm( pFrom, pTitle, pBody, null, null, pCallBack );
12 10 }
13 11
14 - public static void confirm( String pFrom, String pTitle, String pBody, String pYesButtonText, String pNoButtonText, ConfirmCallBack pCallBack )
15 - {
12 + public static void confirm( String pFrom, String pTitle, String pBody, String pYesButtonText, String pNoButtonText, ConfirmCallBack pCallBack ) {
16 13 pFrom = Strings.deEmpty( pFrom, "??? No From ???" );
17 14 pBody = Strings.deEmpty( pBody, "??? No Body ???" );
18 15 Objects.assertNotNull( "ConfirmCallBack", pCallBack );
19 16 show( new Entry( pFrom, pTitle, pBody, pYesButtonText, pNoButtonText, pCallBack ) );
20 17 }
21 18
22 - private static class Entry extends AbstractEntry
23 - {
19 + private static class Entry extends AbstractEntry {
24 20 private String mYesButtonText;
25 21 private String mNoButtonText;
26 22 private ConfirmCallBack mCallBack;
27 23
28 - public Entry( String pFrom, String pTitle, String pBody, String pYesButtonText, String pNoButtonText, ConfirmCallBack pCallBack )
29 - {
24 + public Entry( String pFrom, String pTitle, String pBody, String pYesButtonText, String pNoButtonText, ConfirmCallBack pCallBack ) {
30 25 super( pFrom, pTitle, pBody, null );
31 26 mYesButtonText = pYesButtonText;
32 27 mNoButtonText = pNoButtonText;
  @@ -34,8 +29,7 @@
34 29 }
35 30
36 31 @Override
37 - protected AbstractMessageDialog create()
38 - {
32 + protected AbstractMessageDialog create() {
39 33 return new ConfirmDialog( mTitle, mBody, mYesButtonText, mNoButtonText, mCallBack );
40 34 }
41 35 }