MobileControl.cs 4.8 KB

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