
WmlPageAdapter | 817
Adapters
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ ControlAdapter(System.Web.UI.MobileControls.IControlAdapter) ➝
WmlControlAdapter ➝ WmlObjectListAdapter
WmlPageAdapter
System.Web.UI.MobileControls.Adapters (system.web.mobile.dll)
.NET 1.1
class
The WmlPageAdapter renders System.Web.UI.MobileControls.MobilePage instances to WML. The
process for rendering a device-specific page is much the same as the process for
rendering a device-specific control, although the page adapter has additional responsi-
bilities. These include creating the device-specific text writer for all adapters (using
CreateTextWriter( )), retrieving postback data (using DeterminePostBackMode( ) and
HandlePagePostBackEvent( )), and handling errors (using HandleError( )).
public override void Render(WmlMobileTextWriter writer); // overrides WmlControlAdapter
// Protected Instance Methods
protected bool HasCommands();
protected bool HasDefaultCommand();
protected bool HasItemDetails();
protected bool OnlyHasDefaultCommand();
protected virtual void RenderItemDetails(WmlMobileTextWriter writer,
System.Web.UI.MobileControls.ObjectListItem item);
protected virtual void RenderItemMenu(WmlMobileTextWriter writer,
System.Web.UI.MobileControls.ObjectListItem item);
protected virtual void RenderItemsList(WmlMobileTextWriter ...