CHtmlCalendarAdapter.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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.Adapters
  24. * Class : CHtmlCalendarAdapter
  25. * Author : Gaurav Vaish
  26. *
  27. * Copyright : 2003 with Gaurav Vaish, and with
  28. * Ximian Inc
  29. */
  30. using System;
  31. using System.IO;
  32. using System.Web.UI;
  33. using System.Web.Mobile;
  34. using System.Web.UI.MobileControls;
  35. namespace System.Web.UI.MobileControls.Adapters
  36. {
  37. public class CHtmlCalendarAdapter : HtmlControlAdapter
  38. {
  39. private const int optionPrompt = 0x00;
  40. private const int typeDate = 0x01;
  41. private const int dateOption = 0x02;
  42. private const int weekOption = 0x03;
  43. private const int mthOption = 0x04;
  44. private const int chooseMonth = 0x05;
  45. private const int chooseWeek = 0x06;
  46. private const int chooseDay = 0x07;
  47. private const int defDateDone = 0x08;
  48. private const int typeDateDone = 0x09;
  49. private const int done = 0x0A;
  50. private const int firstPrompt = 0xFFFFFFF;
  51. private static int[] options;
  52. private static char[] fmtChars;
  53. private const string daySeparator = " - ";
  54. private const string space = " ";
  55. private int chooseOption;
  56. private int eraCount;
  57. private int monthsDisplayCount;
  58. private bool reqFormTag;
  59. private string textBoxErrMsg;
  60. private Command command;
  61. private List dayList;
  62. private List monthList;
  63. private List optionList;
  64. private List weekList;
  65. private SelectionList selectList;
  66. private TextBox textBox;
  67. private System.Globalization.Calendar threadCal;
  68. public CHtmlCalendarAdapter()
  69. {
  70. }
  71. protected new Calendar Control
  72. {
  73. get
  74. {
  75. return base.Control as Calendar;
  76. }
  77. }
  78. public override bool RequiresFormTag
  79. {
  80. get
  81. {
  82. return this.reqFormTag;
  83. }
  84. }
  85. [MonoTODO]
  86. public override bool HandlePostBackEvent(string eventArg)
  87. {
  88. throw new NotImplementedException();
  89. }
  90. [MonoTODO]
  91. public override void LoadAdapterState(object state)
  92. {
  93. throw new NotImplementedException();
  94. }
  95. public override object SaveAdapterState()
  96. {
  97. throw new NotImplementedException();
  98. }
  99. public override void OnInit(EventArgs e)
  100. {
  101. throw new NotImplementedException();
  102. }
  103. public override void OnLoad(EventArgs e)
  104. {
  105. throw new NotImplementedException();
  106. }
  107. public override void OnPreRender(EventArgs e)
  108. {
  109. throw new NotImplementedException();
  110. }
  111. public override void Render(HtmlMobileTextWriter writer)
  112. {
  113. throw new NotImplementedException();
  114. }
  115. }
  116. }