namespace System.Web.UI.WebControls {
- public sealed class AdCreatedEventArgs : EventArgs {
+ public
+#if !NET_2_0
+ sealed
+#endif
+ class AdCreatedEventArgs : EventArgs {
private IDictionary properties;
WebControl
#endif
{
-
- protected override ControlCollection CreateControlCollection ()
- {
- return new EmptyControlCollection (this);
- }
-
#if NET_2_0
[MonoTODO]
protected internal override void OnInit (EventArgs e)
{
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
}
}
- [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();
}
#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;
}
[DefaultValue(ValidationDataType.String)]
+#if NET_2_0
+ [Themeable (false)]
+#endif
[WebSysDescription("")]
[WebCategory("Behavior")]
public ValidationDataType Type {
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
}
}
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 ("")]
}
}
+ [MonoTODO]
+ [WebSysDescription ("")]
+ [WebCategoryAttribute ("Appearance")]
+ public virtual string HeaderText {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ throw new NotImplementedException ();
+ }
+ }
+
[DefaultValueAttribute ("")]
[WebCategoryAttribute ("Behavior")]
public virtual string NullDisplayText {
OnFieldChanged ();
}
}
-
+
public override void ExtractValuesFromCell (IOrderedDictionary dictionary,
DataControlFieldCell cell, DataControlRowState rowState, bool includeReadOnly)
{
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)
{
field.ReadOnly = ReadOnly;
field.HtmlEncode = HtmlEncode;
}
+
+ [MonoTODO]
+ public override void ValidateSupportsCallback ()
+ {
+ throw new NotImplementedException ();
+ }
+
}
}
#endif
[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
[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 {
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
{
}
[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
{
}
}
+#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
{
}
[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
{
}
[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
{
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 ()
{
field.ImageUrl = ImageUrl;
field.Text = Text;
}
+
+ [MonoTODO]
+ public override void ValidateSupportsCallback ()
+ {
+ throw new NotImplementedException ();
+ }
}
}
#endif
+2005-09-01 Chris Toshok <toshok@ximian.com>
+
+ * 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 <toshok@ximian.com>
* Button.cs, ButtonField.cs, FontInfo.cs, Style.cs, Xml.cs,
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 ()
[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);
[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);
}
}
+#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);
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;
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() {
[DefaultValue("")]
[WebSysDescription ("")]
[WebCategory ("Behavior")]
+#if NET_2_0
+ [Themeable (false)]
+#endif
public string ClientValidationFunction {
get {
return ViewState.GetString("ClientValidationFunction", string.Empty);
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
[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 {