| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- //
- // Permission is hereby granted, free of charge, to any person obtaining
- // a copy of this software and associated documentation files (the
- // "Software"), to deal in the Software without restriction, including
- // without limitation the rights to use, copy, modify, merge, publish,
- // distribute, sublicense, and/or sell copies of the Software, and to
- // permit persons to whom the Software is furnished to do so, subject to
- // the following conditions:
- //
- // The above copyright notice and this permission notice shall be
- // included in all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
- // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- //
- /**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : MobileControl
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
- using System.Drawing;
- using System.Collections;
- using System.Web.UI;
- using System.Web.Mobile;
- namespace System.Web.UI.MobileControls
- {
- 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()
- {
- }
- public IControlAdapter Adapter
- {
- get
- {
- IControlAdapter retVal = null;
- if(adapter != null)
- retVal = adapter;
- else if(MobilePage != null)
- retVal = MobilePage.GetControlAdapter(this);
- return retVal;
- }
- }
- public Alignment Alignment
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
- public virtual Color BackColor
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- 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 int FirstPage
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
- public virtual FontInfo Font
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- public virtual Color ForeColor
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
- public Form Form
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- public virtual bool IsTemplated
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- public int LastPage
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
- public MobilePage MobilePage
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- public virtual Style Style
- {
- get
- {
- if(this.style == null)
- {
- this.style = this.CreateStyle();
- }
- return this.style;
- }
- }
- public virtual string StyleReference
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
- public virtual int VisibleWeight
- {
- get
- {
- throw new NotImplementedException();
- }
- }
- public virtual Wrapping Wrapping
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
- protected string InnerText
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
- protected virtual bool PaginateChildren
- {
- get
- {
- throw new NotImplementedException();
- }
- set
- {
- throw new NotImplementedException();
- }
- }
- public virtual void AddLinkedForms(IList linkedForms)
- {
- throw new NotImplementedException();
- }
- public virtual void CreateDefaultTemplatedUI(bool doDataBind)
- {
- throw new NotImplementedException();
- }
- public virtual void EnsureTemplatedUI()
- {
- throw new NotImplementedException();
- }
- public virtual ITemplate GetTemplate(string templateName)
- {
- throw new NotImplementedException();
- }
- public bool IsVisibleOnPage(int pageNumber)
- {
- throw new NotImplementedException();
- }
- public virtual void PaginateRecursive(ControlPager pager)
- {
- throw new NotImplementedException();
- }
- public Form ResolveFormReference(string name)
- {
- throw new NotImplementedException();
- }
- protected virtual Style CreateStyle()
- {
- throw new NotImplementedException();
- }
- protected virtual void CreatedTempaltedUI(bool doDataBind)
- {
- throw new NotImplementedException();
- }
- protected virtual bool isFormSubmitControl()
- {
- throw new NotImplementedException();
- }
- protected virtual void LoadPrivateViewState(object state)
- {
- throw new NotImplementedException();
- }
- protected virtual void OnPageChange(int oldIndex, int newIndex)
- {
- throw new NotImplementedException();
- }
- protected virtual void OnRender(HtmlTextWriter writer)
- {
- throw new NotImplementedException();
- }
- protected virtual object SavePrivateViewState()
- {
- throw new NotImplementedException();
- }
- protected virtual void CreateTemplatedUI(bool doDataBind)
- {
- throw new NotImplementedException();
- }
- internal static void SetControlPageRecursive(Control ctrl, int page)
- {
- throw new NotImplementedException();
- }
- internal bool EnablePagination
- {
- get
- {
- return enablePagination;
- }
- set
- {
- enablePagination = value;
- }
- }
- internal TemplateControl FindClosestTemplateControl()
- {
- throw new NotImplementedException();
- }
- }
- }
|