C# Class Adf.Web.Binding.WebBinder

Represents a binder which binds a System.Web.UI.Control with an object or a list of objects. Provides methods to bind a System.Web.UI.Control with an object, an array of objects, a list of objects etc.
Inheritance: IPlatformBinder
Datei anzeigen Open project: NLADP/ADF

Public Methods

Method Description
Bind ( object control, IEnumerable bindableObjects, bool isPostback ) : void

Binds the specified list of business objects to the specified System.Web.UI.Control or its child System.Web.UI.Control using its list of control binders.

Bind ( object control, object bindableObject, bool isPostback ) : void

Binds the specified business object to the specified System.Web.UI.Control or its child System.Web.UI.Control.

Persist ( object bindableObject, object control ) : void

Persists the data of the specified System.Web.UI.Control to the specified business object.

WebBinder ( ) : System.Collections

Initializes an instance of the Adf.Web.Binding.WebBinder class.

Private Methods

Method Description
AddBinder ( IControlBinder controlBinder ) : void

Adds the specified control binder to its collection of control binders.

AddPersister ( IControlPersister controlPersister ) : void

Adds the specified control persister to the collection of control persisters.

BindToArray ( Control c, object bindableObjects, Dictionary controlBinders ) : void

Binds the specified array of business objects to the specified System.Web.UI.Control or its child System.Web.UI.Control using the specified list of control binders.

BindToList ( Control c, IEnumerable bindableObjects, Dictionary controlBinders ) : void

Binds the specified list of business objects to the specified System.Web.UI.Control or its child System.Web.UI.Control using the specified list of control binders.

BindToObject ( Control c, object bindableObject, Dictionary controlBinders, object p ) : void

Binds the specified business object to the specified System.Web.UI.Control or its child System.Web.UI.Control using the specified list of control binders.

GetValue ( object bindableObject, PropertyInfo pi ) : object

Gets the value of the specified property of the specified business object.

Method Details

Bind() public method

Binds the specified list of business objects to the specified System.Web.UI.Control or its child System.Web.UI.Control using its list of control binders.
public Bind ( object control, IEnumerable bindableObjects, bool isPostback ) : void
control object The or the child /// of which is to bind to.
bindableObjects IEnumerable The list of business objects to bind.
isPostback bool The value indicating whether this is a repeatation.
return void

Bind() public method

Binds the specified business object to the specified System.Web.UI.Control or its child System.Web.UI.Control.
public Bind ( object control, object bindableObject, bool isPostback ) : void
control object The or the child /// of which is to bind to.
bindableObject object The business object to bind.
isPostback bool The value indicating whether this is a repeatation.
return void

Persist() public method

Persists the data of the specified System.Web.UI.Control to the specified business object.
public Persist ( object bindableObject, object control ) : void
bindableObject object The business object where to persist.
control object The , the data of which is to persist.
return void

WebBinder() public method

Initializes an instance of the Adf.Web.Binding.WebBinder class.
public WebBinder ( ) : System.Collections
return System.Collections