Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
WmlControlAdapter

All WML-specific control adapters derive from this base class. It overrides the basic functionality defined in the ControlAdapter class to add WML-specific support for hyperlinks and postbakcs, and to ensure that the FormAdapter property references a valid WmlFormAdapter.

public class WmlControlAdapter : ControlAdapter {
// Public Constructors
   public WmlControlAdapter( );
// Protected Static Fields
   protected static readonly int NotSecondaryUI;                 // =-1
                  // Protected Instance Properties
   protected WmlFormAdapter FormAdapter{get; }
   protected WmlPageAdapter PageAdapter{get; }
   protected int SecondaryUIMode{set; get; }
// Public Instance Methods
   public override void LoadAdapterState(object state);         // overrides ControlAdapter
   public override void Render(System.Web.UI.HtmlTextWriter writer); // overrides ControlAdapter
   public virtual void Render(WmlMobileTextWriter writer);
   public override object SaveAdapterState( );       // overrides ControlAdapter
                  // Protected Instance Methods
   protected string DeterminePostBack(string target);
   protected void ExitSecondaryUIMode( );
   protected virtual string GetPostBackValue( );
   protected void RenderBeginLink(WmlMobileTextWriter writer, string targetUrl, string softkeyLabel, 
        bool implicitSoftkeyLabel, bool mapToSoftkey);
   protected void RenderEndLink(WmlMobileTextWriter writer, string targetUrl, bool breakAfter);
   protected void RenderLink(WmlMobileTextWriter writer, string targetUrl, string softkeyLabel, 
        bool implicitSoftkeyLabel, bool mapToSoftkey, string text, bool breakAfter);
   protected void RenderPostBackEvent(WmlMobileTextWriter writer, string argument, string softkeyLabel, 
        bool mapToSoftkey, string text, bool breakAfter);
   protected void RenderPostBackEvent(WmlMobileTextWriter writer, string argument, string softkeyLabel, 
        bool mapToSoftkey, string text, bool breakAfter, WmlPostFieldType postBackType);
   protected void RenderSubmitEvent(WmlMobileTextWriter writer, string softkeyLabel, string text, bool breakAfter);
}

					  


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial