MobileControl.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. //
  2. // Permission is hereby granted, free of charge, to any person obtaining
  3. // a copy of this software and associated documentation files (the
  4. // "Software"), to deal in the Software without restriction, including
  5. // without limitation the rights to use, copy, modify, merge, publish,
  6. // distribute, sublicense, and/or sell copies of the Software, and to
  7. // permit persons to whom the Software is furnished to do so, subject to
  8. // the following conditions:
  9. //
  10. // The above copyright notice and this permission notice shall be
  11. // included in all copies or substantial portions of the Software.
  12. //
  13. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  14. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  15. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  16. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  17. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  18. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  19. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  20. //
  21. /**
  22. * Project : Mono
  23. * Namespace : System.Web.UI.MobileControls
  24. * Class : MobileControl
  25. * Author : Gaurav Vaish
  26. *
  27. * Copyright : 2003 with Gaurav Vaish, and with
  28. * Ximian Inc
  29. */
  30. using System.Drawing;
  31. using System.Collections;
  32. using System.Web.UI;
  33. using System.Web.Mobile;
  34. namespace System.Web.UI.MobileControls
  35. {
  36. public abstract class MobileControl : Control//, IAttributeAccessor
  37. {
  38. private Style style;
  39. private IControlAdapter adapter;
  40. private bool enablePagination;
  41. //public abstract string GetAttribute(string key);
  42. //public abstract void SetAttribute(string key, string value);
  43. protected MobileControl()
  44. {
  45. }
  46. public IControlAdapter Adapter
  47. {
  48. get
  49. {
  50. IControlAdapter retVal = null;
  51. if(adapter != null)
  52. retVal = adapter;
  53. else if(MobilePage != null)
  54. retVal = MobilePage.GetControlAdapter(this);
  55. return retVal;
  56. }
  57. }
  58. public Alignment Alignment
  59. {
  60. get
  61. {
  62. throw new NotImplementedException();
  63. }
  64. set
  65. {
  66. throw new NotImplementedException();
  67. }
  68. }
  69. public virtual Color BackColor
  70. {
  71. get
  72. {
  73. throw new NotImplementedException();
  74. }
  75. set
  76. {
  77. throw new NotImplementedException();
  78. }
  79. }
  80. public virtual bool BreakAfter
  81. {
  82. get
  83. {
  84. throw new NotImplementedException();
  85. }
  86. set
  87. {
  88. throw new NotImplementedException();
  89. }
  90. }
  91. public DeviceSpecific DeviceSpecific
  92. {
  93. get
  94. {
  95. throw new NotImplementedException();
  96. }
  97. set
  98. {
  99. throw new NotImplementedException();
  100. }
  101. }
  102. public int FirstPage
  103. {
  104. get
  105. {
  106. throw new NotImplementedException();
  107. }
  108. set
  109. {
  110. throw new NotImplementedException();
  111. }
  112. }
  113. public virtual FontInfo Font
  114. {
  115. get
  116. {
  117. throw new NotImplementedException();
  118. }
  119. }
  120. public virtual Color ForeColor
  121. {
  122. get
  123. {
  124. throw new NotImplementedException();
  125. }
  126. set
  127. {
  128. throw new NotImplementedException();
  129. }
  130. }
  131. public Form Form
  132. {
  133. get
  134. {
  135. throw new NotImplementedException();
  136. }
  137. }
  138. public virtual bool IsTemplated
  139. {
  140. get
  141. {
  142. throw new NotImplementedException();
  143. }
  144. }
  145. public int LastPage
  146. {
  147. get
  148. {
  149. throw new NotImplementedException();
  150. }
  151. set
  152. {
  153. throw new NotImplementedException();
  154. }
  155. }
  156. public MobilePage MobilePage
  157. {
  158. get
  159. {
  160. throw new NotImplementedException();
  161. }
  162. }
  163. public virtual Style Style
  164. {
  165. get
  166. {
  167. if(this.style == null)
  168. {
  169. this.style = this.CreateStyle();
  170. }
  171. return this.style;
  172. }
  173. }
  174. public virtual string StyleReference
  175. {
  176. get
  177. {
  178. throw new NotImplementedException();
  179. }
  180. set
  181. {
  182. throw new NotImplementedException();
  183. }
  184. }
  185. public virtual int VisibleWeight
  186. {
  187. get
  188. {
  189. throw new NotImplementedException();
  190. }
  191. }
  192. public virtual Wrapping Wrapping
  193. {
  194. get
  195. {
  196. throw new NotImplementedException();
  197. }
  198. set
  199. {
  200. throw new NotImplementedException();
  201. }
  202. }
  203. protected string InnerText
  204. {
  205. get
  206. {
  207. throw new NotImplementedException();
  208. }
  209. set
  210. {
  211. throw new NotImplementedException();
  212. }
  213. }
  214. protected virtual bool PaginateChildren
  215. {
  216. get
  217. {
  218. throw new NotImplementedException();
  219. }
  220. set
  221. {
  222. throw new NotImplementedException();
  223. }
  224. }
  225. public virtual void AddLinkedForms(IList linkedForms)
  226. {
  227. throw new NotImplementedException();
  228. }
  229. public virtual void CreateDefaultTemplatedUI(bool doDataBind)
  230. {
  231. throw new NotImplementedException();
  232. }
  233. public virtual void EnsureTemplatedUI()
  234. {
  235. throw new NotImplementedException();
  236. }
  237. public virtual ITemplate GetTemplate(string templateName)
  238. {
  239. throw new NotImplementedException();
  240. }
  241. public bool IsVisibleOnPage(int pageNumber)
  242. {
  243. throw new NotImplementedException();
  244. }
  245. public virtual void PaginateRecursive(ControlPager pager)
  246. {
  247. throw new NotImplementedException();
  248. }
  249. public Form ResolveFormReference(string name)
  250. {
  251. throw new NotImplementedException();
  252. }
  253. protected virtual Style CreateStyle()
  254. {
  255. throw new NotImplementedException();
  256. }
  257. protected virtual void CreatedTempaltedUI(bool doDataBind)
  258. {
  259. throw new NotImplementedException();
  260. }
  261. protected virtual bool isFormSubmitControl()
  262. {
  263. throw new NotImplementedException();
  264. }
  265. protected virtual void LoadPrivateViewState(object state)
  266. {
  267. throw new NotImplementedException();
  268. }
  269. protected virtual void OnPageChange(int oldIndex, int newIndex)
  270. {
  271. throw new NotImplementedException();
  272. }
  273. protected virtual void OnRender(HtmlTextWriter writer)
  274. {
  275. throw new NotImplementedException();
  276. }
  277. protected virtual object SavePrivateViewState()
  278. {
  279. throw new NotImplementedException();
  280. }
  281. protected virtual void CreateTemplatedUI(bool doDataBind)
  282. {
  283. throw new NotImplementedException();
  284. }
  285. internal static void SetControlPageRecursive(Control ctrl, int page)
  286. {
  287. throw new NotImplementedException();
  288. }
  289. internal bool EnablePagination
  290. {
  291. get
  292. {
  293. return enablePagination;
  294. }
  295. set
  296. {
  297. enablePagination = value;
  298. }
  299. }
  300. internal TemplateControl FindClosestTemplateControl()
  301. {
  302. throw new NotImplementedException();
  303. }
  304. }
  305. }