diff options
author | Gaurav Vaish <gvaish@mono-cvs.ximian.com> | 2003-08-14 08:25:13 +0400 |
---|---|---|
committer | Gaurav Vaish <gvaish@mono-cvs.ximian.com> | 2003-08-14 08:25:13 +0400 |
commit | 84f638ea379b6a9608420375181de427c0dba9fd (patch) | |
tree | a7eaa7a5039caad16c0b0547d56ea5dc15216c49 /mcs/class/System.Web.Mobile | |
parent | 90e25449eae381ef192a97bf5ed7a028312e4f97 (diff) |
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.
svn path=/trunk/mcs/; revision=17314
Diffstat (limited to 'mcs/class/System.Web.Mobile')
5 files changed, 70 insertions, 4 deletions
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog index fbff08ece7a..6c3820c1e94 100644 --- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog +++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ChangeLog @@ -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. diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ControlAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ControlAdapter.cs index 2f5e41744bd..fd07d5015fd 100644 --- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ControlAdapter.cs +++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/ControlAdapter.cs @@ -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; } diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs index c9c62377ff4..f1f6b60edb3 100644 --- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs +++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlControlAdapter.cs @@ -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(); + } } } diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs index 73514e17208..cf7b699ecaf 100644 --- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs +++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlMobileTextWriter.cs @@ -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(); + } } } diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlPageAdapter.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlPageAdapter.cs index 0d3270502e0..3424fec72a1 100644 --- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlPageAdapter.cs +++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls.Adapters/HtmlPageAdapter.cs @@ -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(); + } + } } } |