C# Класс BrightIdeasSoftware.FastObjectListDataSource

Наследование: BrightIdeasSoftware.AbstractVirtualListDataSource
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

AddObjects() публичный Метод

public AddObjects ( ICollection modelObjects ) : void
modelObjects ICollection
Результат void

ApplyFilters() публичный Метод

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
Результат void

FastObjectListDataSource() публичный Метод

Create a FastObjectListDataSource
public FastObjectListDataSource ( FastObjectListView listView ) : System
listView FastObjectListView
Результат System

FilterObjects() защищенный Метод

Build our filtered list from our full list.
protected FilterObjects ( ) : void
Результат void

GetNthObject() публичный Метод

Get n'th object
public GetNthObject ( int n ) : object
n int
Результат object

GetObjectCount() публичный Метод

How many items are in the data source
public GetObjectCount ( ) : int
Результат int

GetObjectIndex() публичный Метод

Get the index of the given model
public GetObjectIndex ( object model ) : int
model object
Результат int

InsertObjects() публичный Метод

public InsertObjects ( int index, ICollection modelObjects ) : void
index int
modelObjects ICollection
Результат void

RebuildIndexMap() защищенный Метод

Rebuild the map that remembers which model object is displayed at which line
protected RebuildIndexMap ( ) : void
Результат void

RemoveObjects() публичный Метод

Remove the given collection of models from this source.
public RemoveObjects ( ICollection modelObjects ) : void
modelObjects ICollection
Результат void

SearchText() публичный Метод

public SearchText ( string text, int first, int last, BrightIdeasSoftware.OLVColumn column ) : int
text string
first int
last int
column BrightIdeasSoftware.OLVColumn
Результат int

SetObjects() публичный Метод

public SetObjects ( IEnumerable collection ) : void
collection IEnumerable
Результат void

Sort() публичный Метод

public Sort ( BrightIdeasSoftware.OLVColumn column, SortOrder sortOrder ) : void
column BrightIdeasSoftware.OLVColumn
sortOrder SortOrder
Результат void

UpdateObject() публичный Метод

Update/replace the nth object with the given object
public UpdateObject ( int index, object modelObject ) : void
index int
modelObject object
Результат void