C# Class BrightIdeasSoftware.FastObjectListDataSource

Inheritance: BrightIdeasSoftware.AbstractVirtualListDataSource
Afficher le fichier Open project: ennerperez/ObjectListView Class Usage Examples

Méthodes publiques

Méthode Description
AddObjects ( ICollection modelObjects ) : void

ApplyFilters ( IModelFilter iModelFilter, IListFilter iListFilter ) : void

Apply the given filters to this data source. One or both may be null.

FastObjectListDataSource ( FastObjectListView listView ) : System

Create a FastObjectListDataSource

GetNthObject ( int n ) : object

Get n'th object

GetObjectCount ( ) : int

How many items are in the data source

GetObjectIndex ( object model ) : int

Get the index of the given model

InsertObjects ( int index, ICollection modelObjects ) : void

RemoveObjects ( ICollection modelObjects ) : void

Remove the given collection of models from this source.

SearchText ( string text, int first, int last, BrightIdeasSoftware.OLVColumn column ) : int

SetObjects ( IEnumerable collection ) : void

Sort ( BrightIdeasSoftware.OLVColumn column, SortOrder sortOrder ) : void

UpdateObject ( int index, object modelObject ) : void

Update/replace the nth object with the given object

Méthodes protégées

Méthode Description
FilterObjects ( ) : void

Build our filtered list from our full list.

RebuildIndexMap ( ) : void

Rebuild the map that remembers which model object is displayed at which line

Method Details

AddObjects() public méthode

public AddObjects ( ICollection modelObjects ) : void
modelObjects ICollection
Résultat void

ApplyFilters() public méthode

Apply the given filters to this data source. One or both may be null.
public ApplyFilters ( IModelFilter iModelFilter, IListFilter iListFilter ) : void
iModelFilter IModelFilter
iListFilter IListFilter
Résultat void

FastObjectListDataSource() public méthode

Create a FastObjectListDataSource
public FastObjectListDataSource ( FastObjectListView listView ) : System
listView FastObjectListView
Résultat System

FilterObjects() protected méthode

Build our filtered list from our full list.
protected FilterObjects ( ) : void
Résultat void

GetNthObject() public méthode

Get n'th object
public GetNthObject ( int n ) : object
n int
Résultat object

GetObjectCount() public méthode

How many items are in the data source
public GetObjectCount ( ) : int
Résultat int

GetObjectIndex() public méthode

Get the index of the given model
public GetObjectIndex ( object model ) : int
model object
Résultat int

InsertObjects() public méthode

public InsertObjects ( int index, ICollection modelObjects ) : void
index int
modelObjects ICollection
Résultat void

RebuildIndexMap() protected méthode

Rebuild the map that remembers which model object is displayed at which line
protected RebuildIndexMap ( ) : void
Résultat void

RemoveObjects() public méthode

Remove the given collection of models from this source.
public RemoveObjects ( ICollection modelObjects ) : void
modelObjects ICollection
Résultat void

SearchText() public méthode

public SearchText ( string text, int first, int last, BrightIdeasSoftware.OLVColumn column ) : int
text string
first int
last int
column BrightIdeasSoftware.OLVColumn
Résultat int

SetObjects() public méthode

public SetObjects ( IEnumerable collection ) : void
collection IEnumerable
Résultat void

Sort() public méthode

public Sort ( BrightIdeasSoftware.OLVColumn column, SortOrder sortOrder ) : void
column BrightIdeasSoftware.OLVColumn
sortOrder SortOrder
Résultat void

UpdateObject() public méthode

Update/replace the nth object with the given object
public UpdateObject ( int index, object modelObject ) : void
index int
modelObject object
Résultat void