Prev | Current Page 653 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

Device Adapter Set
Adapter Description
Control adapter base class Base class that all device adapters inherit from
Page adapter Adapter for the mobile page
Form adapter Adapter for each mobile form on the mobile page
Control adapter Adapter for each mobile control available
Text writer Writer that inherits from MobileTextWriter with
device-specific methods
506 CHAPTER 10 ?–  OTHER SERVER CONTROLS
So, based on Table 10-11, the following device adapters handle rendering for WML devices
that access a given mobile page:
??? WmlControlAdapter
??? WmlFormAdapter
??? WmlPageAdapter
??? WmlMobileTextWriter
WmlControlAdapter provides the base class for specific mobile control adapter classes.
For each mobile server control, there is a class that inherits from WmlControlAdapter named
WmlControlNameAdapter, where ControlName is something like Image, Label, List, and so on.
These device adapters provide WML rendering services for the corresponding control.
All device adapters implement the IControlAdapter interface. Table 10-12 details this
interface.
ItemWeight and VisibleWeight are two of the more interesting members of the
IControlAdapter interface. The pagination system in ASP.NET mobile controls uses a weighting
system to determine what controls to render on a page and how many items to render per page.


Pages:
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665