ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 587
نمايش فراداده

IControlAdapter.NET 1.1

System.Web.UI.MobileControls (system.web.mobile.dll)interface

This interface defines the key members that are required for all device-specific control adapters. The System.Web.UI.MobileControls.Adapters namespace includes a set of control adapters for every control in this namespace. For example, the TextBox has a corresponding System.Web.UI.MobileControls.Adapters.lTextBoxAdapter for rendering cHTML output, a System.Web.UI.MobileControls.Adapters.HtmlTextBoxAdapter for rendering HTML, and a System.Web.UI.MobileControls.Adapters.WmlTextBoxAdapter for rendering WML.

public interface 

IControlAdapter { // Public Instance Properties public MobileControl

Control {set; get; } public int

ItemWeight {get; } public MobilePage

Page {get; } public int

VisibleWeight {get; } // Public Instance Methods public void

CreateTemplatedUI (bool

doDataBind ); public bool

HandlePostBackEvent (string

eventArgument ); public void

LoadAdapterState (object

state ); public bool

LoadPostData (string

postDataKey , System.Collections.Specialized.NameValueCollection

postCollection , object

controlPrivateData , out bool

dataChanged ); public void

OnInit (EventArgs

e ); public void

OnLoad (EventArgs

e ); public void

OnPreRender (EventArgs

e ); public void

OnUnload (EventArgs

e ); public void

Render (System.Web.UI.HtmlTextWriter

writer ); public object

SaveAdapterState ( ); }

Implemented By

IPageAdapter, System.Web.UI.MobileControls.Adapters.ControlAdapter

Returned By

MobileControl.Adapter, MobilePage.GetControlAdapter( )