2003-01-10 Gaurav Vaish <gvaish_mono AT lycos.com>
authorGaurav Vaish <gvaish@mono-cvs.ximian.com>
Fri, 10 Jan 2003 19:08:56 +0000 (19:08 -0000)
committerGaurav Vaish <gvaish@mono-cvs.ximian.com>
Fri, 10 Jan 2003 19:08:56 +0000 (19:08 -0000)
* DeviceSpecific.cs      : Dummy implementation.
* MobilePage.cs          : GetControlAdapter(MobileControl) - Stubbed.
* MobileControl.cs       : Adapter        { get; }      - Implemented
                         : BreakAfter     { get; set; } - Stubbed.
                         : DeviceSpecific { get; set; } - Stubbed.
                         : MobilePage     { get; }      - Stubbed.

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

mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog
mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecific.cs [new file with mode: 0644]
mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs
mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobilePage.cs
mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Style.cs [new file with mode: 0644]

index bf6fc075faf20442aa3139645cd5ccdb24bff2ed..d7a20cfd9361493185e3e5c0f2eed11362d7a651 100644 (file)
@@ -1,4 +1,13 @@
 
+2003-01-10     Gaurav Vaish <gvaish_mono AT lycos.com>
+
+       * DeviceSpecific.cs      : Dummy implementation.
+       * MobilePage.cs          : GetControlAdapter(MobileControl) - Stubbed.
+       * MobileControl.cs       : Adapter        { get; }      - Implemented
+                                : BreakAfter     { get; set; } - Stubbed.
+                                : DeviceSpecific { get; set; } - Stubbed.
+                                : MobilePage     { get; }      - Stubbed.
+
 2003-01-10     Gaurav Vaish <gvaish_mono AT lycos.com>
 
        * IObjectListFieldCollection.cs,
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecific.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/DeviceSpecific.cs
new file mode 100644 (file)
index 0000000..b9a203d
--- /dev/null
@@ -0,0 +1,21 @@
+/**
+ * Project   : Mono
+ * Namespace : System.Web.UI.MobileControls
+ * Class     : DeviceSpecific
+ * Author    : Gaurav Vaish
+ *
+ * Copyright : 2002 with Gaurav Vaish, and with
+ *             Ximian Inc
+ */
+
+using System.Web.UI;
+
+namespace System.Web.UI.MobileControls
+{
+       public class DeviceSpecific : Control
+       {
+               public DeviceSpecific()
+               {
+               }
+       }
+}
index e503997554bf1c2e568a69062e4adfcfd9bef52c..d904905b69c5b893625e21423aadb2eb823e6c6f 100644 (file)
@@ -16,16 +16,23 @@ namespace System.Web.UI.MobileControls
 {
        public abstract class MobileControl : Control
        {
+               private Style style;
+               private IControlAdapter adapter;
+
                protected MobileControl()
                {
                }
 
-               [MonoTODO]
                public IControlAdapter Adapter
                {
                        get
                        {
-                               throw new NotImplementedException();
+                               IControlAdapter retVal = null;
+                               if(adapter != null)
+                                       retVal = adapter;
+                               else if(MobilePage != null)
+                                       retVal = MobilePage.GetControlAdapter(this);
+                               return retVal;
                        }
                }
 
@@ -52,5 +59,37 @@ namespace System.Web.UI.MobileControls
                                throw new NotImplementedException();
                        }
                }
+
+               public virtual bool BreakAfter
+               {
+                       get
+                       {
+                               throw new NotImplementedException();
+                       }
+                       set
+                       {
+                               throw new NotImplementedException();
+                       }
+               }
+
+               public DeviceSpecific DeviceSpecific
+               {
+                       get
+                       {
+                               throw new NotImplementedException();
+                       }
+                       set
+                       {
+                               throw new NotImplementedException();
+                       }
+               }
+
+               public MobilePage MobilePage
+               {
+                       get
+                       {
+                               throw new NotImplementedException();
+                       }
+               }
        }
 }
index eb961878b85853697912cd9f451455b0b9f8dee5..d1be1a64bfa5e481207d81b1d1332bad8b8542fd 100644 (file)
@@ -18,5 +18,10 @@ namespace System.Web.UI.MobileControls
                public MobilePage()
                {
                }
+
+               public virtual IControlAdapter GetControlAdapter(MobileControl control)
+               {
+                       throw new NotImplementedException();
+               }
        }
 }
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Style.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Style.cs
new file mode 100644 (file)
index 0000000..f6ffb3f
--- /dev/null
@@ -0,0 +1,22 @@
+/**
+ * Project   : Mono
+ * Namespace : System.Web.UI.MobileControls
+ * Class     : Style
+ * Author    : Gaurav Vaish
+ *
+ * Copyright : 2002 with Gaurav Vaish, and with
+ *             Ximian Inc
+ */
+
+using System.Web.UI;
+
+namespace System.Web.UI.MobileControls
+{
+       public class Style //: IParserAttribute, ITemplateable, IStateManager,
+                          //    ICloneable
+       {
+               public Style()
+               {
+               }
+       }
+}