struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hus...@apache.org
Subject svn commit: r473052 - /struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs
Date Thu, 09 Nov 2006 19:53:29 GMT
Author: husted
Date: Thu Nov  9 11:53:29 2006
New Revision: 473052

URL: http://svn.apache.org/viewvc?view=rev&rev=473052
Log:
Expose reset event so that peer controls can adjust their state.

Modified:
    struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs

Modified: struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs?view=diff&rev=473052&r1=473051&r2=473052
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs Thu Nov  9 11:53:29 2006
@@ -870,12 +870,22 @@
 		}
 
 		/// <summary>
+		/// Signal that input was reset.
+		/// </summary>
+		/// 
+		public event EventHandler View_Reset;
+
+		/// <summary>
 		/// Reset control values.
 		/// </summary>
 		/// 
 		protected void reset_Click(object sender, EventArgs e)
 		{
 			Page_Reset();
+			if (View_Reset != null)
+			{
+				View_Reset(sender, e); // bubble it
+			}			
 		}
 
 		/// <summary>



Mime
View raw message