2003-08-13 Gaurav Vaish <gvaish_mono AT lycos.com>
authorGaurav Vaish <gvaish@mono-cvs.ximian.com>
Thu, 14 Aug 2003 04:25:13 +0000 (04:25 -0000)
committerGaurav Vaish <gvaish@mono-cvs.ximian.com>
Thu, 14 Aug 2003 04:25:13 +0000 (04:25 -0000)
* ControlAdapter.cs     : Style { get; }           - Implemented.
* HtmlControlAdapter.cs : Towards finishing.
* HtmlPageAdapter.cs    : PersistCookielessData    - Mocked.
* HtmlMobileTextWriter.cs
                        : EnterStyle(Style)        - Mocked.

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

mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog
mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ControlAdapter.cs
mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs
mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs
mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlPageAdapter.cs

index fbff08ece7a7a4bfd8ddb46386d54c38347969fe..6c3820c1e94ebf6958e145ee245965521ace8a64 100644 (file)
@@ -1,4 +1,12 @@
 
+2003-08-13     Gaurav Vaish <gvaish_mono AT lycos.com>
+
+       * ControlAdapter.cs     : Style { get; }           - Implemented.
+       * HtmlControlAdapter.cs : Towards finishing.
+       * HtmlPageAdapter.cs    : PersistCookielessData    - Mocked.
+       * HtmlMobileTextWriter.cs
+                               : EnterStyle(Style)        - Mocked.
+
 2003-08-07     Gaurav Vaish <gvaish_mono AT lycos.com>
 
        * ControlAdapter.cs     : Mark Render(...) virtual.
index 2f5e41744bd79996e39e46f89d7b1f02de8f23f9..fd07d5015fd3d68f0bd2381dc5261868928344ca 100644 (file)
@@ -60,6 +60,14 @@ namespace System.Web.UI.MobileControls.Adapters
                        }
                }
 
+               public System.Web.UI.MobileControls.Style Style
+               {
+                       get
+                       {
+                               return Control.Style;
+                       }
+               }
+
                public MobileControl Control
                {
                        get
@@ -108,9 +116,8 @@ namespace System.Web.UI.MobileControls.Adapters
                        return false;
                }
 
-               public void LoadAdapterState(object state)
+               public virtual void LoadAdapterState(object state)
                {
-                       return;
                }
 
                public bool LoadPostData(string postKey,
@@ -146,7 +153,7 @@ namespace System.Web.UI.MobileControls.Adapters
                        RenderChildren(writer);
                }
 
-               public object SaveAdapterState()
+               public virtual object SaveAdapterState()
                {
                        return null;
                }
index c9c62377ff4061bae99478275106c47a0b571978..f1f6b60edb361228a91f706135db5f1383dbc651 100644 (file)
@@ -111,7 +111,7 @@ namespace System.Web.UI.MobileControls.Adapters
                        this.SecondaryUIMode = NotSecondaryUI;
                }
 
-               public virtual void LoadAdapterState(object state)
+               public override void LoadAdapterState(object state)
                {
                        if(state != null && state is int)
                        {
@@ -131,5 +131,37 @@ namespace System.Web.UI.MobileControls.Adapters
                                Render((HtmlMobileTextWriter)writer);
                        }
                }
+               
+               protected virtual void RenderAsHiddenInputField(HtmlMobileTextWriter writer)
+               {
+               }
+               
+               [MonoTODO]
+               protected void RenderBeginLink(HtmlMobileTextWriter writer,
+                                              string target)
+               {
+                       bool isHTTP = false;
+                       if(PageAdapter.PersistCookielessData)
+                       {
+                               if(target.StartsWith("http:") || target.StartsWith("https:"))
+                               {
+                                       throw new NotImplementedException();
+                               }
+                       }
+               }
+
+               [MonoTODO]
+               protected void RenderEndLink(HtmlMobileTextWriter writer,
+                                             string target)
+               {
+                       throw new NotImplementedException();
+               }
+               
+               [MonoTODO]
+               protected void RenderPostBackEventAsAnchor(HtmlMobileTextWriter writer,
+                                            string argument, string linkText)
+               {
+                       throw new NotImplementedException();
+               }
        }
 }
index 73514e17208131c8cc6b19a3329c4aaaf812f4f2..cf7b699ecafe8637154dafd61b49db1cb611af36 100644 (file)
@@ -23,5 +23,11 @@ namespace System.Web.UI.MobileControls.Adapters
                {
                        throw new NotImplementedException();
                }
+
+               [MonoTODO]
+               public void EnterStyle(System.Web.UI.MobileControls.Style style)
+               {
+                       throw new NotImplementedException();
+               }
        }
 }
index 0d3270502e0ea88ac61f750f89d67096ac209780..3424fec72a102816421633651d0f2e9d37cbfcc2 100644 (file)
@@ -9,10 +9,23 @@
  */
 
 using System;
+using System.Web.Mobile;
 
 namespace System.Web.UI.MobileControls.Adapters
 {
        public class HtmlPageAdapter : HtmlControlAdapter
        {
+               [MonoTODO]
+               public bool PersistCookielessData
+               {
+                       get
+                       {
+                               throw new NotImplementedException();
+                       }
+                       set
+                       {
+                               throw new NotImplementedException();
+                       }
+               }
        }
 }