Browse Source

2003-08-01 Andreas Nahr <[email protected]>

	* ButtonColumn.cs: Removed additional attributes
	* CheckBox.cs: Added attribute
	* DataGrid.cs: Added attributes
	* HyperLinkColumn.cs: Changed attributes, added lamespec
	* Style.cs: Removed attributes
	* TextBox.cs: Added/ removed attributes

svn path=/trunk/mcs/; revision=16990
Andreas N 22 năm trước cách đây
mục cha
commit
fefea1f82a

+ 5 - 5
mcs/class/System.Web/System.Web.UI.WebControls/ButtonColumn.cs

@@ -109,7 +109,7 @@ namespace System.Web.UI.WebControls
 		// LAMESPEC The framework uses Description values for metadata here. However they should be WebSysDescriptions
 		// because all metadata in this namespace has WebSysDescriptions
 
-		[DefaultValue (typeof (ButtonColumnType), "LinkButton"), Bindable (true), WebCategory ("Misc")]
+		[DefaultValue (typeof (ButtonColumnType), "LinkButton"), WebCategory ("Misc")]
 		[Description ("The type of button used in this column.")]
 		public virtual ButtonColumnType ButtonType
 		{
@@ -128,7 +128,7 @@ namespace System.Web.UI.WebControls
 			}
 		}
 
-		[DefaultValue (""), Bindable (true), WebCategory ("Misc")]
+		[DefaultValue (""), WebCategory ("Misc")]
 		[Description ("The command assigned to this column.")]
 		public virtual string CommandName
 		{
@@ -145,7 +145,7 @@ namespace System.Web.UI.WebControls
 			}
 		}
 
-		[DefaultValue (""), Bindable (true), WebCategory ("Misc")]
+		[DefaultValue (""), WebCategory ("Misc")]
 		[Description ("The datafield that is bound to the text property.")]
 		public virtual string DataTextField
 		{
@@ -162,7 +162,7 @@ namespace System.Web.UI.WebControls
 			}
 		}
 
-		[DefaultValue (""), Bindable (true), WebCategory ("Misc")]
+		[DefaultValue (""), WebCategory ("Misc")]
 		[Description ("A format that is applied to the bound text property.")]
 		public virtual string DataTextFormatString
 		{
@@ -179,7 +179,7 @@ namespace System.Web.UI.WebControls
 			}
 		}
 
-		[DefaultValue (""), Bindable (true), WebCategory ("Misc")]
+		[DefaultValue (""), WebCategory ("Misc")]
 		[Description ("The text used for this button.")]
 		public virtual string Text
 		{

+ 9 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,12 @@
+2003-08-01  Andreas Nahr <[email protected]>
+
+	* ButtonColumn.cs: Removed additional attributes
+	* CheckBox.cs: Added attribute
+	* DataGrid.cs: Added attributes
+	* HyperLinkColumn.cs: Changed attributes, added lamespec
+	* Style.cs: Removed attributes
+	* TextBox.cs: Added/ removed attributes
+
 2003-08-01  Andreas Nahr <[email protected]>
 
 	* AdRotator.cs: Added all attributes

+ 1 - 1
mcs/class/System.Web/System.Web.UI.WebControls/CheckBox.cs

@@ -90,7 +90,7 @@ namespace System.Web.UI.WebControls
 		}
 
 
-		[DefaultValue (typeof (TextAlign), "Right"), WebCategory ("Appearance")]
+		[DefaultValue (typeof (TextAlign), "Right"), Bindable (true), WebCategory ("Appearance")]
 		[WebSysDescription ("The alignment of the text.")]
 		public virtual TextAlign TextAlign
 		{

+ 2 - 2
mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs

@@ -256,7 +256,7 @@ namespace System.Web.UI.WebControls
 			}
 		}
 
-		[NotifyParentProperty (true), WebCategory ("Style")]
+		[DefaultValue (null), NotifyParentProperty (true), WebCategory ("Style")]
 		[DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
 		[PersistenceMode (PersistenceMode.InnerProperty)]
 		[WebSysDescription ("The style applied to the footer.")]
@@ -276,7 +276,7 @@ namespace System.Web.UI.WebControls
 			}
 		}
 
-		[NotifyParentProperty (true), WebCategory ("Style")]
+		[DefaultValue (null), NotifyParentProperty (true), WebCategory ("Style")]
 		[DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
 		[PersistenceMode (PersistenceMode.InnerProperty)]
 		[WebSysDescription ("The style applied to the header.")]

+ 7 - 3
mcs/class/System.Web/System.Web.UI.WebControls/HyperLinkColumn.cs

@@ -41,10 +41,12 @@ namespace System.Web.UI.WebControls
 				ViewState ["DataNavigateUrlField"] = value;
 				OnColumnChanged ();
 			}
-		}
+		}
+
+		// LAMESPEC should use WebSysDescription as all others do, but MS uses Description here
 
 		[DefaultValue (""), WebCategory ("Misc")]
-		[WebSysDescription ("The formatting rule for the text content that gets data-bound to the NavigateUrl.")]
+		[Description ("The formatting rule for the text content that gets data-bound to the NavigateUrl.")]
 		public virtual string DataNavigateUrlFormatString {
 			get {
 				object o = ViewState ["DataNavigateUrlFormatString"];
@@ -74,8 +76,10 @@ namespace System.Web.UI.WebControls
 			}
 		}
 
+		// LAMESPEC should use WebSysDescription as all others do, but MS uses Description here
+
 		[DefaultValue (""), WebCategory ("Misc")]
-		[WebSysDescription ("The formatting rule for the text content that gets data-bound to the Text property.")]
+		[Description ("The formatting rule for the text content that gets data-bound to the Text property.")]
 		public virtual string DataTextFormatString {
 			get {
 				object o = ViewState ["DataTextFormatString"];

+ 2 - 2
mcs/class/System.Web/System.Web.UI.WebControls/Style.cs

@@ -168,7 +168,7 @@ namespace System.Web.UI.WebControls
 		}
 
 		[NotifyParentProperty (true)]
-		[DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+		[DefaultValue (""), WebCategory ("Appearance")]
 		[WebSysDescription ("The cascading stylesheet class that is associated with this WebControl.")]
 		public string CssClass
 		{
@@ -241,7 +241,7 @@ namespace System.Web.UI.WebControls
 		}
 
 		[NotifyParentProperty (true)]
-		[DefaultValue (null), WebCategory ("Appearance")]
+		[WebCategory ("Appearance")]
 		[DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
 		[WebSysDescription ("The font of this WebControl.")]
 		public FontInfo Font

+ 5 - 2
mcs/class/System.Web/System.Web.UI.WebControls/TextBox.cs

@@ -119,7 +119,7 @@ namespace System.Web.UI.WebControls
 			set { ViewState ["Text"] = value; }
 		}
 
-		[DefaultValue (typeof (TextBoxMode), "SingleLine"), Bindable (true), WebCategory ("Behavior")]
+		[DefaultValue (typeof (TextBoxMode), "SingleLine"), WebCategory ("Behavior")]
 		[WebSysDescription ("A mode of how the control operates.")]
 		public virtual TextBoxMode TextMode
 		{
@@ -146,7 +146,10 @@ namespace System.Web.UI.WebControls
 
 			set { ViewState ["Wrap"] = value; }
 		}
-
+
+
+		[WebCategory ("Action")]
+		[WebSysDescription ("Raised when the text is changed.")]
 		public event EventHandler TextChanged
 		{
 			add { Events.AddHandler (TextChangedEvent, value); }