Revision: 1755
          http://svn.sourceforge.net/spring-rich-c/?rev=1755&view=rev
Author:   jhoskens
Date:     2007-05-22 05:52:55 -0700 (Tue, 22 May 2007)

Log Message:
-----------
Refactoring of ValidationResultsReporter results in additional guarded object 
registration.

Modified Paths:
--------------
    
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/FormBackedDialogPage.java
    
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/InputApplicationDialog.java
    
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/wizard/FormBackedWizardPage.java

Modified: 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/FormBackedDialogPage.java
===================================================================
--- 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/FormBackedDialogPage.java
       2007-05-22 12:51:20 UTC (rev 1754)
+++ 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/FormBackedDialogPage.java
       2007-05-22 12:52:55 UTC (rev 1755)
@@ -78,7 +78,8 @@
     }
 
     protected void initPageValidationReporter() {
-        backingFormPage.newSingleLineResultsReporter(this, this);
+        backingFormPage.newSingleLineResultsReporter(this);
+        backingFormPage.addGuarded(this);
     }
 
     public void setEnabled(boolean enabled) {

Modified: 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/InputApplicationDialog.java
===================================================================
--- 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/InputApplicationDialog.java
     2007-05-22 12:51:20 UTC (rev 1754)
+++ 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/dialog/InputApplicationDialog.java
     2007-05-22 12:52:55 UTC (rev 1755)
@@ -28,6 +28,7 @@
 import org.springframework.binding.form.ValidatingFormModel;
 import org.springframework.core.closure.Closure;
 import org.springframework.core.closure.Constraint;
+import org.springframework.richclient.form.FormGuard;
 import org.springframework.richclient.form.FormModelHelper;
 import org.springframework.richclient.form.SimpleValidationResultsReporter;
 import org.springframework.richclient.form.binding.swing.SwingBindingFactory;
@@ -103,7 +104,9 @@
         if (reporter == null) {
             this.reporter = new DefaultMessageAreaPane();
             if (this.formModel != null) {
-                new 
SimpleValidationResultsReporter(formModel.getValidationResults(), this, 
this.reporter);
+                new 
SimpleValidationResultsReporter(formModel.getValidationResults(), 
this.reporter);
+                FormGuard formGuard = new FormGuard(formModel);
+                formGuard.addGuarded(this, FormGuard.FORMERROR_GUARDED);
                 formModel.validate();
             }
         }

Modified: 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/wizard/FormBackedWizardPage.java
===================================================================
--- 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/wizard/FormBackedWizardPage.java
       2007-05-22 12:51:20 UTC (rev 1754)
+++ 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/wizard/FormBackedWizardPage.java
       2007-05-22 12:52:55 UTC (rev 1755)
@@ -75,7 +75,8 @@
     }
 
     protected void initPageValidationReporter() {
-        backingForm.newSingleLineResultsReporter(this, this);
+        backingForm.newSingleLineResultsReporter(this);
+        backingForm.addGuarded(this);
     }
 
     public void setEnabled(boolean enabled) {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
spring-rich-c-cvs mailing list
spring-rich-c-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to