diff options
author | Gaurav Vaish <gvaish@mono-cvs.ximian.com> | 2003-08-14 08:28:16 +0400 |
---|---|---|
committer | Gaurav Vaish <gvaish@mono-cvs.ximian.com> | 2003-08-14 08:28:16 +0400 |
commit | 2d8bdaf0db434154f99e5b230841281f6a23bc6e (patch) | |
tree | 4e9a3aec54988f72f5a5cbfbf2453b1f29db221e /mcs/class/System.Web.Mobile | |
parent | 84f638ea379b6a9608420375181de427c0dba9fd (diff) |
2003-08-14 Gaurav Vaish <gvaish_mono AT lycos.com>
* MobileControl.cs : Style { get; } - Completed.
svn path=/trunk/mcs/; revision=17315
Diffstat (limited to 'mcs/class/System.Web.Mobile')
-rw-r--r-- | mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs | 17 |
2 files changed, 20 insertions, 1 deletions
diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog index f92d52227d7..2c4e31c82b8 100644 --- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog +++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ChangeLog @@ -1,4 +1,8 @@ +2003-08-14 Gaurav Vaish <gvaish_mono AT lycos.com> + + * MobileControl.cs : Style { get; } - Completed. + 2003-04-29 Gaurav Vaish <gvaish_mono AT lycos.com> * MobilePage.cs : Adapter { get; } - Stubbed. diff --git a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs index d58a0a6aa62..7295c44ab92 100644 --- a/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs +++ b/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/MobileControl.cs @@ -15,13 +15,16 @@ using System.Web.Mobile; namespace System.Web.UI.MobileControls { - public abstract class MobileControl : Control + public abstract class MobileControl : Control//, IAttributeAccessor { private Style style; private IControlAdapter adapter; private bool enablePagination; + //public abstract string GetAttribute(string key); + //public abstract void SetAttribute(string key, string value); + protected MobileControl() { } @@ -155,6 +158,18 @@ namespace System.Web.UI.MobileControls } } + public virtual Style Style + { + get + { + if(this.style == null) + { + this.style = this.CreateStyle(); + } + return this.style; + } + } + public virtual string StyleReference { get |