IControlAdapter.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * Project : Mono
  3. * Namespace : System.Web.UI.MobileControls
  4. * Class : IControlAdapter
  5. * Author : Gaurav Vaish
  6. *
  7. * Copyright : 2003 with Gaurav Vaish, and with
  8. * Ximian Inc
  9. */
  10. using System.Collections.Specialized;
  11. using System.Web.UI;
  12. using System.Web.Mobile;
  13. namespace System.Web.UI.MobileControls
  14. {
  15. public interface IControlAdapter
  16. {
  17. MobileControl Control { get; set; }
  18. int ItemWeight { get; }
  19. MobilePage Page { get; }
  20. int VisibleWeight { get; }
  21. void CreateTemplatedUI(bool doDataBind);
  22. bool HandlePostBackEvent(string eventArguments);
  23. void LoadAdapterState(object state);
  24. bool LoadPostData(string postKey, NameValueCollection postCollection,
  25. object privateControlData, out bool dataChanged);
  26. void OnInit(EventArgs e);
  27. // Strange! Docs read "public virtual void OnLoad(...);"
  28. void OnLoad(EventArgs e);
  29. void OnPreRender(EventArgs e);
  30. void OnUnload(EventArgs e);
  31. // Strange! Docs read "Render(...);"
  32. void Render(HtmlTextWriter writer);
  33. object SaveAdapterState();
  34. }
  35. }