diff options
author | Gaurav Vaish <gvaish@mono-cvs.ximian.com> | 2003-08-07 07:36:22 +0400 |
---|---|---|
committer | Gaurav Vaish <gvaish@mono-cvs.ximian.com> | 2003-08-07 07:36:22 +0400 |
commit | 00cd66d4a30d3266b3d96e0c169d6c31a2720b52 (patch) | |
tree | db3005aeaa9239b0ae9a890065c337d928283abb /mcs/class/System.Web.Mobile | |
parent | ca9caee01092d92d82b296d8718777ab047f51b0 (diff) |
2003-08-07 Gaurav Vaish <gvaish_mono AT lycos.com>
* ControlAdapter.cs : Mark Render(...) virtual.
* HtmlControlAdapter.cs : AddAttributes(...),
ExitSecondaryUIMode(),
LoadAdapterState(),
Render(...) - Implemented.
svn path=/trunk/mcs/; revision=17151
Diffstat (limited to 'mcs/class/System.Web.Mobile')
3 files changed, 37 insertions, 3 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 063417e0778..fbff08ece7a 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-07 Gaurav Vaish <gvaish_mono AT lycos.com> + + * ControlAdapter.cs : Mark Render(...) virtual. + * HtmlControlAdapter.cs : AddAttributes(...), + ExitSecondaryUIMode(), + LoadAdapterState(), + Render(...) - Implemented. + 2003-06-17 Gaurav Vaish <gvaish_mono AT lycos.com> * HtmlControlAdapter.cs : A little more implementation. 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 9a207f559c0..2f5e41744bd 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 @@ -141,7 +141,7 @@ namespace System.Web.UI.MobileControls.Adapters return; } - public void Render(HtmlTextWriter writer) + public virtual void Render(HtmlTextWriter writer) { RenderChildren(writer); } 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 86ad41ccbce..c9c62377ff4 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 @@ -89,11 +89,11 @@ namespace System.Web.UI.MobileControls.Adapters AddAttributePrivate(writer, "accesskey"); } } - + protected virtual void AddAttributes(HtmlMobileTextWriter writer) { } - + protected virtual void AddJPhoneMultiMediaAttributes( HtmlMobileTextWriter writer) { @@ -105,5 +105,31 @@ namespace System.Web.UI.MobileControls.Adapters } } } + + protected void ExitSecondaryUIMode() + { + this.SecondaryUIMode = NotSecondaryUI; + } + + public virtual void LoadAdapterState(object state) + { + if(state != null && state is int) + { + this.SecondaryUIMode = (int)state; + } + } + + public virtual void Render(HtmlMobileTextWriter writer) + { + base.RenderChildren(writer); + } + + public override void Render(HtmlTextWriter writer) + { + if(writer is HtmlMobileTextWriter) + { + Render((HtmlMobileTextWriter)writer); + } + } } } |