-/**
- * 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;
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
[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 {
set { advertisementFile = value; }
}
+ [Browsable (false), EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
public override FontInfo Font {
get { return base.Font; }
}
-/**\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
{\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
}\r
\r
[Browsable(true)]\r
- //[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
[WebSysDescription("BaseDataList_DataKeys")]\r
public DataKeyCollection DataKeys\r
{\r
}\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
{\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
-/**
- * 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;
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;
renderUplevel = false;
}
+ [DefaultValue (""), WebCategory ("Behavior")]
+ [TypeConverter (typeof (ValidatedControlConverter))]
+ [WebSysDescription ("The ID of the control to validate.")]
public string ControlToValidate
{
get
}
}
+ [DefaultValue (typeof (ValidatorDisplay), "Static"), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("Determines how the validator is displayed.")]
public ValidatorDisplay Display
{
get
}
}
+ [DefaultValue (true), WebCategory ("Behavior")]
+ [WebSysDescription ("Determines if client script is activated on uplevel browsers.")]
public bool EnableClientScript
{
get
}
}
+ [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("An error message that is displayed if the control validates to false.")]
public string ErrorMessage
{
get
}
}
+ [DefaultValue (null)]
public override Color ForeColor
{
get
}
}
+ [DefaultValue (true), Browsable (false), WebCategory ("Misc")]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [WebSysDescription ("Indicates if the control validated to false.")]
public bool IsValid
{
get { return isValid; }
-/**
- * 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;
}
}
+ [DefaultValue (""), WebCategory ("Misc")]
+ [WebSysDescription ("The field that this column is bound to.")]
public virtual string DataField
{
get
}
}
+ [DefaultValue (""), WebCategory ("Misc")]
+ [WebSysDescription ("A format string that is applied to the data value.")]
public virtual string DataFormatString
{
get
}
}
+ [DefaultValue (false), WebCategory ("Misc")]
+ [WebSysDescription ("Determines if the databound field can only be displayed or also edited.")]
public virtual bool ReadOnly
{
get
-/**
- * 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;
{
[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
{
{
}
+ [DefaultValue (true), Bindable (false), WebCategory ("Behavior")]
+ [WebSysDescription ("Determines if validation is performed when clicked.")]
public bool CausesValidation
{
get
}
}
+ [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+ [WebSysDescription ("An argument for the Command of this control.")]
public string CommandArgument
{
get
}
}
+ [DefaultValue (""), WebCategory ("Behavior")]
+ [WebSysDescription ("The name of the Command of this control.")]
public string CommandName
{
get
}
}
+ [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("The text that should be shown on this Button.")]
public string Text
{
get
}
}
+ [WebCategory ("Action")]
+ [WebSysDescription ("Raised when the Button is clicked.")]
public event EventHandler Click
{
add
}
}
+ [WebCategory ("Action")]
+ [WebSysDescription ("Raised when a Button Command is executed.")]
public event CommandEventHandler Command
{
add
-/**\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
}\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
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
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
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
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
-/**\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
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
{\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
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
}\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
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
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
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
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
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
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
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
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
ViewState["PrevMonthText"] = value;\r
}\r
}\r
-\r
+
+ [DefaultValue (null), Bindable (true)]
+ [WebSysDescription ("The currently selected date.")]\r
public DateTime SelectedDate\r
{\r
get\r
}\r
}\r
}\r
-\r
+
+ [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [WebSysDescription ("All currently selected dates.")]\r
public SelectedDatesCollection SelectedDates\r
{\r
get\r
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
+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
-/**
- * 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;
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();
public CheckBox(): base(HtmlTextWriterTag.Input)
{
}
-
+
+ [DefaultValue (false), WebCategory ("Behavior")]
+ [WebSysDescription ("The control automatically posts back after changing the text.")]
public virtual bool AutoPostBack
{
get {
set { ViewState ["AutoPostBack"] = value; }
}
-
+
+
+ [DefaultValue (false), Bindable (true)]
+ [WebSysDescription ("Determines if the control is checked.")]
public virtual bool Checked
{
get {
set { ViewState ["Checked"] = value; }
}
-
+
+ [DefaultValue (""), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("The text that this control displays.")]
public virtual string Text
{
get {
return true;
}
}
-
+
+
+ [DefaultValue (typeof (TextAlign), "Right"), WebCategory ("Appearance")]
+ [WebSysDescription ("The alignment of the text.")]
public virtual TextAlign TextAlign
{
get {
ViewState ["TextAlign"] = value;
}
}
-
+
+ [WebCategory ("Action")]
+ [WebSysDescription ("Raised when the control is checked or unchecked.")]
public event EventHandler CheckedChanged
{
add { Events.AddHandler (CheckedChangedEvent, value); }
-/**\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
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
((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
((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
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
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
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
-/**
-* 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
{
// Intitalize();
}
+ [DefaultValue (""), WebCategory ("Behavior")]
+ [TypeConverter (typeof (ValidatedControlConverter))]
+ [WebSysDescription ("The ID of a control that is compared.")]
public string ControlToCompare
{
get
}
}
+ [DefaultValue (typeof (ValidationCompareOperator), "Equal"), WebCategory ("Behavior")]
+ [WebSysDescription ("The operator that is used for comparison.")]
public ValidationCompareOperator Operator
{
get
}
}
+ [DefaultValue (""), Bindable (true), WebCategory ("Behavior")]
+ [WebSysDescription ("The value that is compared to.")]
public string ValueToCompare
{
get
-/**\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
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
ViewState["ClientValidationFunction"] = value;\r
}\r
}\r
-\r
+
+ [WebSysDescription ("Raised for validation on the server.")]\r
public event ServerValidateEventHandler ServerValidate\r
{\r
add\r
-/**
- * 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;
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";
{
}
+ [DefaultValue (false), WebCategory ("Paging")]
+ [WebSysDescription ("Allows custom paging.")]
public virtual bool AllowCustomPaging
{
get
}
}
+ [DefaultValue (false), WebCategory ("Paging")]
+ [WebSysDescription ("Allow using multiple pages.")]
public virtual bool AllowPaging
{
get
}
}
+ [DefaultValue (false), WebCategory ("Behavior")]
+ [WebSysDescription ("Allows the user to sort the table by clicking on column headers.")]
public virtual bool AllowSorting
{
get
}
}
+ [NotifyParentProperty (true), WebCategory ("Style")]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+ [PersistenceMode (PersistenceMode.InnerProperty)]
+ [WebSysDescription ("The style applied to alternating items.")]
public virtual TableItemStyle AlternatingItemStyle
{
get
}
}
+ [DefaultValue (true), WebCategory ("Behavior")]
+ [WebSysDescription ("Automatically generate columns at runtime for each field found in the datasource.")]
public virtual bool AutoGenerateColumns
{
get
}
}
+ [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
}
}
+ [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
}
}
+ [Browsable (false), Bindable (true)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [WebSysDescription ("The index number for the currently selected page.")]
public int CurrentPageIndex
{
get
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
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
}
}
+ [NotifyParentProperty (true), WebCategory ("Style")]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+ [PersistenceMode (PersistenceMode.InnerProperty)]
+ [WebSysDescription ("The style applied to the footer.")]
public virtual TableItemStyle FooterStyle
{
get
}
}
+ [NotifyParentProperty (true), WebCategory ("Style")]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+ [PersistenceMode (PersistenceMode.InnerProperty)]
+ [WebSysDescription ("The style applied to the header.")]
public virtual TableItemStyle HeaderStyle
{
get
}
}
+ [Browsable (false)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [WebSysDescription ("A collection containing all items.")]
public virtual DataGridItemCollection Items
{
get
}
}
+ [NotifyParentProperty (true), WebCategory ("Style")]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+ [PersistenceMode (PersistenceMode.InnerProperty)]
+ [WebSysDescription ("The style applied to items.")]
public virtual TableItemStyle ItemStyle
{
get
}
}
+ [Browsable (false)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [WebSysDescription ("The number of pages.")]
public int PageCount
{
get
}
}
+ [NotifyParentProperty (true), WebCategory ("Style")]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+ [PersistenceMode (PersistenceMode.InnerProperty)]
+ [WebSysDescription ("The style applied to the pager.")]
public virtual DataGridPagerStyle PagerStyle
{
get
}
}
+ [DefaultValue (10), WebCategory ("Paging")]
+ [WebSysDescription ("The maximum number of entries that are created per page.")]
public virtual int PageSize
{
get
}
}
+ [DefaultValue (-1), Bindable (true)]
+ [WebSysDescription ("The index number for the currently selected item.")]
public virtual int SelectedIndex
{
get
}
}
+ [Browsable (false)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [WebSysDescription ("The currently selected item.")]
public virtual DataGridItem SelectedItem
{
get
}
}
+ [NotifyParentProperty (true), WebCategory ("Style")]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
+ [PersistenceMode (PersistenceMode.InnerProperty)]
+ [WebSysDescription ("The style applied to the currently selected item.")]
public virtual TableItemStyle SelectedItemStyle
{
get
}
}
+ [DefaultValue (false), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("Determines if the footer should be shown.")]
public virtual bool ShowFooter
{
get
}
}
+ [DefaultValue (false), Bindable (true), WebCategory ("Appearance")]
+ [WebSysDescription ("Determines if the header should be shown.")]
public virtual bool ShowHeader
{
get
}
}
+ [Browsable (false)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [WebSysDescription ("The number of items that are visible.")]
public virtual int VirtualItemCount
{
get
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
}
}
+ [WebCategory ("Action")]
+ [WebSysDescription ("Raised when a delete command is generated.")]
public event DataGridCommandEventHandler DeleteCommand
{
add
}
}
+ [WebCategory ("Action")]
+ [WebSysDescription ("Raised when an edit command is generated.")]
public event DataGridCommandEventHandler EditCommand
{
add
}
}
+ [WebCategory ("Action")]
+ [WebSysDescription ("Raised when an item command is generated.")]
public event DataGridCommandEventHandler ItemCommand
{
add
}
}
+ [WebCategory ("Behavior")]
+ [WebSysDescription ("Raised when a new item is created.")]
public event DataGridItemEventHandler ItemCreated
{
add
}
}
+ [WebCategory ("Behavior")]
+ [WebSysDescription ("Raised when a item gets data-bound.")]
public event DataGridItemEventHandler ItemDataBound
{
add
}
}
+ [WebCategory ("Action")]
+ [WebSysDescription ("Raised when the currently selected page changes.")]
public event DataGridPageChangedEventHandler PageIndexChanged
{
add
}
}
+ [WebCategory ("Action")]
+ [WebSysDescription ("Raised when a sort command is generated.")]
public event DataGridSortCommandEventHandler SortCommand
{
add
}
}
+ [WebCategory ("Action")]
+ [WebSysDescription ("Raised when an update command is generated.")]
public event DataGridCommandEventHandler UpdateCommand
{
add
///<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);
-/**
- * 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;
}
}
+ [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
}
}
+ [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
}
}
+ [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
}
}
+ [DefaultValue (""), WebCategory ("Misc")]
+ [WebSysDescription ("The text within the footer of this column.")]
public virtual string FooterText
{
get
}
}
+ [DefaultValue (""), WebCategory ("Misc")]
+ [WebSysDescription ("The URL to an image that is displayed in the header of this column.")]
public virtual string HeaderImageUrl
{
get
}
}
+ [DefaultValue (""), WebCategory ("Misc")]
+ [WebSysDescription ("The text within the header of this column.")]
public virtual string HeaderText
{
get
}
}
+ [DefaultValue (""), WebCategory ("Misc")]
+ [WebSysDescription ("An expression that determines how the colum should be sorted.")]
public virtual string SortExpression
{
get
}
}
+ [DefaultValue (true), WebCategory ("Misc")]
+ [WebSysDescription ("The visibility of this column.")]
public bool Visible
{
get
* (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
this.owner = owner;\r
this.columns = columns;\r
}\r
-\r
+
+ [Browsable (false)]\r
public int Count\r
{\r
get\r
return columns.Count;\r
}\r
}\r
-\r
+
+ [Browsable (false)]\r
public bool IsReadOnly\r
{\r
get\r
return false;\r
}\r
}\r
-\r
+
+ [Browsable (false)]\r
public bool IsSynchronized\r
{\r
get\r
return false;\r
}\r
}\r
-\r
+
+ [Browsable (false)]\r
public DataGridColumn this[int index]\r
{\r
get\r
return (DataGridColumn)(columns[index]);\r
}\r
}\r
-\r
+
+ [Browsable (false)]\r
public object SyncRoot\r
{\r
get\r
-/**
- * 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;
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
}
}
+ [DefaultValue (">"), Bindable (true), WebCategory ("Misc")]
+ [NotifyParentProperty (true)]
+ [WebSysDescription ("The text for the 'next page' button.")]
public string NextPageText
{
get
}
}
+ [DefaultValue ("<"), Bindable (true), WebCategory ("Misc")]
+ [NotifyParentProperty (true)]
+ [WebSysDescription ("The text for the 'previous page' button.")]
public string PrevPageText
{
get
}
}
+ [DefaultValue (10), Bindable (true), WebCategory ("Misc")]
+ [NotifyParentProperty (true)]
+ [WebSysDescription ("The maximum number of pages to show as direct links.")]
public int PageButtonCount
{
get
}
}
+ [DefaultValue (typeof (PagerPosition), "Bottom"), Bindable (true), WebCategory ("Misc")]
+ [NotifyParentProperty (true)]
+ [WebSysDescription ("The position for the page display.")]
public PagerPosition Position
{
get
}
}
+ [DefaultValue (true), Bindable (true), WebCategory ("Misc")]
+ [NotifyParentProperty (true)]
+ [WebSysDescription ("Determines if paging functionallity is visible to the user.")]
public bool Visible
{
get
namespace System.Web.UI.WebControls
{
- public class DataGridTableInternal : Table
+ internal class DataGridTableInternal : Table
{
public DataGridTableInternal() : base()
{
-/**
- * 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";
ITemplate itemTemplate;
ITemplate selectedItemTemplate;
ITemplate separatorTemplate;
- ITemplate separatorItemTemplate;
ArrayList itemsArray;
DataListItemCollection items;
{
}
- [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) {
}
}
- [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"];
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) {
}
}
+ [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"];
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) {
}
}
+ [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) {
}
}
+ [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) {
}
}
+ [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) {
}
}
+ [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"];
}
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"];
}
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"];
}
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"];
}
}
+ [Browsable (false)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [WebSysDescription ("The currently selected item.")]
public virtual DataListItem SelectedItem {
get {
if (SelectedIndex == -1)
}
}
+ [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) {
}
}
+ [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) {
}
}
+ [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"];
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"];
}
}
+ [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); }
}
bool IRepeatInfoUser.HasSeparators {
- get { return (separatorItemTemplate != null); }
+ get { return (separatorTemplate != null); }
}
int IRepeatInfoUser.RepeatedItemCount {
-/**\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
public DropDownList(): base()\r
{\r
}\r
-\r
+
+ [Browsable (false)]\r
public override Color BorderColor\r
{\r
get\r
base.BorderColor = value;\r
}\r
}\r
-\r
+
+ [Browsable (false)]\r
public override BorderStyle BorderStyle\r
{\r
get\r
base.BorderStyle = value;\r
}\r
}\r
-\r
+
+ [Browsable (false)]\r
public override Unit BorderWidth\r
{\r
get\r
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
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
-/**\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
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
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
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
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
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
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
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
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
-/**\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
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
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
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
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
-/**\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
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
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
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
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
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
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
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
-/**\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
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
ViewState["AlternateText"] = value;\r
}\r
}\r
-\r
+
+ [Browsable (false), EditorBrowsable (EditorBrowsableState.Never)]\r
public override bool Enabled\r
{\r
get\r
base.Enabled = value;\r
}\r
}\r
-\r
+
+ [Browsable (false), EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
public override FontInfo Font\r
{\r
get\r
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
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
-/**\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
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
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
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
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
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
-/**\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
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
-/**\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
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
\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
\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
\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
\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
-/**\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
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
\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
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
-/**\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
{\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
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
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
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
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
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
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
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
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
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
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
}\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
-/**\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
{\r
return new ListItem(text);\r
}\r
-\r
+
+ [Browsable (false), DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
public AttributeCollection Attributes\r
{\r
get\r
return attributes;\r
}\r
}\r
-\r
+
+ [DefaultValue (false)]\r
public bool Selected\r
{\r
get {\r
dirty_v = value;\r
}\r
}\r
-\r
+
+ [DefaultValue ("")]
+ [PersistenceMode (PersistenceMode.EncodedInnerDefaultProperty)]\r
public string Text\r
{\r
get\r
dirty_t = true;\r
}\r
}\r
-\r
+
+ [DefaultValue ("")]\r
public string Value\r
{\r
get {\r
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
-/**\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
{\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
-/**\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
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
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
{\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
-/**\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
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
-/**\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
{\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
}\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
}\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
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
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
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
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
-/**\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
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
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
-/**\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
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
-/**\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
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
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
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
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
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
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
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
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
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
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
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