**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Web.Mobile / System.Web.UI.MobileControls / MobileControl.cs
blobebdd3c851db54743c3161a964a27cbb6737fe5a8
2 //
3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
10 //
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
13 //
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 /**
23 * Project : Mono
24 * Namespace : System.Web.UI.MobileControls
25 * Class : MobileControl
26 * Author : Gaurav Vaish
28 * Copyright : 2003 with Gaurav Vaish, and with
29 * Ximian Inc
32 using System.Drawing;
33 using System.Collections;
34 using System.Web.UI;
35 using System.Web.Mobile;
37 namespace System.Web.UI.MobileControls
39 public abstract class MobileControl : Control//, IAttributeAccessor
41 private Style style;
42 private IControlAdapter adapter;
44 private bool enablePagination;
46 //public abstract string GetAttribute(string key);
47 //public abstract void SetAttribute(string key, string value);
49 protected MobileControl()
53 public IControlAdapter Adapter
55 get
57 IControlAdapter retVal = null;
58 if(adapter != null)
59 retVal = adapter;
60 else if(MobilePage != null)
61 retVal = MobilePage.GetControlAdapter(this);
62 return retVal;
66 public Alignment Alignment
68 get
70 throw new NotImplementedException();
72 set
74 throw new NotImplementedException();
78 public virtual Color BackColor
80 get
82 throw new NotImplementedException();
84 set
86 throw new NotImplementedException();
90 public virtual bool BreakAfter
92 get
94 throw new NotImplementedException();
96 set
98 throw new NotImplementedException();
102 public DeviceSpecific DeviceSpecific
106 throw new NotImplementedException();
110 throw new NotImplementedException();
114 public int FirstPage
118 throw new NotImplementedException();
122 throw new NotImplementedException();
126 public virtual FontInfo Font
130 throw new NotImplementedException();
134 public virtual Color ForeColor
138 throw new NotImplementedException();
142 throw new NotImplementedException();
146 public Form Form
150 throw new NotImplementedException();
154 public virtual bool IsTemplated
158 throw new NotImplementedException();
162 public int LastPage
166 throw new NotImplementedException();
170 throw new NotImplementedException();
174 public MobilePage MobilePage
178 throw new NotImplementedException();
182 public virtual Style Style
186 if(this.style == null)
188 this.style = this.CreateStyle();
190 return this.style;
194 public virtual string StyleReference
198 throw new NotImplementedException();
202 throw new NotImplementedException();
206 public virtual int VisibleWeight
210 throw new NotImplementedException();
214 public virtual Wrapping Wrapping
218 throw new NotImplementedException();
222 throw new NotImplementedException();
226 protected string InnerText
230 throw new NotImplementedException();
234 throw new NotImplementedException();
238 protected virtual bool PaginateChildren
242 throw new NotImplementedException();
246 throw new NotImplementedException();
250 public virtual void AddLinkedForms(IList linkedForms)
252 throw new NotImplementedException();
255 public virtual void CreateDefaultTemplatedUI(bool doDataBind)
257 throw new NotImplementedException();
260 public virtual void EnsureTemplatedUI()
262 throw new NotImplementedException();
265 public virtual ITemplate GetTemplate(string templateName)
267 throw new NotImplementedException();
270 public bool IsVisibleOnPage(int pageNumber)
272 throw new NotImplementedException();
275 public virtual void PaginateRecursive(ControlPager pager)
277 throw new NotImplementedException();
280 public Form ResolveFormReference(string name)
282 throw new NotImplementedException();
285 protected virtual Style CreateStyle()
287 throw new NotImplementedException();
290 protected virtual void CreatedTempaltedUI(bool doDataBind)
292 throw new NotImplementedException();
295 protected virtual bool isFormSubmitControl()
297 throw new NotImplementedException();
300 protected virtual void LoadPrivateViewState(object state)
302 throw new NotImplementedException();
305 protected virtual void OnPageChange(int oldIndex, int newIndex)
307 throw new NotImplementedException();
310 protected virtual void OnRender(HtmlTextWriter writer)
312 throw new NotImplementedException();
315 protected virtual object SavePrivateViewState()
317 throw new NotImplementedException();
320 protected virtual void CreateTemplatedUI(bool doDataBind)
322 throw new NotImplementedException();
325 internal static void SetControlPageRecursive(Control ctrl, int page)
327 throw new NotImplementedException();
330 internal bool EnablePagination
334 return enablePagination;
338 enablePagination = value;
342 internal TemplateControl FindClosestTemplateControl()
344 throw new NotImplementedException();