Author: toshok
Date: 2005-09-01 18:41:03 -0400 (Thu, 01 Sep 2005)
New Revision: 49303
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/AdCreatedEventArgs.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/AdRotator.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/AutoGeneratedField.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseCompareValidator.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BoundField.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/Button.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ButtonColumn.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ButtonField.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CompareValidator.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/Content.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataControlField.cs
Log:
2005-09-01 Chris Toshok <[EMAIL PROTECTED]>
* System.Web.UI.WebControls/Button.cs,
System.Web.UI.WebControls/ButtonField.cs,
System.Web.UI.WebControls/DataControlField.cs,
System.Web.UI.WebControls/BaseCompareValidator.cs,
System.Web.UI.WebControls/AutoGeneratedField.cs,
System.Web.UI.WebControls/CustomValidator.cs,
System.Web.UI.WebControls/Content.cs,
System.Web.UI.WebControls/BoundField.cs,
System.Web.UI.WebControls/AdRotator.cs,
System.Web.UI.WebControls/ButtonColumn.cs,
System.Web.UI.WebControls/CompareValidator.cs,
System.Web.UI.WebControls/AdCreatedEventArgs.cs: More corcompare
work. Stub things out, and add attributes.
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/AdCreatedEventArgs.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/AdCreatedEventArgs.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/AdCreatedEventArgs.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -33,7 +33,11 @@
namespace System.Web.UI.WebControls {
- public sealed class AdCreatedEventArgs : EventArgs {
+ public
+#if !NET_2_0
+ sealed
+#endif
+ class AdCreatedEventArgs : EventArgs {
private IDictionary properties;
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/AdRotator.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/AdRotator.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/AdRotator.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -46,12 +46,6 @@
WebControl
#endif
{
-
- protected override ControlCollection CreateControlCollection ()
- {
- return new EmptyControlCollection (this);
- }
-
#if NET_2_0
[MonoTODO]
protected internal override void OnInit (EventArgs e)
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/AutoGeneratedField.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/AutoGeneratedField.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/AutoGeneratedField.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -134,13 +134,19 @@
{
return new AutoGeneratedField ();
}
-
+
protected override void CopyProperties (DataControlField
newField)
{
base.CopyProperties (newField);
AutoGeneratedField field = (AutoGeneratedField)
newField;
field.DataType = DataType;
}
+
+ [MonoTODO]
+ protected override object GetDesignTimeValue()
+ {
+ return base.GetDesignTimeValue ();
+ }
}
}
#endif
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseCompareValidator.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseCompareValidator.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++
trunk/mcs/class/System.Web/System.Web.UI.WebControls/BaseCompareValidator.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -141,9 +141,14 @@
}
}
- [MonoTODO ("why override?")]
protected override bool DetermineRenderUplevel ()
{
+ /* presumably the CompareValidator client side
+ * code makes use of newer dom/js stuff than
+ * the rest of the validators. but ours
+ * doesn't for the moment, so let's just use
+ * our present implementation
+ */
return base.DetermineRenderUplevel();
}
@@ -204,6 +209,20 @@
#endif
}
+#if NET_2_0
+ [MonoTODO]
+ [DefaultValue (false)]
+ [Themeable (false)]
+ public bool CultureInvariantValues {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ throw new NotImplementedException ();
+ }
+ }
+#endif
+
protected static int CutoffYear {
get {
return
CultureInfo.CurrentCulture.Calendar.TwoDigitYearMax;
@@ -211,6 +230,9 @@
}
[DefaultValue(ValidationDataType.String)]
+#if NET_2_0
+ [Themeable (false)]
+#endif
[WebSysDescription("")]
[WebCategory("Behavior")]
public ValidationDataType Type {
@@ -221,6 +243,36 @@
type = value;
}
}
+
+#if NET_2_0
+ [MonoTODO]
+ public static bool CanConvert (string text,
+ ValidationDataType type,
+ bool cultureInvariant)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected static bool Compare (string leftText,
+ bool cultureInvariantLeftText,
+ string rightText,
+ bool cultureInvariantRightText,
+ ValidationCompareOperator op,
+ ValidationDataType type)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected static bool Convert (string text,
+ ValidationDataType type,
+ bool cultureInvariant,
+ out object value)
+ {
+ throw new NotImplementedException ();
+ }
+#endif
}
}
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/BoundField.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/BoundField.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/BoundField.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -45,6 +45,19 @@
public static readonly string ThisExpression = "!";
PropertyDescriptor boundProperty;
+
+ [MonoTODO]
+ [DefaultValueAttribute (false)]
+ [WebSysDescription ("")]
+ [WebCategoryAttribute ("Behavior")]
+ public virtual bool ApplyFormatInEditMode {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ throw new NotImplementedException ();
+ }
+ }
[DefaultValueAttribute (true)]
[WebSysDescription ("")]
@@ -92,6 +105,18 @@
}
}
+ [MonoTODO]
+ [WebSysDescription ("")]
+ [WebCategoryAttribute ("Appearance")]
+ public virtual string HeaderText {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ throw new NotImplementedException ();
+ }
+ }
+
[DefaultValueAttribute ("")]
[WebCategoryAttribute ("Behavior")]
public virtual string NullDisplayText {
@@ -133,7 +158,7 @@
OnFieldChanged ();
}
}
-
+
public override void ExtractValuesFromCell (IOrderedDictionary
dictionary,
DataControlFieldCell cell, DataControlRowState
rowState, bool includeReadOnly)
{
@@ -147,7 +172,14 @@
dictionary [DataField] = cell.Text;
}
}
-
+
+ [MonoTODO]
+ public override bool Initialize (bool enableSorting,
+ Control control)
+ {
+ return base.Initialize (enableSorting, control);
+ }
+
public override void InitializeCell (DataControlFieldCell cell,
DataControlCellType cellType, DataControlRowState
rowState, int rowIndex)
{
@@ -242,6 +274,13 @@
field.ReadOnly = ReadOnly;
field.HtmlEncode = HtmlEncode;
}
+
+ [MonoTODO]
+ public override void ValidateSupportsCallback ()
+ {
+ throw new NotImplementedException ();
+ }
+
}
}
#endif
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/Button.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/Button.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/Button.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -35,7 +35,12 @@
[DataBindingHandler ("System.Web.UI.Design.TextDataBindingHandler, " +
Consts.AssemblySystem_Design)]
[DefaultProperty ("Text")]
[Designer ("System.Web.UI.Design.WebControls.ButtonDesigner, " +
Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
+
+#if NET_2_0
+ [ToolboxDataAttribute ("<{0}:Button runat=\"server\"
Text=\"Button\"></{0}:Button>")]
+#else
[ToolboxDataAttribute ("<{0}:Button runat=server
Text=\"Button\"></{0}:Button>")]
+#endif
public class Button : WebControl, IPostBackEventHandler
#if NET_2_0
@@ -269,7 +274,7 @@
[DefaultValue ("")]
[Editor ("System.Web.UI.Design.UrlEditor, " +
Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " +
Consts.AssemblySystem_Drawing)]
[Themeable (false)]
- [UrlProperty]
+ [UrlProperty("*.aspx")]
[MonoTODO]
public string PostBackUrl {
get {
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ButtonColumn.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ButtonColumn.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ButtonColumn.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -33,7 +33,11 @@
public class ButtonColumn : DataGridColumn {
[DefaultValue(ButtonColumnType.LinkButton)]
+#if NET_2_0
+ [WebSysDescription("The type of button contained within the
column.")]
+#else
[Description("The type of button contained within the column.")]
+#endif
[WebCategory ("Misc")]
public virtual ButtonColumnType ButtonType
{
@@ -47,7 +51,11 @@
}
[DefaultValue("")]
+#if NET_2_0
+ [WebSysDescription("The command associated with the button.")]
+#else
[Description("The command associated with the button.")]
+#endif
[WebCategory ("Misc")]
public virtual string CommandName
{
@@ -59,8 +67,27 @@
}
}
+#if NET_2_0
+ [DefaultValue (false)]
+ [WebSysDescription("")]
+ [WebCategory ("Behavior")]
+ public virtual bool CausesValidation
+ {
+ get {
+ return ViewState.GetBool ("CausesValidation",
false);
+ }
+ set {
+ ViewState ["CausesValidation"] = value;
+ }
+ }
+#endif
+
[DefaultValue("")]
+#if NET_2_0
+ [WebSysDescription("The field bound to the text property of the
button.")]
+#else
[Description("The field bound to the text property of the
button.")]
+#endif
[WebCategory ("Misc")]
public virtual string DataTextField
{
@@ -73,7 +100,11 @@
}
[DefaultValue("")]
+#if NET_2_0
+ [WebSysDescription("The formatting applied to the value bound
to the Text property.")]
+#else
[Description("The formatting applied to the value bound to the
Text property.")]
+#endif
[WebCategory ("Misc")]
public virtual string DataTextFormatString
{
@@ -87,7 +118,12 @@
}
[DefaultValue("")]
+#if NET_2_0
+ [Localizable (true)]
+ [WebSysDescription("The text used for the button.")]
+#else
[Description("The text used for the button.")]
+#endif
[WebCategory ("Misc")]
public virtual string Text
{
@@ -98,6 +134,21 @@
ViewState ["Text"] = value;
}
}
+
+#if NET_2_0
+ [DefaultValue ("")]
+ [WebSysDescription("")]
+ [WebCategory ("Behavior")]
+ public virtual string ValidationGroup
+ {
+ get {
+ return ViewState.GetString ("ValidationGroup",
"");
+ }
+ set {
+ ViewState ["ValidationGroup"] = value;
+ }
+ }
+#endif
public override void Initialize ()
{
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ButtonField.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ButtonField.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ButtonField.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -197,6 +197,12 @@
field.ImageUrl = ImageUrl;
field.Text = Text;
}
+
+ [MonoTODO]
+ public override void ValidateSupportsCallback ()
+ {
+ throw new NotImplementedException ();
+ }
}
}
#endif
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2005-09-01 22:41:03 UTC (rev 49303)
@@ -1,5 +1,21 @@
2005-09-01 Chris Toshok <[EMAIL PROTECTED]>
+ * System.Web.UI.WebControls/Button.cs,
+ System.Web.UI.WebControls/ButtonField.cs,
+ System.Web.UI.WebControls/DataControlField.cs,
+ System.Web.UI.WebControls/BaseCompareValidator.cs,
+ System.Web.UI.WebControls/AutoGeneratedField.cs,
+ System.Web.UI.WebControls/CustomValidator.cs,
+ System.Web.UI.WebControls/Content.cs,
+ System.Web.UI.WebControls/BoundField.cs,
+ System.Web.UI.WebControls/AdRotator.cs,
+ System.Web.UI.WebControls/ButtonColumn.cs,
+ System.Web.UI.WebControls/CompareValidator.cs,
+ System.Web.UI.WebControls/AdCreatedEventArgs.cs: More corcompare
+ work. Stub things out, and add attributes.
+
+2005-09-01 Chris Toshok <[EMAIL PROTECTED]>
+
* Button.cs, ButtonField.cs, FontInfo.cs, Style.cs, Xml.cs,
CommandField.cs, HyperLinkColumn.cs, Table.cs,
RegularExpressionValidator.cs, DataGridPagerStyle.cs, Label.cs,
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CompareValidator.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/CompareValidator.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/CompareValidator.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -31,8 +31,13 @@
using System.Globalization;
using System.ComponentModel;
-namespace System.Web.UI.WebControls {
+namespace System.Web.UI.WebControls
+{
+#if NET_2_0
+ [ToolboxData("<{0}:CompareValidator runat=\"server\"
ErrorMessage=\"CompareValidator\"></{0}:CompareValidator>")]
+#else
[ToolboxData("<{0}:CompareValidator runat=server
ErrorMessage=\"CompareValidator\"></{0}:CompareValidator>")]
+#endif
public class CompareValidator : BaseCompareValidator
{
public CompareValidator ()
@@ -88,6 +93,9 @@
[TypeConverter(typeof(System.Web.UI.WebControls.ValidatedControlConverter))]
[WebSysDescription ("")]
[WebCategory ("Behavior")]
+#if NET_2_0
+ [Themeable (false)]
+#endif
public string ControlToCompare {
get {
return ViewState.GetString ("ControlToCompare",
String.Empty);
@@ -100,6 +108,9 @@
[DefaultValue(ValidationCompareOperator.Equal)]
[WebSysDescription ("")]
[WebCategory ("Behavior")]
+#if NET_2_0
+ [Themeable (false)]
+#endif
public ValidationCompareOperator Operator {
get {
return
(ValidationCompareOperator)ViewState.GetInt ("Operator",
(int)ValidationCompareOperator.Equal);
@@ -110,10 +121,15 @@
}
}
+#if !NET_2_0
[Bindable(true)]
+#endif
[DefaultValue("")]
[WebSysDescription ("")]
[WebCategory ("Behavior")]
+#if NET_2_0
+ [Themeable (false)]
+#endif
public string ValueToCompare {
get {
return ViewState.GetString ("ValueToCompare",
String.Empty);
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/Content.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/Content.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/Content.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -35,9 +35,13 @@
namespace System.Web.UI.WebControls
{
- [ToolboxDataAttribute ("<{0}:Content runat='server'></{0}:Content>")]
+ [ToolboxItem (false)]
[DesignerAttribute ("System.Web.UI.Design.WebControls.ContentDesigner,
" + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
+#if notyet
+ [ControlBuilder(typeof(ContentControlBuilderInternal))] /* XXX ew,
this is in beta2 - an internal builder? */
+#else
[ControlBuilder(typeof(ContentControlBuilder))]
+#endif
public class Content: Control, INamingContainer
{
string placeHolderId;
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -32,7 +32,11 @@
namespace System.Web.UI.WebControls {
[DefaultEvent("ServerValidate")]
+#if NET_2_0
+ [ToolboxData("<{0}:CustomValidator runat=\"server\"
ErrorMessage=\"CustomValidator\"></{0}:CustomValidator>")]
+#else
[ToolboxData("<{0}:CustomValidator runat=server
ErrorMessage=\"CustomValidator\"></{0}:CustomValidator>")]
+#endif
public class CustomValidator : BaseValidator {
#region Public Constructors
public CustomValidator() {
@@ -43,6 +47,9 @@
[DefaultValue("")]
[WebSysDescription ("")]
[WebCategory ("Behavior")]
+#if NET_2_0
+ [Themeable (false)]
+#endif
public string ClientValidationFunction {
get {
return
ViewState.GetString("ClientValidationFunction", string.Empty);
@@ -52,6 +59,20 @@
ViewState["ClientValidationFunction"] = value;
}
}
+
+#if NET_2_0
+ [MonoTODO]
+ [Themeable (false)]
+ [DefaultValue (false)]
+ public bool ValidateEmptyText {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ throw new NotImplementedException ();
+ }
+ }
+#endif
#endregion // Public Instance Properties
#region Public Instance Methods
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataControlField.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataControlField.cs
2005-09-01 21:26:25 UTC (rev 49302)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataControlField.cs
2005-09-01 22:41:03 UTC (rev 49303)
@@ -269,7 +269,7 @@
[UrlPropertyAttribute]
[DefaultValueAttribute ("")]
- [EditorAttribute ("System.Web.UI.Design.UrlEditor, " +
Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " +
Consts.AssemblySystem_Drawing)]
+ [EditorAttribute ("System.Web.UI.Design.ImageUrlEditor, " +
Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " +
Consts.AssemblySystem_Drawing)]
[WebCategoryAttribute ("Appearance")]
public virtual string HeaderImageUrl {
get {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches