C# Class Habanero.Faces.Win.ListViewCollectionManager

Maps a ListView object in a user interface
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
ListViewCollectionManager ( ListView listView ) : System

Construct the Manager with a ListView.

SetCollection ( IBusinessObjectCollection collection ) : void

Specify the collection of objects to display and add these to the ListView object

Private Methods

Method Description
BusinessObjectAddedHandler ( object sender, Habanero.Base.BOEventArgs e ) : void

A handler that updates the display when a business object has been added to the collection

BusinessObjectRemovedHandler ( object sender, Habanero.Base.BOEventArgs e ) : void

A handler that updates the display when a business object has been removed from the collection

BusinessObjectUpdatedHandler ( object sender, Habanero.Base.BOEventArgs e ) : void
Clear ( ListView listView ) : void
CreateListViewItem ( IBusinessObject bo ) : System.Windows.Forms.ListViewItem

Creates a ListViewItem from the business object provided. This method is used by SetListViewCollection() to populate the ListView.

SetListViewCollection ( ListView listView, IBusinessObjectCollection collection ) : void

Adds the business objects in the collection to the ListView. This method is used by SetBusinessObjectCollection.

Method Details

ListViewCollectionManager() public method

Construct the Manager with a ListView.
public ListViewCollectionManager ( ListView listView ) : System
listView System.Windows.Forms.ListView
return System

SetCollection() public method

Specify the collection of objects to display and add these to the ListView object
public SetCollection ( IBusinessObjectCollection collection ) : void
collection IBusinessObjectCollection The collection of business objects
return void