SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 120 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

NET AJAX CLIENT LIBRARIES 69
Sys.Component and Client Component Model
The Sys.Component class is another pivotal component of the ASP.NET AJAX Client Library.
This is also the base class that is ultimately extended by all graphical or nongraphical
client controls (Sys.UI.Control actually inherits from Sys.Component). Again, there is a
good level of similarity in the model between this class and the
System.ComponentModel.Component class of the .NET Framework, a recurring theme with
many of the classes in the Sys namespace you have probably noticed by now.
Sys.Component uses three key interfaces and four properties. The interfaces include
Sys.IDisposable, Sys.INotifyDisposing, and Sys.INotifyPropertyChange. Sys.IDisposable
is just like its .NET Framework counterpart. An interface for implementing proper logic
for disposing an object and the other two interfaces provide facilities for implementing
events used to detect disposing and changes in property of the underlying control.
The four properties are events, id, isInitialized, and isUpdating. The events property
returns an EventHandlerList object, which contains references to all event handlers that
have subscribed to the events of the current component.


Pages:
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132