MobileControl.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /**
  2. * Project : Mono
  3. * Namespace : System.Web.UI.MobileControls
  4. * Class : MobileControl
  5. * Author : Gaurav Vaish
  6. *
  7. * Copyright : 2003 with Gaurav Vaish, and with
  8. * Ximian Inc
  9. */
  10. using System.Drawing;
  11. using System.Collections;
  12. using System.Web.UI;
  13. using System.Web.Mobile;
  14. namespace System.Web.UI.MobileControls
  15. {
  16. public abstract class MobileControl : Control//, IAttributeAccessor
  17. {
  18. private Style style;
  19. private IControlAdapter adapter;
  20. private bool enablePagination;
  21. //public abstract string GetAttribute(string key);
  22. //public abstract void SetAttribute(string key, string value);
  23. protected MobileControl()
  24. {
  25. }
  26. public IControlAdapter Adapter
  27. {
  28. get
  29. {
  30. IControlAdapter retVal = null;
  31. if(adapter != null)
  32. retVal = adapter;
  33. else if(MobilePage != null)
  34. retVal = MobilePage.GetControlAdapter(this);
  35. return retVal;
  36. }
  37. }
  38. public Alignment Alignment
  39. {
  40. get
  41. {
  42. throw new NotImplementedException();
  43. }
  44. set
  45. {
  46. throw new NotImplementedException();
  47. }
  48. }
  49. public virtual Color BackColor
  50. {
  51. get
  52. {
  53. throw new NotImplementedException();
  54. }
  55. set
  56. {
  57. throw new NotImplementedException();
  58. }
  59. }
  60. public virtual bool BreakAfter
  61. {
  62. get
  63. {
  64. throw new NotImplementedException();
  65. }
  66. set
  67. {
  68. throw new NotImplementedException();
  69. }
  70. }
  71. public DeviceSpecific DeviceSpecific
  72. {
  73. get
  74. {
  75. throw new NotImplementedException();
  76. }
  77. set
  78. {
  79. throw new NotImplementedException();
  80. }
  81. }
  82. public int FirstPage
  83. {
  84. get
  85. {
  86. throw new NotImplementedException();
  87. }
  88. set
  89. {
  90. throw new NotImplementedException();
  91. }
  92. }
  93. public virtual FontInfo Font
  94. {
  95. get
  96. {
  97. throw new NotImplementedException();
  98. }
  99. }
  100. public virtual Color ForeColor
  101. {
  102. get
  103. {
  104. throw new NotImplementedException();
  105. }
  106. set
  107. {
  108. throw new NotImplementedException();
  109. }
  110. }
  111. public Form Form
  112. {
  113. get
  114. {
  115. throw new NotImplementedException();
  116. }
  117. }
  118. public virtual bool IsTemplated
  119. {
  120. get
  121. {
  122. throw new NotImplementedException();
  123. }
  124. }
  125. public int LastPage
  126. {
  127. get
  128. {
  129. throw new NotImplementedException();
  130. }
  131. set
  132. {
  133. throw new NotImplementedException();
  134. }
  135. }
  136. public MobilePage MobilePage
  137. {
  138. get
  139. {
  140. throw new NotImplementedException();
  141. }
  142. }
  143. public virtual Style Style
  144. {
  145. get
  146. {
  147. if(this.style == null)
  148. {
  149. this.style = this.CreateStyle();
  150. }
  151. return this.style;
  152. }
  153. }
  154. public virtual string StyleReference
  155. {
  156. get
  157. {
  158. throw new NotImplementedException();
  159. }
  160. set
  161. {
  162. throw new NotImplementedException();
  163. }
  164. }
  165. public virtual int VisibleWeight
  166. {
  167. get
  168. {
  169. throw new NotImplementedException();
  170. }
  171. }
  172. public virtual Wrapping Wrapping
  173. {
  174. get
  175. {
  176. throw new NotImplementedException();
  177. }
  178. set
  179. {
  180. throw new NotImplementedException();
  181. }
  182. }
  183. protected string InnerText
  184. {
  185. get
  186. {
  187. throw new NotImplementedException();
  188. }
  189. set
  190. {
  191. throw new NotImplementedException();
  192. }
  193. }
  194. protected virtual bool PaginateChildren
  195. {
  196. get
  197. {
  198. throw new NotImplementedException();
  199. }
  200. set
  201. {
  202. throw new NotImplementedException();
  203. }
  204. }
  205. public virtual void AddLinkedForms(IList linkedForms)
  206. {
  207. throw new NotImplementedException();
  208. }
  209. public virtual void CreateDefaultTemplatedUI(bool doDataBind)
  210. {
  211. throw new NotImplementedException();
  212. }
  213. public virtual void EnsureTemplatedUI()
  214. {
  215. throw new NotImplementedException();
  216. }
  217. public virtual ITemplate GetTemplate(string templateName)
  218. {
  219. throw new NotImplementedException();
  220. }
  221. public bool IsVisibleOnPage(int pageNumber)
  222. {
  223. throw new NotImplementedException();
  224. }
  225. public virtual void PaginateRecursive(ControlPager pager)
  226. {
  227. throw new NotImplementedException();
  228. }
  229. public Form ResolveFormReference(string name)
  230. {
  231. throw new NotImplementedException();
  232. }
  233. protected virtual Style CreateStyle()
  234. {
  235. throw new NotImplementedException();
  236. }
  237. protected virtual void CreatedTempaltedUI(bool doDataBind)
  238. {
  239. throw new NotImplementedException();
  240. }
  241. protected virtual bool isFormSubmitControl()
  242. {
  243. throw new NotImplementedException();
  244. }
  245. protected virtual void LoadPrivateViewState(object state)
  246. {
  247. throw new NotImplementedException();
  248. }
  249. protected virtual void OnPageChange(int oldIndex, int newIndex)
  250. {
  251. throw new NotImplementedException();
  252. }
  253. protected virtual void OnRender(HtmlTextWriter writer)
  254. {
  255. throw new NotImplementedException();
  256. }
  257. protected virtual object SavePrivateViewState()
  258. {
  259. throw new NotImplementedException();
  260. }
  261. protected virtual void CreateTemplatedUI(bool doDataBind)
  262. {
  263. throw new NotImplementedException();
  264. }
  265. internal static void SetControlPageRecursive(Control ctrl, int page)
  266. {
  267. throw new NotImplementedException();
  268. }
  269. internal bool EnablePagination
  270. {
  271. get
  272. {
  273. return enablePagination;
  274. }
  275. set
  276. {
  277. enablePagination = value;
  278. }
  279. }
  280. internal TemplateControl FindClosestTemplateControl()
  281. {
  282. throw new NotImplementedException();
  283. }
  284. }
  285. }