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:
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
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.
24 * Namespace : System.Web.UI.MobileControls
25 * Class : MobileControl
26 * Author : Gaurav Vaish
28 * Copyright : 2003 with Gaurav Vaish, and with
33 using System
.Collections
;
35 using System
.Web
.Mobile
;
37 namespace System
.Web
.UI
.MobileControls
39 public abstract class MobileControl
: Control
//, IAttributeAccessor
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
57 IControlAdapter retVal
= null;
60 else if(MobilePage
!= null)
61 retVal
= MobilePage
.GetControlAdapter(this);
66 public Alignment Alignment
70 throw new NotImplementedException();
74 throw new NotImplementedException();
78 public virtual Color BackColor
82 throw new NotImplementedException();
86 throw new NotImplementedException();
90 public virtual bool BreakAfter
94 throw new NotImplementedException();
98 throw new NotImplementedException();
102 public DeviceSpecific DeviceSpecific
106 throw new NotImplementedException();
110 throw new NotImplementedException();
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();
150 throw new NotImplementedException();
154 public virtual bool IsTemplated
158 throw new NotImplementedException();
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();
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();