CHtmlCalendarAdapter.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /**
  2. * Project : Mono
  3. * Namespace : System.Web.UI.MobileControls.Adapters
  4. * Class : CHtmlCalendarAdapter
  5. * Author : Gaurav Vaish
  6. *
  7. * Copyright : 2003 with Gaurav Vaish, and with
  8. * Ximian Inc
  9. */
  10. using System;
  11. using System.IO;
  12. using System.Web.UI;
  13. using System.Web.Mobile;
  14. using System.Web.UI.MobileControls;
  15. namespace System.Web.UI.MobileControls.Adapters
  16. {
  17. public class CHtmlCalendarAdapter : HtmlControlAdapter
  18. {
  19. private const int optionPrompt = 0x00;
  20. private const int typeDate = 0x01;
  21. private const int dateOption = 0x02;
  22. private const int weekOption = 0x03;
  23. private const int mthOption = 0x04;
  24. private const int chooseMonth = 0x05;
  25. private const int chooseWeek = 0x06;
  26. private const int chooseDay = 0x07;
  27. private const int defDateDone = 0x08;
  28. private const int typeDateDone = 0x09;
  29. private const int done = 0x0A;
  30. private const int firstPrompt = 0xFFFFFFF;
  31. private static int[] options;
  32. private static char[] fmtChars;
  33. private const string daySeparator = " - ";
  34. private const string space = " ";
  35. private int chooseOption;
  36. private int eraCount;
  37. private int monthsDisplayCount;
  38. private bool reqFormTag;
  39. private string textBoxErrMsg;
  40. private Command command;
  41. private List dayList;
  42. private List monthList;
  43. private List optionList;
  44. private List weekList;
  45. private SelectionList selectList;
  46. private TextBox textBox;
  47. private System.Globalization.Calendar threadCal;
  48. public CHtmlCalendarAdapter()
  49. {
  50. }
  51. protected new Calendar Control
  52. {
  53. get
  54. {
  55. return base.Control as Calendar;
  56. }
  57. }
  58. public override bool RequiresFormTag
  59. {
  60. get
  61. {
  62. return this.reqFormTag;
  63. }
  64. }
  65. [MonoTODO]
  66. public override bool HandlePostBackEvent(string eventArg)
  67. {
  68. throw new NotImplementedException();
  69. }
  70. [MonoTODO]
  71. public override void LoadAdapterState(object state)
  72. {
  73. throw new NotImplementedException();
  74. }
  75. public override object SaveAdapterState()
  76. {
  77. throw new NotImplementedException();
  78. }
  79. public override void OnInit(EventArgs e)
  80. {
  81. throw new NotImplementedException();
  82. }
  83. public override void OnLoad(EventArgs e)
  84. {
  85. throw new NotImplementedException();
  86. }
  87. public override void OnPreRender(EventArgs e)
  88. {
  89. throw new NotImplementedException();
  90. }
  91. public override void Render(HtmlMobileTextWriter writer)
  92. {
  93. throw new NotImplementedException();
  94. }
  95. }
  96. }