eglib: checking for locale_charset function
[mono.git] / mcs / class / System.Web / System.Web.UI / HierarchicalDataSourceControl.cs
index d54215a14905a8ddfb85a8e8c7452c9607010a35..545d69fdc53a6508d4fc5242b8df50f330651d58 100644 (file)
@@ -6,7 +6,7 @@
 //     Lluis Sanchez Gual (lluis@novell.com)
 //
 //  (C) 2003 Ben Maurer
-//  (C) 2005 Novell, Inc (http://www.novell.com)
+//  (C) 2005-2010 Novell, Inc (http://www.novell.com)
 //
 
 //
@@ -30,7 +30,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 using System.Collections;
 using System.Collections.Specialized;
 using System.Text;
@@ -38,10 +37,10 @@ using System.ComponentModel;
 
 namespace System.Web.UI
 {
-       [NonVisualControlAttribute]\r
-       [DesignerAttribute ("System.Web.UI.Design.HierarchicalDataSourceDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]\r
-//     [ControlBuilderAttribute (typeof(DataSourceControlBuilder))]\r
-       [BindableAttribute (false)]\r
+       [NonVisualControlAttribute]
+       [DesignerAttribute ("System.Web.UI.Design.HierarchicalDataSourceDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
+       [ControlBuilderAttribute (typeof(DataSourceControlBuilder))]
+       [BindableAttribute (false)]
        public abstract class HierarchicalDataSourceControl : Control, IHierarchicalDataSource
        {
                static object dataSourceChanged = new object ();
@@ -50,26 +49,32 @@ namespace System.Web.UI
                {
                }
                
-               protected virtual HierarchicalDataSourceView GetHierarchicalView (string viewPath)
-               {
-                       return null;
-               }
+               protected abstract HierarchicalDataSourceView GetHierarchicalView (string viewPath);
                
                HierarchicalDataSourceView IHierarchicalDataSource.GetHierarchicalView (string viewPath)
                {
-                       return this.GetHierarchicalView (viewPath);
+                       return GetHierarchicalView (viewPath);
                }
-               
+
+               [Browsable (false)]
+               [DefaultValue (false)]
+               [EditorBrowsable (EditorBrowsableState.Never)]
                public override bool EnableTheming {
                        get { return false; }
                        set { throw new NotSupportedException (); }
                }
                
+               [Browsable (false)]
+               [DefaultValue ("")]
+               [EditorBrowsable (EditorBrowsableState.Never)]
                public override string SkinID {
                        get { return string.Empty; }
                        set { throw new NotSupportedException (); }
                }
                
+               [Browsable (false)]
+               [DefaultValue (false)]
+               [EditorBrowsable (EditorBrowsableState.Never)]
                public override bool Visible { 
                        get { return false; }
                        set { throw new NotSupportedException (); }
@@ -80,17 +85,20 @@ namespace System.Web.UI
                        return new EmptyControlCollection (this);
                }
                
+               [EditorBrowsable (EditorBrowsableState.Never)]
                public override Control FindControl (string id)
                {
                        if (id == ID) return this;
                        else return null;
                }
                
+               [EditorBrowsable (EditorBrowsableState.Never)]
                public override bool HasControls ()
                {
                        return false;
                }
                
+               [EditorBrowsable (EditorBrowsableState.Never)]
                public override void Focus ()
                {
                        throw new NotSupportedException ();
@@ -108,6 +116,7 @@ namespace System.Web.UI
                                eh (this, e);
                }
                
+               [EditorBrowsable (EditorBrowsableState.Never)]
                public override void RenderControl (HtmlTextWriter writer)
                {
                        // nop
@@ -116,5 +125,4 @@ namespace System.Web.UI
        
 
 }
-#endif