Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IControlAdapter.cs « System.Web.UI.MobileControls « System.Web.Mobile « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7a17c5706225fd190141262d9c341c5bfb4ebe9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
 * Project   : Mono
 * Namespace : System.Web.UI.MobileControls
 * Class     : IControlAdapter
 * Author    : Gaurav Vaish
 *
 * Copyright : 2003 with Gaurav Vaish, and with
 *             Ximian Inc
 */

using System.Collections.Specialized;
using System.Web.UI;
using System.Web.Mobile;

namespace System.Web.UI.MobileControls
{
	public interface IControlAdapter
	{
		MobileControl Control       { get; set; }
		int           ItemWeight    { get; }
		MobilePage    Page          { get; }
		int           VisibleWeight { get; }

		void   CreateTemplatedUI(bool doDataBind);
		bool   HandlePostBackEvent(string eventArguments);
		void   LoadAdapterState(object state);
		bool   LoadPostData(string postKey, NameValueCollection postCollection,
		                    object privateControlData, out bool dataChanged);
		void   OnInit(EventArgs e);
		// Strange! Docs read "public virtual void OnLoad(...);"
		void   OnLoad(EventArgs e);
		void   OnPreRender(EventArgs e);
		void   OnUnload(EventArgs e);
		// Strange! Docs read "Render(...);"
		void   Render(HtmlTextWriter writer);
		object SaveAdapterState();
	}
}