2003-08-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
authorAndreas N <andreas@mono-cvs.ximian.com>
Fri, 1 Aug 2003 08:04:00 +0000 (08:04 -0000)
committerAndreas N <andreas@mono-cvs.ximian.com>
Fri, 1 Aug 2003 08:04:00 +0000 (08:04 -0000)
* AdRotator.cs: Added all attributes
* BaseDataList.cs: Added all attributes, added lamespec, removed additional attributes
* BaseValidator.cs: Added all attributes
* BoundColumn.cs: Added all attributes
* Button.cs: Added all attributes
* ButtonColumn.cs: Added all attributes, added lamespec
* Calendar.cs: Added all attributes, added error checks, throws more exceptions
* CheckBox.cs: Added all attributes
* CheckBoxList.cs: Added all attributes
* CompareValidator.cs: Added all attributes
* CustomValidator.cs: Added all attributes
* DataGrid.cs: Added all attributes, more verbose exceptions, fixed signature, removed additional attributes
* DataGridColumn.cs: Added all attributes
* DataGridColumnCollection.cs: Added all attributes
* DataGridPagerStyle.cs: Added all attributes
* DataGridTableInternal.cs: Made DataGridTableInternal internal
* DataList.cs: Added all attributes, more verbose exceptions, removed non-existing member
* DropDownList.cs: Added all attributes
* FontInfo.cs: Added all attributes
* HyperLink.cs: Added all attributes
* HyperLinkColumn.cs: Added all attributes
* Image.cs: Added all attributes
* ImageButton.cs: Added all attributes
* Label.cs: Added all attributes
* LinkButton.cs: Added all attributes
* ListBox.cs: Added all attributes, added error checks, throws more exceptions
* ListControl.cs: Added all attributes
* ListItem.cs: Added all attributes
* ListItemCollection.cs: Added attribute
* Literal.cs: Added all attributes
* Panel.cs: Added all attributes
* RadioButton.cs: Added all attributes
* RadioButtonList.cs: Added all attributes, added error checks, throws more exceptions
* RangeValidator.cs: Added all attributes
* RegularExpressionValidator.cs: Added all attributes
* Repeater.cs: Added all attributes

svn path=/trunk/mcs/; revision=16985

37 files changed:
mcs/class/System.Web/System.Web.UI.WebControls/AdRotator.cs
mcs/class/System.Web/System.Web.UI.WebControls/BaseDataList.cs
mcs/class/System.Web/System.Web.UI.WebControls/BaseValidator.cs
mcs/class/System.Web/System.Web.UI.WebControls/BoundColumn.cs
mcs/class/System.Web/System.Web.UI.WebControls/Button.cs
mcs/class/System.Web/System.Web.UI.WebControls/ButtonColumn.cs
mcs/class/System.Web/System.Web.UI.WebControls/Calendar.cs
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/CheckBox.cs
mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs
mcs/class/System.Web/System.Web.UI.WebControls/CompareValidator.cs
mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs
mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs
mcs/class/System.Web/System.Web.UI.WebControls/DataGridColumn.cs
mcs/class/System.Web/System.Web.UI.WebControls/DataGridColumnCollection.cs
mcs/class/System.Web/System.Web.UI.WebControls/DataGridPagerStyle.cs
mcs/class/System.Web/System.Web.UI.WebControls/DataGridTableInternal.cs
mcs/class/System.Web/System.Web.UI.WebControls/DataList.cs
mcs/class/System.Web/System.Web.UI.WebControls/DropDownList.cs
mcs/class/System.Web/System.Web.UI.WebControls/FontInfo.cs
mcs/class/System.Web/System.Web.UI.WebControls/HyperLink.cs
mcs/class/System.Web/System.Web.UI.WebControls/HyperLinkColumn.cs
mcs/class/System.Web/System.Web.UI.WebControls/Image.cs
mcs/class/System.Web/System.Web.UI.WebControls/ImageButton.cs
mcs/class/System.Web/System.Web.UI.WebControls/Label.cs
mcs/class/System.Web/System.Web.UI.WebControls/LinkButton.cs
mcs/class/System.Web/System.Web.UI.WebControls/ListBox.cs
mcs/class/System.Web/System.Web.UI.WebControls/ListControl.cs
mcs/class/System.Web/System.Web.UI.WebControls/ListItem.cs
mcs/class/System.Web/System.Web.UI.WebControls/ListItemCollection.cs
mcs/class/System.Web/System.Web.UI.WebControls/Literal.cs
mcs/class/System.Web/System.Web.UI.WebControls/Panel.cs
mcs/class/System.Web/System.Web.UI.WebControls/RadioButton.cs
mcs/class/System.Web/System.Web.UI.WebControls/RadioButtonList.cs
mcs/class/System.Web/System.Web.UI.WebControls/RangeValidator.cs
mcs/class/System.Web/System.Web.UI.WebControls/RegularExpressionValidator.cs
mcs/class/System.Web/System.Web.UI.WebControls/Repeater.cs

index 30a2b2a18a2cd79be6936e838f00916d0785bbfc..6b2b6f25b3b2515c871c018ac92145c5620e8038 100755 (executable)
@@ -1,16 +1,15 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class:     AdRotator
- *
- * Authors:  Gaurav Vaish, Gonzalo Paniagua
- * Maintainer: gvaish@iitk.ac.in, gonzalo@ximian.com
- * Implementation: yes
- * Contact: <gvaish@iitk.ac.in>
- * Status:  100%
- *
- * (C) Gaurav Vaish (2001)
- * (C) 2003 Ximian, Inc. (http://www.ximian.com)
- */
+//
+// System.Web.UI.WebControls.AdRotator.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (c) 2002 Ximian, Inc. (http://www.ximian.com)
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 
 using System;
 using System.IO;
@@ -22,12 +21,13 @@ using System.Web.UI;
 using System.Xml;
 using System.Web.Util;
 using System.ComponentModel;
+using System.ComponentModel.Design;
 
 namespace System.Web.UI.WebControls
 {
        [DefaultEvent("AdCreated")]
        [DefaultProperty("AdvertisementFile")]
-       //TODO: [Designer("??")]
+       [Designer ("System.Web.UI.Design.WebControls.AdRotatorDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
        [ToolboxData("<{0}:AdRotator runat=\"server\" Height=\"60px\" "
        + "Width=\"468\"></{0}:AdRotator>")]
        public class AdRotator: WebControl
@@ -195,7 +195,7 @@ namespace System.Web.UI.WebControls
 
                [Bindable(true)]
                [DefaultValue("")]
-               //[Editor("??")]
+               [Editor ("System.Web.UI.Design.XmlUrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
                [WebCategory("Behaviour")]
                [WebSysDescription("AdRotator_AdvertisementFile")]
                public string AdvertisementFile {
@@ -203,6 +203,8 @@ namespace System.Web.UI.WebControls
                        set { advertisementFile = value; }
                }
 
+               [Browsable (false), EditorBrowsable (EditorBrowsableState.Never)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
                public override FontInfo Font {
                        get { return base.Font; }
                }
index aabd78d585e0489fb7b7136f53fca70b3d6e53f2..4d5a1530dd724fd0eee9de714beb4da52e5e3d0e 100755 (executable)
@@ -1,18 +1,17 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     BaseDataList\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.BaseDataList.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2001)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 using System.Collections;\r
 using System.Web;\r
 using System.Web.UI;\r
@@ -21,9 +20,7 @@ namespace System.Web.UI.WebControls
 {\r
        [DefaultEvent("SelectedIndexChanged")]\r
        [DefaultProperty("DataSource")]\r
-       [ParseChildren(true)]\r
-       [PersistChildren(false)]\r
-       //TODO: [Designer("??")]\r
+       [Designer("System.Web.UI.Design.WebControls.BaseDataListDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
        public abstract class BaseDataList: WebControl\r
        {\r
                private  static readonly object SelectedIndexChangedEvent = new object();\r
@@ -126,7 +123,7 @@ namespace System.Web.UI.WebControls
                }\r
 \r
                [Browsable(true)]\r
-               //[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+               [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
                [WebSysDescription("BaseDataList_DataKeys")]\r
                public DataKeyCollection DataKeys\r
                {\r
@@ -158,8 +155,8 @@ namespace System.Web.UI.WebControls
                }\r
 \r
                [Bindable(true)]\r
-               //[DefaultValue(null)]\r
-               //[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+               [DefaultValue(null)]\r
+               [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
                [WebCategory("Data")]\r
                [WebSysDescription("BaseDataList_DataSource")]\r
                public virtual object DataSource\r
@@ -196,11 +193,14 @@ namespace System.Web.UI.WebControls
                        {\r
                                ((TableStyle)ControlStyle).GridLines = value;\r
                        }\r
-               }\r
+               }
+
+               // LAMESPEC HorizontalAlign has a Category attribute, this should obviously be a WebCategory attribute
+               // but is defined incorrectly in the MS framework\r
 \r
                [Bindable(true)]\r
                [DefaultValue(HorizontalAlign.NotSet)]\r
-               [WebCategory("Layout")]\r
+               [Category("Layout")]\r
                [WebSysDescription("BaseDataList_HorizontalAlign")]\r
                public virtual HorizontalAlign HorizontalAlign\r
                {\r
index 76db43afad94bfb0c22f45bbb9377e89d0dc1ab4..bfbbeabfee9367ca8274024c8ad489df5153d290 100755 (executable)
@@ -1,19 +1,19 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class:     BaseValidator
- *
- * Authors:  Gaurav Vaish, Gonzalo Paniagua Javier
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>, <gonzalo@ximian.com>
- * Implementation: yes
- * Status:  80%
- *
- * (C) Gaurav Vaish (2001)
- * (c) 2002 Ximian, Inc. (http://www.ximian.com)
- */
+//
+// System.Web.UI.WebControls.BaseValidator.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (c) 2002 Ximian, Inc. (http://www.ximian.com)
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 
 using System;
 using System.ComponentModel;
+using System.ComponentModel.Design;
 using System.Web;
 using System.Web.UI;
 using System.Drawing;
@@ -21,7 +21,7 @@ using System.Drawing;
 namespace System.Web.UI.WebControls
 {
        [DefaultProperty("ErrorMessage")]
-       //TODO: [Designer("??")]
+       [Designer ("System.Web.UI.Design.WebControls.BaseValidatorDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
        public abstract class BaseValidator: Label, IValidator
        {
                private bool isValid;
@@ -39,6 +39,9 @@ namespace System.Web.UI.WebControls
                        renderUplevel = false;
                }
 
+               [DefaultValue (""), WebCategory ("Behavior")]
+               [TypeConverter (typeof (ValidatedControlConverter))]
+               [WebSysDescription ("The ID of the control to validate.")]
                public string ControlToValidate
                {
                        get
@@ -56,6 +59,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (typeof (ValidatorDisplay), "Static"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("Determines how the validator is displayed.")]
                public ValidatorDisplay Display
                {
                        get
@@ -77,6 +82,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (true), WebCategory ("Behavior")]
+               [WebSysDescription ("Determines if client script is activated on uplevel browsers.")]
                public bool EnableClientScript
                {
                        get
@@ -108,6 +115,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("An error message that is displayed if the control validates to false.")]
                public string ErrorMessage
                {
                        get
@@ -125,6 +134,7 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (null)]
                public override Color ForeColor
                {
                        get
@@ -137,6 +147,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (true), Browsable (false), WebCategory ("Misc")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("Indicates if the control validated to false.")]
                public bool IsValid
                {
                        get { return isValid; }
index abc63c2b9a0784321ccff373f83004ccbb9c8704..17d5e154c65b3fe67ee9a8078372ea2299e953a8 100755 (executable)
@@ -1,15 +1,13 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class:     BoundColumn
- *
- * Author:  Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
- * Implementation: yes
- * Status:  60%
- *
- * (C) Gaurav Vaish (2001)
- */
+//
+// System.Web.UI.WebControls.BoundColumn.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 
 using System;
 using System.ComponentModel;
@@ -116,6 +114,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The field that this column is bound to.")]
                public virtual string DataField
                {
                        get
@@ -132,6 +132,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("A format string that is applied to the data value.")]
                public virtual string DataFormatString
                {
                        get
@@ -148,6 +150,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (false), WebCategory ("Misc")]
+               [WebSysDescription ("Determines if the databound field can only be displayed or also edited.")]
                public virtual bool ReadOnly
                {
                        get
index 9410807bae74d9c735792436ba96fa5cc473b197..98f02de145cc45c9042d006971e9447c36c4e8fa 100755 (executable)
@@ -1,18 +1,17 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class:     Button
- *
- * Author:  Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
- * Implementation: yes
- * Status:  100%
- *
- * (C) Gaurav Vaish (2001)
- */
+//
+// System.Web.UI.WebControls.Button.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 
 using System;
 using System.ComponentModel;
+using System.ComponentModel.Design;
 using System.Web;
 using System.Web.UI;
 
@@ -20,8 +19,8 @@ namespace System.Web.UI.WebControls
 {
        [DefaultEvent("Click")]
        [DefaultProperty("Text")]
-       //TODO: [Designer("??")]
-       //TODO: [DataBindingHandler("??UI.Design.TextDataBindingHandler??")]
+       [Designer("System.Web.UI.Design.WebControls.ButtonDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
+       [DataBindingHandler("System.Web.UI.Design.TextDataBindingHandler, " + Consts.AssemblySystem_Design)]
        [ToolboxData("<{0}:Button runat=\"server\" Text=\"Button\"></{0}:Button>")]
        public class Button : WebControl, IPostBackEventHandler
        {
@@ -34,6 +33,8 @@ namespace System.Web.UI.WebControls
                {
                }
 
+               [DefaultValue (true), Bindable (false), WebCategory ("Behavior")]
+               [WebSysDescription ("Determines if validation is performed when clicked.")]
                public bool CausesValidation
                {
                        get
@@ -49,6 +50,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+               [WebSysDescription ("An argument for the Command of this control.")]
                public string CommandArgument
                {
                        get
@@ -64,6 +67,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), WebCategory ("Behavior")]
+               [WebSysDescription ("The name of the Command of this control.")]
                public string CommandName
                {
                        get
@@ -79,6 +84,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The text that should be shown on this Button.")]
                public string Text
                {
                        get
@@ -94,6 +101,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when the Button is clicked.")]
                public event EventHandler Click
                {
                        add
@@ -106,6 +115,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a Button Command is executed.")]
                public event CommandEventHandler Command
                {
                        add
index 70fa7afb4dcdc765e16710f11954bf41fd74f209..3b08ef73037307bcd731c71ca65c7fb96da98024 100755 (executable)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     ButtonColumn\r
- * \r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- * \r
- * (C) Gaurav Vaish (2002)\r
- */\r
+//
+// System.Web.UI.WebControls.ButtonColumn.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
 using System;\r
 using System.ComponentModel;\r
@@ -106,8 +104,13 @@ namespace System.Web.UI.WebControls
                                }\r
                        }\r
                        return retVal;\r
-               }\r
-               \r
+               }
+
+               // LAMESPEC The framework uses Description values for metadata here. However they should be WebSysDescriptions
+               // because all metadata in this namespace has WebSysDescriptions\r
+
+               [DefaultValue (typeof (ButtonColumnType), "LinkButton"), Bindable (true), WebCategory ("Misc")]
+               [Description ("The type of button used in this column.")]\r
                public virtual ButtonColumnType ButtonType\r
                {\r
                        get\r
@@ -124,7 +127,9 @@ namespace System.Web.UI.WebControls
                                ViewState["ButtonType"] = value;\r
                        }\r
                }\r
-               \r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Misc")]
+               [Description ("The command assigned to this column.")]\r
                public virtual string CommandName\r
                {\r
                        get\r
@@ -139,7 +144,9 @@ namespace System.Web.UI.WebControls
                                ViewState["CommandName"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Misc")]
+               [Description ("The datafield that is bound to the text property.")]\r
                public virtual string DataTextField\r
                {\r
                        get\r
@@ -154,7 +161,9 @@ namespace System.Web.UI.WebControls
                                ViewState["DataTextField"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Misc")]
+               [Description ("A format that is applied to the bound text property.")]\r
                public virtual string DataTextFormatString\r
                {\r
                        get\r
@@ -169,7 +178,9 @@ namespace System.Web.UI.WebControls
                                ViewState["DataTextFormatString"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Misc")]
+               [Description ("The text used for this button.")]\r
                public virtual string Text\r
                {\r
                        get\r
index e7f90a5e707100d56219a3129fa9c41437bd7354..52c8df30c0ab01f1dad67e0ef67cca34c7be962b 100755 (executable)
@@ -1,16 +1,15 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     Calendar\r
- *\r
- * Authors:  Gaurav Vaish, Gonzalo Paniagua Javier\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>, <gonzalo@ximian.com>\r
- * Implementation: yes\r
- * Status:  98%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- * (c) 2002 Ximian, Inc. (http://www.ximian.com)\r
- */\r
+//
+// System.Web.UI.WebControls.Calendar.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (c) 2002 Ximian, Inc. (http://www.ximian.com)
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.IO;\r
@@ -20,14 +19,15 @@ using System.Text;
 using System.Web;\r
 using System.Web.UI;\r
 using System.Drawing;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 \r
 namespace System.Web.UI.WebControls\r
 {\r
        [DefaultEvent("SelectionChanged")]\r
        [DefaultProperty("SelectedDate")]\r
-       //TODO: [Designer("??")]\r
-       //[DataBindingHandler("??")]\r
+       [Designer("System.Web.UI.Design.WebControls.CalendarDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
+       [DataBindingHandler("System.Web.UI.Design.WebControls.CalendarDataBindingHandler, " + Consts.AssemblySystem_Design)]
        public class Calendar : WebControl, IPostBackEventHandler\r
        {\r
                //\r
@@ -62,7 +62,10 @@ namespace System.Web.UI.WebControls
                {\r
                        //TODO: Initialization\r
                }\r
-\r
+
+
+               [DefaultValue (2), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The border left within the calendar days.")]\r
                public int CellPadding\r
                {\r
                        get\r
@@ -73,11 +76,15 @@ namespace System.Web.UI.WebControls
                                return 2;\r
                        }\r
                        set\r
-                       {\r
+                       {
+                               if (value < -1)
+                                       throw new ArgumentOutOfRangeException ("value", "CellPadding value has to be -1 for 'not set' or > -1.");\r
                                ViewState["CellPadding"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (0), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The border left between calendar days.")]\r
                public int CellSpacing\r
                {\r
                        get\r
@@ -89,12 +96,16 @@ namespace System.Web.UI.WebControls
                        }\r
                        set\r
                        {\r
-                               if(value<-1)\r
-                                       throw new ArgumentOutOfRangeException();\r
+                               if (value < -1)
+                                       throw new ArgumentOutOfRangeException ("value", "CellSpacing value has to be -1 for 'not set' or > -1.");\r
                                ViewState["CellSpacing"] = value;\r
                        }\r
                }\r
-\r
+
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the day header.")]\r
                public TableItemStyle DayHeaderStyle\r
                {\r
                        get\r
@@ -106,7 +117,9 @@ namespace System.Web.UI.WebControls
                                return dayHeaderStyle;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (DayNameFormat), "Short"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The format for the day name display.")]\r
                public DayNameFormat DayNameFormat\r
                {\r
                        get\r
@@ -119,11 +132,16 @@ namespace System.Web.UI.WebControls
                        set\r
                        {\r
                                if(!System.Enum.IsDefined(typeof(DayNameFormat),value))\r
-                                       throw new ArgumentException();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                ViewState["DayNameFormat"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null)]
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the day entry.")]\r
                public TableItemStyle DayStyle\r
                {\r
                        get\r
@@ -135,7 +153,9 @@ namespace System.Web.UI.WebControls
                                return dayStyle;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (FirstDayOfWeek), "Default"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The day that a week begins with.")]\r
                public FirstDayOfWeek FirstDayOfWeek\r
                {\r
                        get\r
@@ -148,11 +168,13 @@ namespace System.Web.UI.WebControls
                        set\r
                        {\r
                                if(!System.Enum.IsDefined(typeof(FirstDayOfWeek), value))\r
-                                       throw new ArgumentException();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                ViewState["FirstDayOfWeek"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (">"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The text for selecting the next month.")]\r
                public string NextMonthText\r
                {\r
                        get\r
@@ -167,7 +189,9 @@ namespace System.Web.UI.WebControls
                                ViewState["NextMonthText"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (NextPrevFormat), "CustomText"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The format for the month navigation.")]\r
                public NextPrevFormat NextPrevFormat\r
                {\r
                        get\r
@@ -180,11 +204,15 @@ namespace System.Web.UI.WebControls
                        set\r
                        {\r
                                if(!System.Enum.IsDefined(typeof(NextPrevFormat), value))\r
-                                       throw new ArgumentException();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                ViewState["NextPrevFormat"] = value;\r
                        }\r
                }\r
-\r
+
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the month navigation.")]\r
                public TableItemStyle NextPrevStyle\r
                {\r
                        get\r
@@ -196,7 +224,12 @@ namespace System.Web.UI.WebControls
                                return nextPrevStyle;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null)]
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to day entries belonging to another month.")]\r
                public TableItemStyle OtherMonthDayStyle\r
                {\r
                        get\r
@@ -208,7 +241,9 @@ namespace System.Web.UI.WebControls
                                return otherMonthDayStyle;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue ("<"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The text for selecting the previous month.")]\r
                public string PrevMonthText\r
                {\r
                        get\r
@@ -223,7 +258,9 @@ namespace System.Web.UI.WebControls
                                ViewState["PrevMonthText"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), Bindable (true)]
+               [WebSysDescription ("The currently selected date.")]\r
                public DateTime SelectedDate\r
                {\r
                        get\r
@@ -245,7 +282,9 @@ namespace System.Web.UI.WebControls
                                }\r
                        }\r
                }\r
-\r
+
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("All currently selected dates.")]\r
                public SelectedDatesCollection SelectedDates\r
                {\r
                        get\r
@@ -259,7 +298,12 @@ namespace System.Web.UI.WebControls
                                return selectedDates;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null)]
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the selected day.")]\r
                public TableItemStyle SelectedDayStyle\r
                {\r
                        get\r
@@ -271,7 +315,9 @@ namespace System.Web.UI.WebControls
                                return selectedDayStyle;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (CalendarSelectionMode), "Day"), Bindable (true), WebCategory ("Behavior")]
+               [WebSysDescription ("The mode in which days or other entries are selected.")]\r
                public CalendarSelectionMode SelectionMode\r
                {\r
                        get\r
@@ -284,11 +330,13 @@ namespace System.Web.UI.WebControls
                        set\r
                        {\r
                                if(!System.Enum.IsDefined(typeof(CalendarSelectionMode), value))\r
-                                       throw new ArgumentException();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                ViewState["SelectionMode"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (">>"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The text that is used for selection of months.")]\r
                public string SelectMonthText\r
                {\r
                        get\r
@@ -303,7 +351,11 @@ namespace System.Web.UI.WebControls
                                ViewState["SelectMonthText"] = value;\r
                        }\r
                }\r
-\r
+
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the selector.")]\r
                public TableItemStyle SelectorStyle\r
                {\r
                        get\r
@@ -313,7 +365,9 @@ namespace System.Web.UI.WebControls
                                return selectorStyle;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (">"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The text that is used for selection of weeks.")]\r
                public string SelectWeekText\r
                {\r
                        get\r
@@ -328,7 +382,9 @@ namespace System.Web.UI.WebControls
                                ViewState["SelectWeekText"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (true), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("Determines if the header for days is shown.")]\r
                public bool ShowDayHeader\r
                {\r
                        get\r
@@ -343,7 +399,9 @@ namespace System.Web.UI.WebControls
                                ViewState["ShowDayHeader"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (false), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("Determines if gridlines are shown.")]\r
                public bool ShowGridLines\r
                {\r
                        get\r
@@ -358,7 +416,9 @@ namespace System.Web.UI.WebControls
                                ViewState["ShowGridLines"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (true), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("Determines if month navigation is shown.")]\r
                public bool ShowNextPrevMonth\r
                {\r
                        get\r
@@ -373,7 +433,9 @@ namespace System.Web.UI.WebControls
                                ViewState["ShowNextPrevMonth"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (true), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("Determines if the title is shown.")]\r
                public bool ShowTitle\r
                {\r
                        get\r
@@ -388,7 +450,9 @@ namespace System.Web.UI.WebControls
                                ViewState["ShowTitle"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (TitleFormat), "MonthYear"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The format in which the title is rendered.")]\r
                public TitleFormat TitleFormat\r
                {\r
                        get\r
@@ -401,11 +465,15 @@ namespace System.Web.UI.WebControls
                        set\r
                        {\r
                                if(!System.Enum.IsDefined(typeof(TitleFormat), value))\r
-                                       throw new ArgumentException();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                ViewState["TitleFormat"] = value;\r
                        }\r
                }\r
-\r
+
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the title.")]\r
                public TableItemStyle TitleStyle\r
                {\r
                        get\r
@@ -417,7 +485,12 @@ namespace System.Web.UI.WebControls
                                return titleStyle;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null)]
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the today's date display.")]\r
                public TableItemStyle TodayDayStyle\r
                {\r
                        get\r
@@ -429,7 +502,10 @@ namespace System.Web.UI.WebControls
                                return todayDayStyle;\r
                        }\r
                }\r
-\r
+
+               [Bindable (true), Browsable (false)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The current date.")]\r
                public DateTime TodaysDate\r
                {\r
                        get\r
@@ -444,7 +520,9 @@ namespace System.Web.UI.WebControls
                                ViewState["TodaysDate"] = value.Date;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), Bindable (true)]
+               [WebSysDescription ("The month that is displayed.")]\r
                public DateTime VisibleDate\r
                {\r
                        get\r
@@ -459,7 +537,11 @@ namespace System.Web.UI.WebControls
                                ViewState["VisibleDate"] = value.Date;\r
                        }\r
                }\r
-\r
+
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to weekend days.")]\r
                public TableItemStyle WeekendDayStyle\r
                {\r
                        get\r
@@ -473,7 +555,9 @@ namespace System.Web.UI.WebControls
                                return weekendDayStyle;\r
                        }\r
                }\r
-\r
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a day entry is rendered.")]\r
                public event DayRenderEventHandler DayRender\r
                {\r
                        add\r
@@ -485,7 +569,9 @@ namespace System.Web.UI.WebControls
                                Events.RemoveHandler(DayRenderEvent, value);\r
                        }\r
                }\r
-\r
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when another entry is selected.")]\r
                public event EventHandler SelectionChanged\r
                {\r
                        add\r
@@ -497,7 +583,9 @@ namespace System.Web.UI.WebControls
                                Events.RemoveHandler(SelectionChangedEvent, value);\r
                        }\r
                }\r
-\r
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a the currently visible month has changed.")]\r
                public event MonthChangedEventHandler VisibleMonthChanged\r
                {\r
                        add\r
index 842c3c4384b4da35ddfb08b42cd8d6bbc47a1c8e..78bf68732593316126e5e6e85d991ae5280d26cb 100644 (file)
@@ -1,3 +1,42 @@
+2003-08-01  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * AdRotator.cs: Added all attributes
+       * BaseDataList.cs: Added all attributes, added lamespec, removed additional attributes
+       * BaseValidator.cs: Added all attributes
+       * BoundColumn.cs: Added all attributes
+       * Button.cs: Added all attributes
+       * ButtonColumn.cs: Added all attributes, added lamespec
+       * Calendar.cs: Added all attributes, added error checks, throws more exceptions
+       * CheckBox.cs: Added all attributes
+       * CheckBoxList.cs: Added all attributes
+       * CompareValidator.cs: Added all attributes
+       * CustomValidator.cs: Added all attributes
+       * DataGrid.cs: Added all attributes, more verbose exceptions, fixed signature, removed additional attributes
+       * DataGridColumn.cs: Added all attributes
+       * DataGridColumnCollection.cs: Added all attributes
+       * DataGridPagerStyle.cs: Added all attributes
+       * DataGridTableInternal.cs: Made DataGridTableInternal internal
+       * DataList.cs: Added all attributes, more verbose exceptions, removed non-existing member
+       * DropDownList.cs: Added all attributes
+       * FontInfo.cs: Added all attributes
+       * HyperLink.cs: Added all attributes
+       * HyperLinkColumn.cs: Added all attributes
+       * Image.cs: Added all attributes
+       * ImageButton.cs: Added all attributes
+       * Label.cs: Added all attributes
+       * LinkButton.cs: Added all attributes
+       * ListBox.cs: Added all attributes, added error checks, throws more exceptions
+       * ListControl.cs: Added all attributes
+       * ListItem.cs: Added all attributes
+       * ListItemCollection.cs: Added attribute
+       * Literal.cs: Added all attributes
+       * Panel.cs: Added all attributes
+       * RadioButton.cs: Added all attributes
+       * RadioButtonList.cs: Added all attributes, added error checks, throws more exceptions
+       * RangeValidator.cs: Added all attributes
+       * RegularExpressionValidator.cs: Added all attributes
+       * Repeater.cs: Added all attributes
+
 2003-07-30  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
 
        * RequiredFieldValidator.cs: Added all attributes
index 70931a89d88f643b434693a900f2bdd6fd2d1e37..ca4df69546a73838372bf4e65c6e74ed06d91fa4 100644 (file)
@@ -1,17 +1,15 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class:     CheckBox
- *
- * Author:  Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
- * Implementation: yes
- * Status:  100%
- *
- * (C) Gaurav Vaish (2001)
- * Thanks to Leen Toelen (toelen@hotmail.com)'s classes that helped me
- * to write the contents of the function LoadPostData(...)
- */
+//
+// System.Web.UI.WebControls.CheckBox.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+// Thanks to Leen Toelen (toelen@hotmail.com)'s classes that helped me
+// to write the contents of the function LoadPostData(...)
+//
 
 using System;
 using System.Collections;
@@ -20,13 +18,14 @@ using System.Globalization;
 using System.Web;
 using System.Web.UI;
 using System.ComponentModel;
+using System.ComponentModel.Design;
 
 namespace System.Web.UI.WebControls
 {
        [DefaultEvent("CheckedChanged")]
        [DefaultProperty("Text")]
-       //[DataBindingHanlder("??")]
-       //[Designer("??")]
+       [DataBindingHandler("System.Web.UI.Design.TextDataBindingHandler, " + Consts.AssemblySystem_Design)]
+       [Designer ("System.Web.UI.Design.WebControls.CheckBoxDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
        public class CheckBox : WebControl, IPostBackDataHandler
        {
                private static readonly object CheckedChangedEvent = new object();
@@ -34,7 +33,9 @@ namespace System.Web.UI.WebControls
                public CheckBox(): base(HtmlTextWriterTag.Input)
                {
                }
-               
+
+               [DefaultValue (false), WebCategory ("Behavior")]
+               [WebSysDescription ("The control automatically posts back after changing the text.")]
                public virtual bool AutoPostBack
                {
                        get {
@@ -44,7 +45,10 @@ namespace System.Web.UI.WebControls
 
                        set { ViewState ["AutoPostBack"] = value; }
                }
-               
+
+
+               [DefaultValue (false), Bindable (true)]
+               [WebSysDescription ("Determines if the control is checked.")]
                public virtual bool Checked
                {
                        get {
@@ -54,7 +58,9 @@ namespace System.Web.UI.WebControls
 
                        set { ViewState ["Checked"] = value; }
                }
-               
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The text that this control displays.")]
                public virtual string Text
                {
                        get {
@@ -82,7 +88,10 @@ namespace System.Web.UI.WebControls
                                return true;
                        }
                }
-               
+
+
+               [DefaultValue (typeof (TextAlign), "Right"), WebCategory ("Appearance")]
+               [WebSysDescription ("The alignment of the text.")]
                public virtual TextAlign TextAlign
                {
                        get {
@@ -96,7 +105,9 @@ namespace System.Web.UI.WebControls
                                ViewState ["TextAlign"] = value;
                        }
                }
-               
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when the control is checked or unchecked.")]
                public event EventHandler CheckedChanged
                {
                        add { Events.AddHandler (CheckedChangedEvent, value); }
index 1a4ae4e8e5fa203603e375a477d13f720877d0f7..cb96d3c2572a43d264011a1a5a9f1b8dd0277a18 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
-* Namespace: System.Web.UI.WebControls\r
-* Class:     CheckBoxList\r
-*\r
-* Author:  Gaurav Vaish\r
-* Maintainer: gvaish@iitk.ac.in\r
-* Contact: <gvaish@iitk.ac.in>\r
-* Implementation: yes\r
-* Status:  100%\r
-*\r
-* (C) Gaurav Vaish (2001)\r
-*/\r
+//
+// System.Web.UI.WebControls.CheckBoxList.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
 using System;\r
 using System.Collections.Specialized;\r
@@ -33,7 +31,9 @@ namespace System.Web.UI.WebControls
                        Controls.Add (checkBoxRepeater);\r
                        isChangeNotified = false;\r
                }\r
-\r
+
+               [DefaultValue (-1), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The border left within a CheckBox.")]\r
                public virtual int CellPadding\r
                {\r
                        get\r
@@ -45,7 +45,9 @@ namespace System.Web.UI.WebControls
                                ((TableStyle)ControlStyle).CellPadding = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (-1), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The border left between CheckBoxes.")]\r
                public virtual int CellSpacing\r
                {\r
                        get\r
@@ -57,7 +59,9 @@ namespace System.Web.UI.WebControls
                                ((TableStyle)ControlStyle).CellSpacing = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (0), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The number of columns that should be used to display the CheckBoxes.")]\r
                public virtual int RepeatColumns\r
                {\r
                        get\r
@@ -74,7 +78,9 @@ namespace System.Web.UI.WebControls
                                ViewState["RepeatColumns"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (RepeatDirection), "Vertical"), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The direction that is followed when doing the layout.")]\r
                public virtual RepeatDirection RepeatDirection\r
                {\r
                        get\r
@@ -91,7 +97,9 @@ namespace System.Web.UI.WebControls
                                ViewState["RepeatDirection"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (RepeatLayout), "Table"), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The method used to create the layout.")]\r
                public virtual RepeatLayout RepeatLayout\r
                {\r
                        get\r
@@ -108,7 +116,9 @@ namespace System.Web.UI.WebControls
                                ViewState["RepeatLayout"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (TextAlign), "Right"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The alignment of the CheckBox text.")]\r
                public virtual TextAlign TextAlign\r
                {\r
                        get\r
index c6d19b53fb1ed00037444e4eb2ca3f526fbc213d..0dddee6728480cbd2d3296a4e1c7ae74e3d9571b 100644 (file)
@@ -1,18 +1,18 @@
-/**
-* Namespace: System.Web.UI.WebControls
-* Class:     CompareValidator
-*
-* Author:  Gaurav Vaish
-* Maintainer: gvaish@iitk.ac.in
-* Implementation: yes
-* Status:  80%
-*
-* (C) Gaurav Vaish (2001)
-*/
+//
+// System.Web.UI.WebControls.CompareValidator.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 
 using System;
 using System.Web;
 using System.Web.UI;
+using System.ComponentModel;
 
 namespace System.Web.UI.WebControls
 {
@@ -25,6 +25,9 @@ namespace System.Web.UI.WebControls
                        // Intitalize();
                }
 
+               [DefaultValue (""), WebCategory ("Behavior")]
+               [TypeConverter (typeof (ValidatedControlConverter))]
+               [WebSysDescription ("The ID of a control that is compared.")]
                public string ControlToCompare
                {
                        get
@@ -41,6 +44,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (typeof (ValidationCompareOperator), "Equal"), WebCategory ("Behavior")]
+               [WebSysDescription ("The operator that is used for comparison.")]
                public ValidationCompareOperator Operator
                {
                        get
@@ -58,6 +63,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+               [WebSysDescription ("The value that is compared to.")]
                public string ValueToCompare
                {
                        get
index 192cab3bcad3852de5b2727756eaf273543e9322..247d82209fa0c1cabc959ec003012f65986269be 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     CustomValidator\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- */\r
+//
+// System.Web.UI.WebControls.CustomValidator.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.Web;\r
@@ -29,7 +27,9 @@ namespace System.Web.UI.WebControls
                public CustomValidator()\r
                {\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Behavior")]
+               [WebSysDescription ("A client script that performs the validation.")]\r
                public string ClientValidationFunction\r
                {\r
                        get\r
@@ -46,7 +46,8 @@ namespace System.Web.UI.WebControls
                                ViewState["ClientValidationFunction"] = value;\r
                        }\r
                }\r
-\r
+
+               [WebSysDescription ("Raised for validation on the server.")]\r
                public event ServerValidateEventHandler ServerValidate\r
                {\r
                        add\r
index eb2479d05fb65d8d85a0af2e10469b034a5245b9..14d1ace949fad0f6e245cce887907f8155e3e014 100644 (file)
@@ -1,15 +1,13 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class:     DataGrid
- *
- * Author:  Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
- * Implementation: yes
- * Status:  95%
- *
- * (C) Gaurav Vaish (2002)
- */
+//
+// System.Web.UI.WebControls.DataGrid.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 
 using System;
 using System.Collections;
@@ -18,16 +16,13 @@ using System.Web;
 using System.Web.UI;
 using System.Web.Util;
 using System.ComponentModel;
+using System.ComponentModel.Design;
 using System.Reflection;
 
 namespace System.Web.UI.WebControls
 {
-       //TODO: [Designer("??")]
-       //TODO: [Editor("??")]
-       [DefaultEvent("SelectedIndexChanged")]
-       [DefaultProperty("DataSource")]
-       [ParseChildren(true)]
-       [PersistChildren(false)]
+       [Designer ("System.Web.UI.Design.WebControls.DataGridDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
+       [Editor ("System.Web.UI.Design.WebControls.DataGridComponentEditor, " + Consts.AssemblySystem_Design, typeof (ComponentEditor))]
        public class DataGrid : BaseDataList, INamingContainer
        {
                public const string CancelCommandName       = "Cancel";
@@ -73,6 +68,8 @@ namespace System.Web.UI.WebControls
                {
                }
 
+               [DefaultValue (false), WebCategory ("Paging")]
+               [WebSysDescription ("Allows custom paging.")]
                public virtual bool AllowCustomPaging
                {
                        get
@@ -88,6 +85,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (false), WebCategory ("Paging")]
+               [WebSysDescription ("Allow using multiple pages.")]
                public virtual bool AllowPaging
                {
                        get
@@ -103,6 +102,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (false), WebCategory ("Behavior")]
+               [WebSysDescription ("Allows the user to sort the table by clicking on column headers.")]
                public virtual bool AllowSorting
                {
                        get
@@ -118,6 +119,10 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to alternating items.")]
                public virtual TableItemStyle AlternatingItemStyle
                {
                        get
@@ -134,6 +139,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (true), WebCategory ("Behavior")]
+               [WebSysDescription ("Automatically generate columns at runtime for each field found in the datasource.")]
                public virtual bool AutoGenerateColumns
                {
                        get
@@ -149,6 +156,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [Editor ("System.Web.UI.Design.ImageUrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [WebSysDescription ("The URL to the image file used as background.")]
                public virtual string BackImageUrl
                {
                        get
@@ -164,6 +174,11 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (true), WebCategory ("Behavior")]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [MergableProperty (false)]
+               [Editor ("System.Web.UI.Design.WebControls.DataGridColumnCollectionEditor, " + Consts.AssemblySystem_Design, typeof (ComponentEditor))]
+               [WebSysDescription ("Automatically generate columns at runtime for each field found in the datasource.")]
                public virtual DataGridColumnCollection Columns
                {
                        get
@@ -181,6 +196,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false), Bindable (true)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The index number for the currently selected page.")]
                public int CurrentPageIndex
                {
                        get
@@ -193,11 +211,14 @@ namespace System.Web.UI.WebControls
                        set
                        {
                                if(value < 0)
-                                       throw new ArgumentOutOfRangeException();
+                                       throw new ArgumentOutOfRangeException ("value", "CurrentPageIndex value has to be 0 for 'not set' or > 0.");
                                ViewState["CurrentPageIndex"] = value;
                        }
                }
 
+
+               [DefaultValue (-1), WebCategory ("Misc")]
+               [WebSysDescription ("The index number for the currently edited item.")]
                public virtual int EditItemIndex
                {
                        get
@@ -210,11 +231,15 @@ namespace System.Web.UI.WebControls
                        set
                        {
                                if(value < -1)
-                                       throw new ArgumentOutOfRangeException();
+                                       throw new ArgumentOutOfRangeException ("value", "EditItemIndex value has to be -1 for 'not set' or > -1.");
                                ViewState["EditItemIndex"] = value;
                        }
                }
 
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to items that are currently being edited.")]
                public virtual TableItemStyle EditItemStyle
                {
                        get
@@ -231,6 +256,10 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the footer.")]
                public virtual TableItemStyle FooterStyle
                {
                        get
@@ -247,6 +276,10 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the header.")]
                public virtual TableItemStyle HeaderStyle
                {
                        get
@@ -263,6 +296,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("A collection containing all items.")]
                public virtual DataGridItemCollection Items
                {
                        get
@@ -281,6 +317,10 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to items.")]
                public virtual TableItemStyle ItemStyle
                {
                        get
@@ -297,6 +337,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The number of pages.")]
                public int PageCount
                {
                        get
@@ -312,6 +355,10 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the pager.")]
                public virtual DataGridPagerStyle PagerStyle
                {
                        get
@@ -328,6 +375,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (10), WebCategory ("Paging")]
+               [WebSysDescription ("The maximum number of entries that are created per page.")]
                public virtual int PageSize
                {
                        get
@@ -345,6 +394,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (-1), Bindable (true)]
+               [WebSysDescription ("The index number for the currently selected item.")]
                public virtual int SelectedIndex
                {
                        get
@@ -379,6 +430,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The currently selected item.")]
                public virtual DataGridItem SelectedItem
                {
                        get
@@ -389,6 +443,10 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [NotifyParentProperty (true), WebCategory ("Style")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the currently selected item.")]
                public virtual TableItemStyle SelectedItemStyle
                {
                        get
@@ -405,6 +463,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (false), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("Determines if the footer should be shown.")]
                public virtual bool ShowFooter
                {
                        get
@@ -420,6 +480,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (false), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("Determines if the header should be shown.")]
                public virtual bool ShowHeader
                {
                        get
@@ -435,6 +497,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The number of items that are visible.")]
                public virtual int VirtualItemCount
                {
                        get
@@ -447,11 +512,13 @@ namespace System.Web.UI.WebControls
                        set
                        {
                                if(value < 0)
-                                       throw new ArgumentOutOfRangeException();
+                                       throw new ArgumentOutOfRangeException ("value", "VirtualItemCount value has to be >= 0.");
                                ViewState["VirtualItemCount"] = value;
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a cancel command is generated.")]
                public event DataGridCommandEventHandler CancelCommand
                {
                        add
@@ -464,6 +531,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a delete command is generated.")]
                public event DataGridCommandEventHandler DeleteCommand
                {
                        add
@@ -476,6 +545,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when an edit command is generated.")]
                public event DataGridCommandEventHandler EditCommand
                {
                        add
@@ -488,6 +559,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when an item command is generated.")]
                public event DataGridCommandEventHandler ItemCommand
                {
                        add
@@ -500,6 +573,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Behavior")]
+               [WebSysDescription ("Raised when a new item is created.")]
                public event DataGridItemEventHandler ItemCreated
                {
                        add
@@ -512,6 +587,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Behavior")]
+               [WebSysDescription ("Raised when a item gets data-bound.")]
                public event DataGridItemEventHandler ItemDataBound
                {
                        add
@@ -524,6 +601,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when the currently selected page changes.")]
                public event DataGridPageChangedEventHandler PageIndexChanged
                {
                        add
@@ -536,6 +615,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a sort command is generated.")]
                public event DataGridSortCommandEventHandler SortCommand
                {
                        add
@@ -548,6 +629,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when an update command is generated.")]
                public event DataGridCommandEventHandler UpdateCommand
                {
                        add
@@ -1301,7 +1384,7 @@ namespace System.Web.UI.WebControls
                ///<summary>
                /// UnDocumented method
                /// </summary>
-               protected ArrayList CreateColumnSet(PagedDataSource source, bool useDataSource)
+               protected virtual ArrayList CreateColumnSet(PagedDataSource source, bool useDataSource)
                {
                        DataGridColumn[] cols = new DataGridColumn [Columns.Count];
                        Columns.CopyTo (cols, 0);
index 8c210eac4adf75ecbf299e0e7e072c5f4c370353..458f6a293918fd5c4347a21fc9efa8dbefdcbec7 100644 (file)
@@ -1,15 +1,13 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class:     DataGridColumn
- *
- * Author:  Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
- * Implementation: yes
- * Status:  100%
- *
- * (C) Gaurav Vaish (2002)
- */
+//
+// System.Web.UI.WebControls.DataGridColumn.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 
 using System;
 using System.Web;
@@ -59,6 +57,10 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (null), WebCategory ("Misc")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the footer of this column.")]
                public virtual TableItemStyle FooterStyle
                {
                        get
@@ -75,6 +77,10 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (null), WebCategory ("Misc")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the header of this column.")]
                public virtual TableItemStyle HeaderStyle
                {
                        get
@@ -91,6 +97,10 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (null), WebCategory ("Misc")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the rows of this column.")]
                public virtual TableItemStyle ItemStyle
                {
                        get
@@ -107,6 +117,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The text within the footer of this column.")]
                public virtual string FooterText
                {
                        get
@@ -125,6 +137,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The URL to an image that is displayed in the header of this column.")]
                public virtual string HeaderImageUrl
                {
                        get
@@ -143,6 +157,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The text within the header of this column.")]
                public virtual string HeaderText
                {
                        get
@@ -161,6 +177,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("An expression that determines how the colum should be sorted.")]
                public virtual string SortExpression
                {
                        get
@@ -179,6 +197,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (true), WebCategory ("Misc")]
+               [WebSysDescription ("The visibility of this column.")]
                public bool Visible
                {
                        get
index dd38925ba0a581079b703c0f558cc384e1c333b1..a2702f665d08be0a3b13b4e8594a5b8ba072e0d2 100644 (file)
@@ -11,7 +11,8 @@
  * (C) Gaurav Vaish (2002)\r
  */\r
 \r
-using System;\r
+using System;
+using System.ComponentModel;\r
 using System.Collections;\r
 using System.Web;\r
 using System.Web.UI;\r
@@ -29,7 +30,8 @@ namespace System.Web.UI.WebControls
                        this.owner   = owner;\r
                        this.columns = columns;\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public int Count\r
                {\r
                        get\r
@@ -37,7 +39,8 @@ namespace System.Web.UI.WebControls
                                return columns.Count;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public bool IsReadOnly\r
                {\r
                        get\r
@@ -45,7 +48,8 @@ namespace System.Web.UI.WebControls
                                return false;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public bool IsSynchronized\r
                {\r
                        get\r
@@ -53,7 +57,8 @@ namespace System.Web.UI.WebControls
                                return false;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public DataGridColumn this[int index]\r
                {\r
                        get\r
@@ -61,7 +66,8 @@ namespace System.Web.UI.WebControls
                                return (DataGridColumn)(columns[index]);\r
                        }\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public object SyncRoot\r
                {\r
                        get\r
index ea602ef51663e47514164356ec4d7c43207bd9cb..6c5b39f233c6bcea48b972754366f358154894d7 100644 (file)
@@ -1,17 +1,16 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class:     DataGridPagerStyle
- *
- * Author:  Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
- * Implementation: yes
- * Status:  100%
- *
- * (C) Gaurav Vaish (2002)
- */
+//
+// System.Web.UI.WebControls.DataGridPagerStyle.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 
 using System;
+using System.ComponentModel;
 using System.Web;
 using System.Web.UI;
 
@@ -48,7 +47,10 @@ namespace System.Web.UI.WebControls
                                return (p == PagerPosition.Bottom || p == PagerPosition.TopAndBottom);
                        }
                }
-               
+
+               [DefaultValue (typeof (PagerMode), "NextPrev"), Bindable (true), WebCategory ("Misc")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The mode used for displaying multiple pages.")]
                public PagerMode Mode
                {
                        get
@@ -70,6 +72,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (">"), Bindable (true), WebCategory ("Misc")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The text for the 'next page' button.")]
                public string NextPageText
                {
                        get
@@ -87,6 +92,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue ("<"), Bindable (true), WebCategory ("Misc")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The text for the 'previous page' button.")]
                public string PrevPageText
                {
                        get
@@ -104,6 +112,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (10), Bindable (true), WebCategory ("Misc")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The maximum number of pages to show as direct links.")]
                public int PageButtonCount
                {
                        get
@@ -121,6 +132,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (typeof (PagerPosition), "Bottom"), Bindable (true), WebCategory ("Misc")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The position for the page display.")]
                public PagerPosition Position
                {
                        get
@@ -142,6 +156,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (true), Bindable (true), WebCategory ("Misc")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("Determines if paging functionallity is visible to the user.")]
                public bool Visible
                {
                        get
index ad6baad75c5cc939384b8c96ceceaa452e38cef6..434a50f251f33754f5674c79bca504fb10d52fac 100755 (executable)
@@ -13,7 +13,7 @@ using System.Web.UI;
 
 namespace System.Web.UI.WebControls
 {
-       public class DataGridTableInternal : Table
+       internal class DataGridTableInternal : Table
        {
                public DataGridTableInternal() : base()
                {
index b23530c2e71b2a876ed9ec9523489552c89e4173..49d0ca0d1843bc2f7884d7a2ca3932673de0b5b4 100755 (executable)
@@ -1,27 +1,26 @@
-/**
- * Namespace: System.Web.UI.WebControls
- * Class:     DataList
- *
- * Author:  Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
- * Implementation: yes
- * Status:  98%
- *
- * (C) Gaurav Vaish (2001)
- */
+//
+// System.Web.UI.WebControls.DataList.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 
 using System;
 using System.Collections;
 using System.ComponentModel;
+using System.ComponentModel.Design;
 using System.Web;
 using System.Web.UI;
 using System.Web.Util;
 
 namespace System.Web.UI.WebControls
 {
-       //TODO: [Designer("??")]
-       //TODO: [Editor("??")]
+       [Designer("System.Web.UI.Design.WebControls.DataListDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
+       [Editor ("System.Web.UI.Design.WebControls.DataListComponentEditor, " + Consts.AssemblySystem_Design, typeof (ComponentEditor))]
        public class DataList: BaseDataList, INamingContainer, IRepeatInfoUser
        {
                public const string CancelCommandName = "Cancel";
@@ -53,7 +52,6 @@ namespace System.Web.UI.WebControls
                ITemplate itemTemplate;
                ITemplate selectedItemTemplate;
                ITemplate separatorTemplate;
-               ITemplate separatorItemTemplate;
 
                ArrayList itemsArray;
                DataListItemCollection items;
@@ -64,11 +62,12 @@ namespace System.Web.UI.WebControls
                {
                }
 
-               [DefaultValue(null)]
+               [DefaultValue (null)]
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
-               [NotifyParentProperty(true)]
-               [WebCategory("Style")]
-               [WebSysDescription("The style applied to alternating items.")]
+               [NotifyParentProperty (true)]
+               [WebCategory ("Style")]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to alternating items.")]
                public virtual TableItemStyle AlternatingItemStyle {
                        get {
                                if (alternatingItemStyle == null) {
@@ -81,18 +80,19 @@ namespace System.Web.UI.WebControls
                        }
                }
 
-               [Browsable(false)]
-               [DefaultValue(null)]
-               [TemplateContainer(typeof(DataListItem))]
-               [WebSysDescription("The template used for alternating items.")]
+               [Browsable (false)]
+               [DefaultValue (null)]
+               [TemplateContainer (typeof (DataListItem))]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The template used for alternating items.")]
                public virtual ITemplate AlternatingItemTemplate {
                        get { return alternatingItemTemplate; }
                        set { alternatingItemTemplate = value; }
                }
 
-               [DefaultValue(-1)]
-               [WebCategory("Misc")]
-               [WebSysDescription("The index of the item shown in edit mode.")]
+               [DefaultValue (-1)]
+               [WebCategory ("Misc")]
+               [WebSysDescription ("The index of the item shown in edit mode.")]
                public virtual int EditItemIndex {
                        get {
                                object o = ViewState ["EditItemIndex"];
@@ -105,11 +105,12 @@ namespace System.Web.UI.WebControls
                        set { ViewState ["EditItemIndex"] = value; }
                }
 
-               [DefaultValue(null)]
+               [DefaultValue (null)]
                [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
-               [NotifyParentProperty(true)]
-               [WebCategory("Style")]
-               [WebSysDescription("The style applied to items in edit mode.")]
+               [NotifyParentProperty (true)]
+               [WebCategory ("Style")]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to items in edit mode.")]
                public virtual TableItemStyle EditItemStyle {
                        get {
                                if (editItemStyle == null) {
@@ -122,11 +123,19 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DefaultValue (null)]
+               [TemplateContainer (typeof (DataListItem))]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The template used for items in edit mode.")]
                public virtual ITemplate EditItemTemplate {
                        get { return editItemTemplate; }
                        set { editItemTemplate = value; }
                }
 
+
+               [DefaultValue (false), WebCategory ("Misc")]
+               [WebSysDescription ("Extract rows in the template.")]
                public virtual bool ExtractTemplateRows {
                        get {
                                object o = ViewState ["ExtractTemplateRows"];
@@ -139,6 +148,12 @@ namespace System.Web.UI.WebControls
                        set { ViewState ["ExtractTemplateRows"] = value; }
                }
 
+               [DefaultValue (null)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [NotifyParentProperty (true)]
+               [WebCategory ("Style")]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the footer.")]
                public virtual TableItemStyle FooterStyle {
                        get {
                                if (footerStyle == null) {
@@ -151,16 +166,28 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DefaultValue (null)]
+               [TemplateContainer (typeof (DataListItem))]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The template used for the footer.")]
                public virtual ITemplate FooterTemplate {
                        get { return footerTemplate; }
                        set { footerTemplate = value; }
                }
 
+               [DefaultValue (typeof (GridLines), "None")]
                public override GridLines GridLines {
                        get { return base.GridLines; }
                        set { base.GridLines = value; }
                }
 
+               [DefaultValue (null)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [NotifyParentProperty (true)]
+               [WebCategory ("Style")]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to the header.")]
                public virtual TableItemStyle HeaderStyle {
                        get {
                                if (headerStyle == null) {
@@ -173,11 +200,19 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DefaultValue (null)]
+               [TemplateContainer (typeof (DataListItem))]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The template used for the header.")]
                public virtual ITemplate HeaderTemplate {
                        get { return headerTemplate; }
                        set { headerTemplate = value; }
                }
 
+               [Browsable (false)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("A colletion containing all items.")]
                public virtual DataListItemCollection Items {
                        get {
                                if (items == null) {
@@ -192,6 +227,12 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (null)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [NotifyParentProperty (true)]
+               [WebCategory ("Style")]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to items.")]
                public virtual TableItemStyle ItemStyle {
                        get {
                                if (itemStyle == null) {
@@ -204,11 +245,19 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DefaultValue (null)]
+               [TemplateContainer (typeof (DataListItem))]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The template used for items.")]
                public virtual ITemplate ItemTemplate {
                        get { return itemTemplate; }
                        set { itemTemplate = value; }
                }
 
+
+               [DefaultValue (0), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The number of columns that should be used.")]
                public virtual int RepeatColumns {
                        get {
                                object o = ViewState ["RepeatColumns"];
@@ -219,12 +268,14 @@ namespace System.Web.UI.WebControls
                        }
                        set {
                                if (value < 0)
-                                       throw new ArgumentOutOfRangeException ("value");
+                                       throw new ArgumentOutOfRangeException ("value", "RepeatColumns value has to be 0 for 'not set' or > 0.");
 
                                ViewState ["RepeatColumns"] = value;
                        }
                }
 
+               [DefaultValue (typeof (RepeatDirection), "Vertical"), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("Which direction should be used when filling the columns.")]
                public virtual RepeatDirection RepeatDirection {
                        get {
                                object o = ViewState ["RepeatDirection"];
@@ -235,12 +286,14 @@ namespace System.Web.UI.WebControls
                        }
                        set {
                                if (!Enum.IsDefined (typeof (RepeatDirection), value))
-                                       throw new ArgumentException ("value");
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");
 
                                ViewState ["RepeatDirection"] = value;
                        }
                }
 
+               [DefaultValue (typeof (RepeatLayout), "Table"), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The type of layout - mechanism that is used.")]
                public virtual RepeatLayout RepeatLayout {
                        get {
                                object o = ViewState ["RepeatLayout"];
@@ -251,12 +304,14 @@ namespace System.Web.UI.WebControls
                        }
                        set {
                                if (!Enum.IsDefined (typeof (RepeatLayout), value))
-                                       throw new ArgumentException ("value");
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");
 
                                ViewState ["RepeatLayout"] = value;
                        }
                }
 
+               [DefaultValue (-1), Bindable (true)]
+               [WebSysDescription ("The currently selected item index number.")]
                public virtual int SelectedIndex {
                        get {
                                object o = ViewState ["SelectedIndex"];
@@ -298,6 +353,9 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The currently selected item.")]
                public virtual DataListItem SelectedItem {
                        get {
                                if (SelectedIndex == -1)
@@ -307,6 +365,12 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [DefaultValue (null)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [NotifyParentProperty (true)]
+               [WebCategory ("Style")]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style used for the currently selected item.")]
                public virtual TableItemStyle SelectedItemStyle {
                        get {
                                if (selectedItemStyle == null) {
@@ -319,11 +383,22 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DefaultValue (null)]
+               [TemplateContainer (typeof (DataListItem))]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The template used for currently selected items.")]
                public virtual ITemplate SelectedItemTemplate {
                        get { return selectedItemTemplate; }
                        set { selectedItemTemplate = value; }
                }
 
+               [DefaultValue (null)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+               [NotifyParentProperty (true)]
+               [WebCategory ("Style")]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The style applied to separators.")]
                public virtual TableItemStyle SeparatorStyle {
                        get {
                                if (separatorStyle == null) {
@@ -336,16 +411,18 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [Browsable (false)]
+               [DefaultValue (null)]
+               [TemplateContainer (typeof (DataListItem))]
+               [PersistenceMode (PersistenceMode.InnerProperty)]
+               [WebSysDescription ("The template used for separators.")]
                public virtual ITemplate SeparatorTemplate {
                        get { return separatorTemplate; }
                        set { separatorTemplate = value; }
                }
 
-               public virtual ITemplate SeparatorItemTemplate {
-                       get { return separatorItemTemplate; }
-                       set { separatorItemTemplate = value; }
-               }
-
+               [DefaultValue (true), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("Display the header for the DataList.")]
                public virtual bool ShowHeader {
                        get {
                                object o = ViewState ["ShowHeader"];
@@ -357,6 +434,8 @@ namespace System.Web.UI.WebControls
                        set { ViewState ["ShowHeader"] = value; }
                }
 
+               [DefaultValue (true), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("Display the footer for the DataList.")]
                public virtual bool ShowFooter {
                        get {
                                object o = ViewState ["ShowFooter"];
@@ -371,36 +450,50 @@ namespace System.Web.UI.WebControls
                        }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a cancel command is generated.")]
                public event DataListCommandEventHandler CancelCommand {
                        add { Events.AddHandler (CancelCommandEvent, value); }
                        remove { Events.RemoveHandler (CancelCommandEvent, value); }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a delete command is generated.")]
                public event DataListCommandEventHandler DeleteCommand {
                        add { Events.AddHandler (DeleteCommandEvent, value); }
                        remove { Events.RemoveHandler (DeleteCommandEvent, value); }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when an edit command is generated.")]
                public event DataListCommandEventHandler EditCommand {
                        add { Events.AddHandler (EditCommandEvent, value); }
                        remove { Events.RemoveHandler (EditCommandEvent, value); }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when an item command is generated.")]
                public event DataListCommandEventHandler ItemCommand {
                        add { Events.AddHandler (ItemCommandEvent, value); }
                        remove { Events.RemoveHandler (ItemCommandEvent, value); }
                }
 
+               [WebCategory ("Behavior")]
+               [WebSysDescription ("Raised when a new item is created.")]
                public event DataListItemEventHandler ItemCreated {
                        add { Events.AddHandler (ItemCreatedEvent, value); }
                        remove { Events.RemoveHandler (ItemCreatedEvent, value); }
                }
 
+               [WebCategory ("Behavior")]
+               [WebSysDescription ("Raised when a item gets data-bound.")]
                public event DataListItemEventHandler ItemDataBound {
                        add { Events.AddHandler (ItemDataBoundEvent, value); }
                        remove { Events.RemoveHandler (ItemDataBoundEvent, value); }
                }
 
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when an update command is generated.")]
                public event DataListCommandEventHandler UpdateCommand {
                        add { Events.AddHandler (UpdateCommandEvent, value); }
                        remove { Events.RemoveHandler (UpdateCommandEvent, value); }
@@ -844,7 +937,7 @@ namespace System.Web.UI.WebControls
                }
 
                bool IRepeatInfoUser.HasSeparators {
-                       get { return (separatorItemTemplate != null); }
+                       get { return (separatorTemplate != null); }
                }
 
                int IRepeatInfoUser.RepeatedItemCount {
index 6f05c7eab3565d35f76b9a0e0d0e12363a271d4b..2f9bc68bb00314381051d71e3545ed564de232a7 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     DropDownList\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- */\r
+//
+// System.Web.UI.WebControls.DropDownList.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.Collections.Specialized;\r
@@ -26,7 +24,8 @@ namespace System.Web.UI.WebControls
                public DropDownList(): base()\r
                {\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public override Color BorderColor\r
                {\r
                        get\r
@@ -38,7 +37,8 @@ namespace System.Web.UI.WebControls
                                base.BorderColor = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public override BorderStyle BorderStyle\r
                {\r
                        get\r
@@ -50,7 +50,8 @@ namespace System.Web.UI.WebControls
                                base.BorderStyle = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public override Unit BorderWidth\r
                {\r
                        get\r
@@ -62,7 +63,10 @@ namespace System.Web.UI.WebControls
                                base.BorderWidth = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (0), WebCategory ("Misc")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The index number of the currently selected ListItem.")]\r
                public override int SelectedIndex\r
                {\r
                        get\r
@@ -79,7 +83,9 @@ namespace System.Web.UI.WebControls
                                base.SelectedIndex = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [Bindable (false), EditorBrowsable (EditorBrowsableState.Never)]\r
                public override string ToolTip\r
                {\r
                        // MS ignores the tooltip for this one\r
index 1dcf22b9c7a964abeb47a80254852a9b6f31c8f9..9f0a6c1cd31f3b0468e397d0cd6e16ac670167cd 100755 (executable)
@@ -1,15 +1,15 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     FontInfo\r
- * \r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- * \r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.FontInfo.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (c) 2002 Ximian, Inc. (http://www.ximian.com)
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.Text;\r
@@ -40,7 +40,10 @@ namespace System.Web.UI.WebControls
                private FontInfo()\r
                {\r
                }\r
-               \r
+               
+               [DefaultValue (false), Bindable (true), WebCategory ("Font")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The 'bold' style of the font.")]\r
                public bool Bold\r
                {\r
                        get\r
@@ -55,7 +58,10 @@ namespace System.Web.UI.WebControls
                                infoOwner.Set(Style.FONT_BOLD);\r
                        }\r
                }\r
-               \r
+               
+               [DefaultValue (false), Bindable (true), WebCategory ("Font")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The 'italic' style of the font.")]\r
                public bool Italic\r
                {\r
                        get\r
@@ -70,7 +76,10 @@ namespace System.Web.UI.WebControls
                                infoOwner.Set(Style.FONT_ITALIC);\r
                        }\r
                }\r
-               \r
+               
+               [DefaultValue (false), Bindable (true), WebCategory ("Font")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The 'overline' style of the font.")]\r
                public bool Overline\r
                {\r
                        get\r
@@ -85,7 +94,10 @@ namespace System.Web.UI.WebControls
                                infoOwner.Set(Style.FONT_OLINE);\r
                        }\r
                }\r
-               \r
+               
+               [DefaultValue (false), Bindable (true), WebCategory ("Font")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The 'strikeout' style of the font.")]\r
                public bool Strikeout\r
                {\r
                        get\r
@@ -100,7 +112,10 @@ namespace System.Web.UI.WebControls
                                infoOwner.Set(Style.FONT_STRIKE);\r
                        }\r
                }\r
-               \r
+               
+               [DefaultValue (false), Bindable (true), WebCategory ("Font")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The 'underline' style of the font.")]\r
                public bool Underline\r
                {\r
                        get\r
@@ -115,8 +130,11 @@ namespace System.Web.UI.WebControls
                                infoOwner.Set(Style.FONT_ULINE);\r
                        }\r
                }\r
-               \r
-               //TODO: How do I check if the value is negative. FontUnit is struct not enum\r
+\r
+               //TODO: How do I check if the value is negative. FontUnit is struct not enum
+               [DefaultValue (null), Bindable (true), WebCategory ("Font")]
+               [NotifyParentProperty (true)]
+               [WebSysDescription ("The size of the font.")]\r
                public FontUnit Size\r
                {\r
                        get\r
@@ -131,7 +149,12 @@ namespace System.Web.UI.WebControls
                                infoOwner.Set(Style.FONT_SIZE);\r
                        }\r
                }\r
-               \r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Font")]
+               [NotifyParentProperty (true), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [Editor ("System.Drawing.Design.FontNameEditor, " + Consts.AssemblySystem_Drawing_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [TypeConverter (typeof (FontConverter.FontNameConverter))]
+               [WebSysDescription ("The name of the font that this control should be rendered with.")]\r
                public string Name\r
                {\r
                        get\r
@@ -153,7 +176,12 @@ namespace System.Web.UI.WebControls
                                Names = strArray;\r
                        }\r
                }\r
-               \r
+
+               [WebCategory ("Font")]
+               [NotifyParentProperty (true)]
+               [Editor ("System.Windows.Forms.Design.StringArrayEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [TypeConverter (typeof (FontNamesConverter))]
+               [WebSysDescription ("Multiple fonts that can be used to render the control.")]\r
                public string[] Names\r
                {\r
                        get\r
index 62c8dc83b094351feeab2927f709ec5261633087..3537945286b7eb97120ae535afd459359c478247 100755 (executable)
@@ -1,27 +1,28 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     HyperLink\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: gvaish@iitk.ac.in, myscripts_2001@yahoo.com\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.HyperLink.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (c) 2002 Ximian, Inc. (http://www.ximian.com)
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.Web;\r
 using System.Web.UI;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 \r
 namespace System.Web.UI.WebControls\r
 {\r
        [DefaultProperty("Text")]\r
-       //[Designer(??)]\r
        [ControlBuilder(typeof(HyperLinkControlBuilder))]\r
-       //[DataBindingHandler("??")]\r
+       [Designer("System.Web.UI.Design.WebControls.HyperLinkDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
+       [DataBindingHandler("System.Web.UI.Design.HyperLinkDataBindingHandler, " + Consts.AssemblySystem_Design)]\r
        [ParseChildren(false)]\r
        [ToolboxData("<{0}:HyperLink runat=\"server\">HyperLink</{0}:HyperLink>")]\r
        public class HyperLink: WebControl\r
@@ -31,7 +32,10 @@ namespace System.Web.UI.WebControls
                public HyperLink(): base(HtmlTextWriterTag.A)\r
                {\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [Editor ("System.Web.UI.Design.ImageUrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [WebSysDescription ("The URL to the image file.")]\r
                public virtual string ImageUrl\r
                {\r
                        get\r
@@ -46,7 +50,10 @@ namespace System.Web.UI.WebControls
                                ViewState["ImageUrl"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Navigation")]
+               [Editor ("System.Web.UI.Design.UrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [WebSysDescription ("The URL to navigate to.")]\r
                public string NavigateUrl\r
                {\r
                        get\r
@@ -61,7 +68,10 @@ namespace System.Web.UI.WebControls
                                ViewState["NavigateUrl"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Navigation")]
+               [TypeConverter (typeof (TargetConverter))]
+               [WebSysDescription ("The target frame in which the navigation target should be opened.")]\r
                public string Target\r
                {\r
                        get\r
@@ -76,7 +86,10 @@ namespace System.Web.UI.WebControls
                                ViewState["Target"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [PersistenceMode (PersistenceMode.InnerDefaultProperty)]
+               [WebSysDescription ("The text that should be shown on this HyperLink.")]\r
                public virtual string Text\r
                {\r
                        get {\r
index 9f636c97c58e5db09418300fcd8cbe69a0200863..7c6177ffbe72120f0bb34d43f3f4352c7518cadc 100644 (file)
@@ -1,15 +1,15 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     HyperLinkColumn\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- */\r
+//
+// System.Web.UI.WebControls.HyperLinkColumn.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (c) 2002 Ximian, Inc. (http://www.ximian.com)
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.ComponentModel;\r
@@ -26,7 +26,9 @@ namespace System.Web.UI.WebControls
                public HyperLinkColumn ()\r
                {\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The field that gets data-bound to the NavigateUrl.")]\r
                public virtual string DataNavigateUrlField {\r
                        get {\r
                                object o = ViewState ["DataNavigateUrlField"];\r
@@ -40,7 +42,9 @@ namespace System.Web.UI.WebControls
                                OnColumnChanged ();\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The formatting rule for the text content that gets data-bound to the NavigateUrl.")]\r
                public virtual string DataNavigateUrlFormatString {\r
                        get {\r
                                object o = ViewState ["DataNavigateUrlFormatString"];\r
@@ -54,7 +58,9 @@ namespace System.Web.UI.WebControls
                                OnColumnChanged ();\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The field that gets data-bound to the Text property.")]\r
                public virtual string DataTextField {\r
                        get {\r
                                object o = ViewState ["DataTextField"];\r
@@ -67,7 +73,9 @@ namespace System.Web.UI.WebControls
                                OnColumnChanged ();\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The formatting rule for the text content that gets data-bound to the Text property.")]\r
                public virtual string DataTextFormatString {\r
                        get {\r
                                object o = ViewState ["DataTextFormatString"];\r
@@ -81,7 +89,9 @@ namespace System.Web.UI.WebControls
                                OnColumnChanged ();\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The URL that this hyperlink links to.")]\r
                public virtual string NavigateUrl {\r
                        get {\r
                                object o = ViewState ["NavigateUrl"];\r
@@ -95,7 +105,9 @@ namespace System.Web.UI.WebControls
                                OnColumnChanged ();\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The target frame in which the NavigateUrl property should be opened.")]\r
                public virtual string Target {\r
                        get {\r
                                object o = ViewState ["Target"];\r
@@ -109,7 +121,9 @@ namespace System.Web.UI.WebControls
                                OnColumnChanged ();\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Misc")]
+               [WebSysDescription ("The Text for the hyperlink.")]\r
                public virtual string Text {\r
                        get {\r
                                object o = ViewState ["Text"];\r
index f3182ec9ce40b466ff778959c40da35ff344f8c4..bca0c268822493f0b3899e5505e5231bf081dcbb 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     Image\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.Image.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.Web;\r
@@ -24,7 +22,9 @@ namespace System.Web.UI.WebControls
                public Image(): base(HtmlTextWriterTag.Img)\r
                {\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("An alternative text that is shown if the image cannot be displayed.")]\r
                public virtual string AlternateText\r
                {\r
                        get\r
@@ -39,7 +39,8 @@ namespace System.Web.UI.WebControls
                                ViewState["AlternateText"] = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false), EditorBrowsable (EditorBrowsableState.Never)]\r
                public override bool Enabled\r
                {\r
                        get\r
@@ -51,7 +52,9 @@ namespace System.Web.UI.WebControls
                                base.Enabled = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false), EditorBrowsable (EditorBrowsableState.Never)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
                public override FontInfo Font\r
                {\r
                        get\r
@@ -59,7 +62,9 @@ namespace System.Web.UI.WebControls
                                return base.Font;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (ImageAlign), "NotSet"), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The alignment of the image.")]\r
                public virtual ImageAlign ImageAlign\r
                {\r
                        get\r
@@ -74,7 +79,10 @@ namespace System.Web.UI.WebControls
                                ViewState["ImageAlign"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [Editor ("System.Web.UI.Design.ImageUrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [WebSysDescription ("The URL to the image file.")]\r
                public virtual string ImageUrl\r
                {\r
                        get\r
index c318dd3c002b68682df4340588a3bc44c6bd3aea..b9bc9f6805593c81489e6e4cc6ffbf6012bbf2a9 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     ImageButton\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.ImageButton.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.Collections;\r
@@ -31,7 +29,9 @@ namespace System.Web.UI.WebControls
                public ImageButton(): base()\r
                {\r
                }\r
-\r
+
+               [DefaultValue (true), Bindable (false), WebCategory ("Behavior")]
+               [WebSysDescription ("Determines if validation is performed when clicked.")]\r
                public bool CausesValidation\r
                {\r
                        get\r
@@ -46,7 +46,9 @@ namespace System.Web.UI.WebControls
                                ViewState["CausesValidation"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+               [WebSysDescription ("An argument for the Command of this control.")]\r
                public string CommandArgument\r
                {\r
                        get\r
@@ -61,7 +63,9 @@ namespace System.Web.UI.WebControls
                                ViewState["CommandArgument"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Behavior")]
+               [WebSysDescription ("The name of the Command of this control.")]\r
                public string CommandName\r
                {\r
                        get\r
@@ -84,7 +88,9 @@ namespace System.Web.UI.WebControls
                                return HtmlTextWriterTag.Input;\r
                        }\r
                }\r
-\r
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when the LinkButton is clicked.")]\r
                public event ImageClickEventHandler Click\r
                {\r
                        add\r
@@ -96,7 +102,9 @@ namespace System.Web.UI.WebControls
                                Events.RemoveHandler(ClickEvent, value);\r
                        }\r
                }\r
-\r
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a LinkButton Command is executed.")]\r
                public event CommandEventHandler Command\r
                {\r
                        add\r
index b7669568293473678320ab4b5d3ee5c99d4d1795..0f7afa43778063d6f4663381f216b8ec156a4a19 100644 (file)
@@ -1,28 +1,26 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     Label\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.Label.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
 using System;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 using System.Web;\r
 using System.Web.UI;\r
 \r
 namespace System.Web.UI.WebControls\r
 {\r
        [DefaultProperty("Text")]\r
-       //[Designer("??")]\r
-       //Currently mono does not handle Type in attributes\r
+       [Designer("System.Web.UI.Design.WebControls.LabelDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
+       [DataBindingHandler("System.Web.UI.Design.TextDataBindingHandler, " + Consts.AssemblySystem_Design)]\r
        [ControlBuilder(typeof(LabelControlBuilder))] \r
-       //[DataBindingHandler("??")]\r
        [ParseChildren(false)]\r
        [ToolboxData("<{0}:Label runat=\"server\">Label</{0}:Label>")]\r
        public class Label : WebControl\r
@@ -34,7 +32,10 @@ namespace System.Web.UI.WebControls
                internal Label (HtmlTextWriterTag tagKey) : base (tagKey)\r
                {\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [PersistenceMode (PersistenceMode.InnerDefaultProperty)]
+               [WebSysDescription ("The text that should be shown on this Label.")]\r
                public virtual string Text\r
                {\r
                        get {\r
index 485d490b64488eefd58f53645d72dcdeaaf42ed2..a779ebe259c984427f79df4f5cb40663bfd5158a 100644 (file)
@@ -1,28 +1,27 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     LinkButton\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.LinkButton.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.Web;\r
 using System.Web.UI;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 \r
 namespace System.Web.UI.WebControls\r
 {\r
        [DefaultEvent("Click")]\r
        [DefaultProperty("Text")]\r
-       //[Designer("??")]\r
        [ControlBuilder(typeof(LinkButtonControlBuilder))]\r
-       //[DataBindingHandler("??")]\r
+       [Designer("System.Web.UI.Design.WebControls.LinkButtonDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
+       [DataBindingHandler("System.Web.UI.Design.TextDataBindingHandler, " + Consts.AssemblySystem_Design)]\r
        [ParseChildren(false)]\r
        [ToolboxData("<{0}:LinkButton runat=\"server\">LinkButton</{0}:LinkButton>")]\r
        public class LinkButton : WebControl, IPostBackEventHandler\r
@@ -33,7 +32,9 @@ namespace System.Web.UI.WebControls
                public LinkButton () : base (HtmlTextWriterTag.A)\r
                {\r
                }\r
-\r
+
+               [DefaultValue (true), Bindable (false), WebCategory ("Behavior")]
+               [WebSysDescription ("Determines if validation is performed when clicked.")]\r
                public bool CausesValidation\r
                {\r
                        get {\r
@@ -43,7 +44,9 @@ namespace System.Web.UI.WebControls
 \r
                        set { ViewState ["CausesValidation"] = value; }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+               [WebSysDescription ("An argument for the Command of this control.")]\r
                public string CommandArgument\r
                {\r
                        get {\r
@@ -53,7 +56,9 @@ namespace System.Web.UI.WebControls
 \r
                        set { ViewState ["CommandArgument"] = value; }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Behavior")]
+               [WebSysDescription ("The name of the Command of this control.")]\r
                public string CommandName\r
                {\r
                        get {\r
@@ -63,7 +68,10 @@ namespace System.Web.UI.WebControls
 \r
                        set { ViewState ["CommandName"] = value; }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [PersistenceMode (PersistenceMode.InnerDefaultProperty)]
+               [WebSysDescription ("The text that should be shown on this LinkButton.")]\r
                public virtual string Text\r
                {\r
                        get {\r
@@ -73,13 +81,17 @@ namespace System.Web.UI.WebControls
 \r
                        set { ViewState ["Text"] = value; }\r
                }\r
-\r
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when the LinkButton is clicked.")]\r
                public event EventHandler Click\r
                {\r
                        add { Events.AddHandler(ClickEvent, value); }\r
                        remove { Events.RemoveHandler(ClickEvent, value); }\r
                }\r
-\r
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a LinkButton Command is executed.")]\r
                public event CommandEventHandler Command\r
                {\r
                        add { Events.AddHandler(CommandEvent, value); }\r
index 5548f0da08358609d54c6b342d2facbbfa30c77f..7f704459c5fa439225c8f336d74382c827576acc 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     ListBox\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- */\r
+//
+// System.Web.UI.WebControls.ListBox.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.Drawing;\r
@@ -28,25 +26,31 @@ namespace System.Web.UI.WebControls
                public ListBox () : base ()\r
                {\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public override Color BorderColor\r
                {\r
                        get { return base.BorderColor; }\r
                        set { base.BorderColor = value; }\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public override BorderStyle BorderStyle\r
                {\r
                        get { return base.BorderStyle; }\r
                        set { base.BorderStyle = value; }\r
                }\r
-\r
+
+               [Browsable (false)]\r
                public override Unit BorderWidth\r
                {\r
                        get { return base.BorderWidth; }\r
                        set { base.BorderWidth = value; }\r
                }\r
-\r
+
+
+               [DefaultValue (4), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The number of rows displayed by the control.")]\r
                public virtual int Rows\r
                {\r
                        get {\r
@@ -56,12 +60,14 @@ namespace System.Web.UI.WebControls
 \r
                        set {\r
                                if (value < 1 || value > 2000)\r
-                                       throw new ArgumentOutOfRangeException ();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Rows value has to be >= 0 and <= 2000.");\r
 \r
                                ViewState ["Rows"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (ListSelectionMode), "Single"), WebCategory ("Behavior")]
+               [WebSysDescription ("The mode describing how the entries can be selected.")]\r
                public virtual ListSelectionMode SelectionMode\r
                {\r
                        get\r
@@ -72,11 +78,13 @@ namespace System.Web.UI.WebControls
                        set\r
                        {\r
                                if (!Enum.IsDefined (typeof (ListSelectionMode), value))\r
-                                       throw new ArgumentException ();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                ViewState ["SelectionMode"] = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [Bindable (false), EditorBrowsable (EditorBrowsableState.Never)]\r
                public override string ToolTip\r
                {\r
                        get { return String.Empty; }\r
index 0e96e9805e9cbb1340f8224158b321618e1256ce..4b2913d3c8cbf6f2b2ab1c5d7f30c431294e5eaa 100644 (file)
@@ -1,19 +1,18 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     ListControl\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.ListControl.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
 using System;\r
 using System.Collections;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 using System.Web;\r
 using System.Web.UI;\r
 using System.Web.Util;\r
@@ -22,8 +21,8 @@ namespace System.Web.UI.WebControls
 {\r
        [DefaultEvent("SelectedIndexChanged")]\r
        [DefaultProperty("DataSource")]\r
-       //[Designer("??")]\r
-       //[DataBindingHandler("??")]\r
+       [Designer ("System.Web.UI.Design.WebControls.ListControlDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
+       [DataBindingHandler("System.Web.UI.Design.ListControlDataBindingHandler, " + Consts.AssemblySystem_Design)]\r
        [ParseChildren(true, "Items")]\r
        public abstract class ListControl: WebControl\r
        {\r
@@ -37,7 +36,9 @@ namespace System.Web.UI.WebControls
                public ListControl(): base(HtmlTextWriterTag.Select)\r
                {\r
                }\r
-\r
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when the selected index entry has changed.")]\r
                public event EventHandler SelectedIndexChanged\r
                {\r
                        add\r
@@ -49,7 +50,9 @@ namespace System.Web.UI.WebControls
                                Events.RemoveHandler(SelectedIndexChangedEvent, value);\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (false), WebCategory ("Behavior")]
+               [WebSysDescription ("The control automatically posts back after changing the text.")]\r
                public virtual bool AutoPostBack\r
                {\r
                        get\r
@@ -64,7 +67,9 @@ namespace System.Web.UI.WebControls
                                ViewState["AutoPostBack"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Data")]
+               [WebSysDescription ("The name of the table that is used for binding when a DataSource is specified.")]\r
                public virtual string DataMember\r
                {\r
                        get\r
@@ -79,7 +84,11 @@ namespace System.Web.UI.WebControls
                                ViewState["DataMember"] = value;\r
                        }\r
                }\r
-\r
+
+
+               [DefaultValue (null), Bindable (true), WebCategory ("Data")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The DataSource that is used for data-binding.")]\r
                public virtual object DataSource\r
                {\r
                        get\r
@@ -99,7 +108,9 @@ namespace System.Web.UI.WebControls
                                throw new ArgumentException(HttpRuntime.FormatResourceString(ID, "Invalid DataSource Type"));\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Data")]
+               [WebSysDescription ("The field in the datatable that provides the text entry.")]\r
                public virtual string DataTextField\r
                {\r
                        get\r
@@ -114,7 +125,9 @@ namespace System.Web.UI.WebControls
                                ViewState["DataTextField"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Data")]
+               [WebSysDescription ("Specifies a formatting rule for the texts that are returned.")]\r
                public virtual string DataTextFormatString\r
                {\r
                        get\r
@@ -129,7 +142,9 @@ namespace System.Web.UI.WebControls
                                ViewState["DataTextFormatString"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Data")]
+               [WebSysDescription ("The field in the datatable that provides the entry value.")]\r
                public virtual string DataValueField\r
                {\r
                        get\r
@@ -144,7 +159,10 @@ namespace System.Web.UI.WebControls
                                ViewState["DataValueField"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), MergableProperty (false), WebCategory ("Misc")]
+               [PersistenceMode (PersistenceMode.InnerDefaultProperty)]
+               [WebSysDescription ("A collection of all items contained in this list.")]\r
                public virtual ListItemCollection Items\r
                {\r
                        get\r
@@ -160,7 +178,10 @@ namespace System.Web.UI.WebControls
                                return items;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (0), Bindable (true), WebCategory ("Misc")]
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The index number of the currently selected ListItem.")]\r
                public virtual int SelectedIndex\r
                {\r
                        get {\r
@@ -181,7 +202,10 @@ namespace System.Web.UI.WebControls
                                        Items [value].Selected = true;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), WebCategory ("Misc")]
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The currently selected ListItem.")]\r
                public virtual ListItem SelectedItem\r
                {\r
                        get\r
@@ -194,7 +218,10 @@ namespace System.Web.UI.WebControls
                        }\r
                }\r
 \r
-#if NET_1_1\r
+#if NET_1_1
+               [DefaultValue (""), Bindable (true), WebCategory ("Misc")]
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The value of the currently selected ListItem.")]\r
                public virtual string SelectedValue {\r
                        get {\r
                                int idx = SelectedIndex;\r
index 44bbe9cbf1cb55727f6caf468656a1041c104cde..069188bec153f2542b6452a7fe7d62ac81c207fa 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     ListItem\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.ListItem.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
 using System;\r
 using System.Collections;\r
@@ -50,7 +48,8 @@ namespace System.Web.UI.WebControls
                {\r
                        return new ListItem(text);\r
                }\r
-\r
+
+               [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
                public AttributeCollection Attributes\r
                {\r
                        get\r
@@ -60,7 +59,8 @@ namespace System.Web.UI.WebControls
                                return attributes;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (false)]\r
                public bool Selected\r
                {\r
                        get {\r
@@ -83,7 +83,9 @@ namespace System.Web.UI.WebControls
                                dirty_v = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue ("")]
+               [PersistenceMode (PersistenceMode.EncodedInnerDefaultProperty)]\r
                public string Text\r
                {\r
                        get\r
@@ -105,7 +107,8 @@ namespace System.Web.UI.WebControls
                                        dirty_t = true;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue ("")]\r
                public string Value\r
                {\r
                        get {\r
index a43de11e8d7c3f635f7b0230d376255a583edb4e..3fdf3a8cb7c4417b96142e657fe0fd50c2fb8a7a 100644 (file)
@@ -19,8 +19,8 @@ using System.ComponentModel;
 using System.Reflection;\r
 \r
 namespace System.Web.UI.WebControls\r
-{\r
-       //[Editor("??", typeof(Design.WebControls.ListItemCollectionEditor))]\r
+{
+       [Editor ("System.Web.UI.Design.WebControls.ListItemsCollectionEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]\r
        public sealed class ListItemCollection : IList, ICollection, IEnumerable, IStateManager\r
        {\r
                private ArrayList items;\r
index a2d4db5cc9ea7a93910f6f57aa22cab9617614be..da366cbc986b6bea7e4a5dfa5e9667bda9d75e85 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     Literal\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.Literal.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//\r
 \r
 using System;\r
 using System.Web;\r
@@ -20,13 +18,15 @@ namespace System.Web.UI.WebControls
 {\r
        [DefaultProperty("Text")]\r
        [ControlBuilder(typeof(LiteralControlBuilder))]\r
-       //[DataBindingHandler("??")]\r
+       [DataBindingHandler("System.Web.UI.Design.TextDataBindingHandler, " + Consts.AssemblySystem_Design)]\r
        public class Literal : Control\r
        {\r
                public Literal () : base ()\r
                {\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The text for the literal WebControl.")]\r
                public string Text\r
                {\r
                        get {\r
index 82c7ea11d37ebc2212b99d95b14aa6628dd164d3..7d83c647465bcbe3e4cd498e41ca84e0f1eeb793 100644 (file)
@@ -1,24 +1,23 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     Panel\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- */\r
+//
+// System.Web.UI.WebControls.Panel.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
 using System;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 using System.Web;\r
 using System.Web.UI;\r
 \r
 namespace System.Web.UI.WebControls\r
 {\r
-       //[Designer("??")]\r
+       [Designer ("System.Web.UI.Design.WebControls.PanelDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
        [ParseChildren(false)]\r
        [PersistChildren(true)]\r
        [ToolboxData("<{0}:Panel runat=\"server\">Panel</{0}:Panel>")]\r
@@ -27,7 +26,10 @@ namespace System.Web.UI.WebControls
                public Panel(): base(HtmlTextWriterTag.Div)\r
                {\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+               [Editor ("System.Web.UI.Design.ImageUrlEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [WebSysDescription ("An Url specifying the background image for the panel.")]\r
                public virtual string BackImageUrl\r
                {\r
                        get\r
@@ -42,7 +44,9 @@ namespace System.Web.UI.WebControls
                                ViewState["BackImageUrl"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (HorizontalAlign), "NotSet"), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The horizonal alignment of the panel.")]\r
                public virtual HorizontalAlign HorizontalAlign\r
                {\r
                        get\r
@@ -56,12 +60,14 @@ namespace System.Web.UI.WebControls
                        {\r
                                if(!Enum.IsDefined(typeof(HorizontalAlign), value))\r
                                {\r
-                                       throw new ArgumentException();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                }\r
                                ViewState["HorizontalAlign"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (true), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("Determines if the content wraps at line-end.")]\r
                public virtual bool Wrap\r
                {\r
                        get\r
index c999695a8aa0afd93afa00cb44fca7f586277577..ad1fbe1b7387c8052e7d69e351f37b1b9d582ccd 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     RadioButton\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2001)\r
- */\r
+//
+// System.Web.UI.WebControls.RadioButton.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
 using System;\r
 using System.Collections;\r
@@ -17,17 +15,20 @@ using System.Collections.Specialized;
 using System.Globalization;\r
 using System.Web;\r
 using System.Web.UI;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 \r
 namespace System.Web.UI.WebControls\r
 {\r
-       //[Designer("??")]\r
+       [Designer ("System.Web.UI.Design.WebControls.CheckBoxDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
        public class RadioButton : CheckBox, IPostBackDataHandler\r
        {\r
                public RadioButton () : base ()\r
                {\r
-               }\r
+               }
 \r
+               [DefaultValue (""), WebCategory ("Behavior")]
+               [WebSysDescription ("The name of the group that this control belongs to.")]\r
                public virtual string GroupName\r
                {\r
                        get {\r
index c1f0ece409442085d49637f9bf0384c73fa2aba1..cf54883a943069b9f3cd2530e47411f2ccb37561 100644 (file)
@@ -1,15 +1,13 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     RadioButtonList\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  95%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- */\r
+//
+// System.Web.UI.WebControls.RadioButtonList.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
 using System;\r
 using System.Collections.Specialized;\r
@@ -30,7 +28,9 @@ namespace System.Web.UI.WebControls
                {\r
                        selectionIndexChanged = false;\r
                }\r
-\r
+
+               [DefaultValue (-1), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The border left within a RadioButton.")]\r
                public virtual int CellPadding\r
                {\r
                        get\r
@@ -41,12 +41,15 @@ namespace System.Web.UI.WebControls
                                }\r
                                return -1;\r
                        }\r
-                       set\r
-                       {\r
+                       set {
+                               if (value < -1)
+                                       throw new ArgumentOutOfRangeException ("value", "CellPadding value has to be -1 for 'not set' or > -1.");\r
                                ((TableStyle)ControlStyle).CellPadding = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (-1), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The border left between RadioButtons.")]\r
                public virtual int CellSpacing\r
                {\r
                        get\r
@@ -57,12 +60,15 @@ namespace System.Web.UI.WebControls
                                }\r
                                return -1;\r
                        }\r
-                       set\r
-                       {\r
+                       set {
+                               if (value < -1)
+                                       throw new ArgumentOutOfRangeException ("value", "CellSpacing value has to be -1 for 'not set' or > -1.");\r
                                ((TableStyle)ControlStyle).CellSpacing = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (0), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The number of columns that should be used to display the RadioButtons.")]\r
                public virtual int RepeatColumns\r
                {\r
                        get\r
@@ -72,14 +78,15 @@ namespace System.Web.UI.WebControls
                                        return (int)o;\r
                                return 0;\r
                        }\r
-                       set\r
-                       {\r
-                               if(value < 0)\r
-                                       throw new ArgumentOutOfRangeException("value");\r
+                       set {\r
+                               if (value < 0)\r
+                                       throw new ArgumentOutOfRangeException ("value", "RepeatColumns value has to be 0 for 'not set' or > 0.");\r
                                ViewState["RepeatColumns"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (RepeatDirection), "Vertical"), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The direction that is followed when doing the layout.")]\r
                public virtual RepeatDirection RepeatDirection\r
                {\r
                        get\r
@@ -92,11 +99,13 @@ namespace System.Web.UI.WebControls
                        set\r
                        {\r
                                if(!Enum.IsDefined(typeof(RepeatDirection), value))\r
-                                       throw new ArgumentException();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                ViewState["RepeatDirection"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (RepeatLayout), "Table"), Bindable (true), WebCategory ("Layout")]
+               [WebSysDescription ("The method used to create the layout.")]\r
                public virtual RepeatLayout RepeatLayout\r
                {\r
                        get\r
@@ -109,11 +118,13 @@ namespace System.Web.UI.WebControls
                        set\r
                        {\r
                                if(!Enum.IsDefined(typeof(RepeatLayout), value))\r
-                                       throw new ArgumentException();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                ViewState["RepeatLayout"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (typeof (TextAlign), "Right"), Bindable (true), WebCategory ("Appearance")]
+               [WebSysDescription ("The alignment of the RadioButton text.")]\r
                public virtual TextAlign TextAlign\r
                {\r
                        get\r
@@ -126,7 +137,7 @@ namespace System.Web.UI.WebControls
                        set\r
                        {\r
                                if(!Enum.IsDefined(typeof(TextAlign), value))\r
-                                       throw new ArgumentException();\r
+                                       throw new ArgumentOutOfRangeException ("value", "Only valid enumeration members are allowed");\r
                                ViewState["TextAlign"] = value;\r
                        }\r
                }\r
index 7d99a85611a07a23b3f4f9351cbe7e76200784be..c4289e5fa3b62d53b782f11e0c2ce8cb49f7f830 100644 (file)
@@ -1,17 +1,16 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     RangeValidator\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- */\r
+//
+// System.Web.UI.WebControls.RangeValidator.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
-using System;\r
+using System;
+using System.ComponentModel;\r
 using System.Web;\r
 using System.Web.UI;\r
 using System.Xml;\r
@@ -25,7 +24,9 @@ namespace System.Web.UI.WebControls
                public RangeValidator(): base()\r
                {\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+               [WebSysDescription ("The maximum value that the validated control can be assigned.")]\r
                public string MaximumValue\r
                {\r
                        get\r
@@ -42,7 +43,9 @@ namespace System.Web.UI.WebControls
                                ViewState["MaximumValue"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+               [WebSysDescription ("The minimum value that the validated control can be assigned.")]\r
                public string MinimumValue\r
                {\r
                        get\r
index dd2ee91de64b978ac552aebd26e4cc45139c7e1c..c4bec1016e1196e1ebe91fdb51b0fade27c63167 100644 (file)
@@ -1,17 +1,16 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     RegularExpressionValidator\r
- *\r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- */\r
+//
+// System.Web.UI.WebControls.RegularExpressionValidator.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
-using System;\r
+using System;
+using System.ComponentModel;\r
 using System.Web;\r
 using System.Web.UI;\r
 using System.Text.RegularExpressions;\r
@@ -26,7 +25,10 @@ namespace System.Web.UI.WebControls
                public RegularExpressionValidator(): base()\r
                {\r
                }\r
-\r
+
+               [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+               [Editor ("System.Web.UI.Design.WebControls.RegexTypeEditor, " + Consts.AssemblySystem_Design, typeof (System.Drawing.Design.UITypeEditor))]
+               [WebSysDescription ("A regular expression that is used to validate.")]\r
                public string ValidationExpression\r
                {\r
                        get\r
index d5362c97fa7a8e06ae7be6be7c81b7f4614dae01..908dbb217aafe53933bf4fac999a1e06aa221c32 100644 (file)
@@ -1,29 +1,29 @@
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Class:     Repeater\r
- *\r
- * Author:  Gaurav Vaish, Gonzalo Paniagua (gonzalo@ximian.com)\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- *\r
- * (C) Gaurav Vaish (2002)\r
- * (c) 2002 Ximian, Inc. (http://www.ximian.com)\r
- */\r
+//
+// System.Web.UI.WebControls.Repeater.cs
+//
+// Authors:
+//   Gaurav Vaish (gvaish@iitk.ac.in)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (c) 2002 Ximian, Inc. (http://www.ximian.com)
+// (C) Gaurav Vaish (2002)
+// (C) 2003 Andreas Nahr
+//
 \r
 using System;\r
 using System.Collections;\r
 using System.Web;\r
 using System.Web.UI;\r
 using System.Web.Util;\r
-using System.ComponentModel;\r
+using System.ComponentModel;
+using System.ComponentModel.Design;\r
 \r
 namespace System.Web.UI.WebControls\r
 {\r
        [DefaultEvent("ItemCommand")]\r
        [DefaultProperty("DataSource")]\r
-       //[Designer("??")]\r
+       [Designer ("System.Web.UI.Design.WebControls.RepeaterDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]\r
        [ParseChildren(true)]\r
        [PersistChildren(false)]\r
        public class Repeater : Control, INamingContainer\r
@@ -47,7 +47,9 @@ namespace System.Web.UI.WebControls
                public Repeater(): base()\r
                {\r
                }\r
-\r
+
+               [WebCategory ("Action")]
+               [WebSysDescription ("Raised when a command is executed in the DataList.")]\r
                public event RepeaterCommandEventHandler ItemCommand\r
                {\r
                        add\r
@@ -59,7 +61,9 @@ namespace System.Web.UI.WebControls
                                Events.RemoveHandler(ItemCommandEvent, value);\r
                        }\r
                }\r
-\r
+
+               [WebCategory ("Behavior")]
+               [WebSysDescription ("Raised when an item gets created.")]\r
                public event RepeaterItemEventHandler ItemCreated\r
                {\r
                        add\r
@@ -71,7 +75,9 @@ namespace System.Web.UI.WebControls
                                Events.RemoveHandler(ItemCreatedEvent, value);\r
                        }\r
                }\r
-\r
+
+               [WebCategory ("Behavior")]
+               [WebSysDescription ("Raised when an item gets data-bound.")]\r
                public event RepeaterItemEventHandler ItemDataBound\r
                {\r
                        add\r
@@ -83,7 +89,10 @@ namespace System.Web.UI.WebControls
                                Events.RemoveHandler(ItemDataBoundEvent, value);\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), Browsable (false), PersistenceMode (PersistenceMode.InnerProperty)]
+               [TemplateContainer (typeof (RepeaterItem))]
+               [WebSysDescription ("The template that is used to create an alternating item.")]\r
                public virtual ITemplate AlternatingItemTemplate\r
                {\r
                        get\r
@@ -104,7 +113,9 @@ namespace System.Web.UI.WebControls
                                return base.Controls;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (""), WebCategory ("Data")]
+               [WebSysDescription ("The name of the table that is used for binding when a DataSource is specified.")]\r
                public virtual string DataMember\r
                {\r
                        get\r
@@ -121,7 +132,10 @@ namespace System.Web.UI.WebControls
                                ViewState["DataMember"] = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), Bindable (true), WebCategory ("Data")]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("The DataSource that is used for data-binding.")]\r
                public virtual object DataSource\r
                {\r
                        get\r
@@ -133,7 +147,10 @@ namespace System.Web.UI.WebControls
                                dataSource = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), Browsable (false), PersistenceMode (PersistenceMode.InnerProperty)]
+               [TemplateContainer (typeof (RepeaterItem))]
+               [WebSysDescription ("The template that is used to create a footer.")]\r
                public virtual ITemplate FooterTemplate\r
                {\r
                        get\r
@@ -145,7 +162,10 @@ namespace System.Web.UI.WebControls
                                footerTemplate = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), Browsable (false), PersistenceMode (PersistenceMode.InnerProperty)]
+               [TemplateContainer (typeof (RepeaterItem))]
+               [WebSysDescription ("The template that is used to create a header.")]\r
                public virtual ITemplate HeaderTemplate\r
                {\r
                        get\r
@@ -157,7 +177,10 @@ namespace System.Web.UI.WebControls
                                headerTemplate = value;\r
                        }\r
                }\r
-\r
+
+               [Browsable (false)]
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+               [WebSysDescription ("A collection containing all items.")]\r
                public virtual RepeaterItemCollection Items\r
                {\r
                        get\r
@@ -173,7 +196,10 @@ namespace System.Web.UI.WebControls
                                return items;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), Browsable (false), PersistenceMode (PersistenceMode.InnerProperty)]
+               [TemplateContainer (typeof (RepeaterItem))]
+               [WebSysDescription ("The template that is used to create an item.")]\r
                public virtual ITemplate ItemTemplate\r
                {\r
                        get\r
@@ -185,7 +211,10 @@ namespace System.Web.UI.WebControls
                                itemTemplate = value;\r
                        }\r
                }\r
-\r
+
+               [DefaultValue (null), Browsable (false), PersistenceMode (PersistenceMode.InnerProperty)]
+               [TemplateContainer (typeof (RepeaterItem))]
+               [WebSysDescription ("The template that is used to create a seperator.")]\r
                public virtual ITemplate SeparatorTemplate\r
                {\r
                        get\r