//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ using System; using System.IO; using System.Web; using System.Web.UI; using System.Collections.Specialized; using System.Security.Permissions; namespace System.Web.UI.MobileControls { /* * ControlAdapter Interface. * A control adapter handles all of the (potentially) device specific * functionality for a mobile control. * * Copyright (c) 2000 Microsoft Corporation */ /// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] public interface IControlAdapter { /// MobileControl Control { get; set; } /// MobilePage Page { get; } /// void OnInit(EventArgs e); /// void OnLoad(EventArgs e); /// void OnPreRender(EventArgs e); /// void Render(HtmlTextWriter writer); /// void OnUnload(EventArgs e); /// void CreateTemplatedUI(bool doDataBind); /// bool HandlePostBackEvent(String eventArgument); /// // used by controls that implement IPostBackDataHandler to handle // situations where the post data is interpreted based upon generating // device. Returns true if there is no device-specific handling, and // the general control should handle it. bool LoadPostData(String postDataKey, NameValueCollection postCollection, Object controlPrivateData, out bool dataChanged); /// void LoadAdapterState(Object state); /// Object SaveAdapterState(); /// int VisibleWeight { get; } /// int ItemWeight { get; } } }