C# Класс Habanero.Faces.Base.GridBaseManager

This manager groups common logic for IEditableGridControl objects. Do not use this object in working code.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_boCol IBusinessObjectCollection
_fireBusinessObjectSelectedEvent bool
_gridBase IGridBase
_gridBaseOnSelectionChangedHandler EventHandler

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

Метод Описание
ApplyFilter ( IFilterClause filterClause ) : void

See IGridBase.ApplyFilter

ApplySearch ( IFilterClause searchClause, string orderBy ) : void

Applies a search clause to the underlying collection and reloads the grid. The search allows you to determine which objects to display using some criteria. This is typically generated by the an IFilterControl.

ApplySearch ( string searchClause, string orderBy ) : void

Applies a search clause to the underlying collection and reloads the grid. The search allows you to determine which objects to display using some criteria. This is typically generated by the an IFilterControl.

Clear ( ) : void

See IBOColSelectorControl.Clear

DefaultGridLoader ( IGridBase gridBase, IBusinessObjectCollection boCol ) : void

Sets the default grid loader which is used as the default for the GridLoader delegate. If you want to load in any other way then please set the GridLoader delegate to load your business objects as you require.

GetBusinessObjectAtRow ( int rowIndex ) : IBusinessObject

See IBOColSelectorControl.GetBusinessObjectAtRow

GetBusinessObjectCollection ( ) : IBusinessObjectCollection

See IBOColSelectorControl.BusinessObjectCollection

GetBusinessObjectRow ( IBusinessObject businessObject ) : IDataGridViewRow

See IGridBase.GetBusinessObjectRow

GetRowObjectIDValue ( IDataGridViewRow row ) : System.Guid

Gets the Object ID for a given row. This assumes that the row has a column IDColumnName.

GridBaseManager ( IGridBase gridBase ) : System

Constructor

GridBaseManager ( IGridBase gridBase, string uiDefName ) : System

Constructor

RefreshBusinessObjectRow ( IBusinessObject businessObject ) : void

Refreshes the row values for the specified IBusinessObject.

RefreshGrid ( ) : void

See IGridBase.RefreshGrid. This actually just Cancels all edits and reloads the current BusinessObjectCollection into the grid after the grid has been cleared. This thus only really usefull if the grid has gotten out of sync with it collection in some way.

SetBusinessObjectCollection ( IBusinessObjectCollection col ) : void

See IGridBase.IBusinessObjectCollection

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

Метод Описание
ClearAllSelectedRows ( IDataGridViewRowCollection gridRows ) : void
FireBusinessObjectSelected ( ) : void
GetBindingListView ( IBusinessObjectCollection boCol ) : IBindingListView

Returns a DataView based on the IBusinessObjectCollection defined by boCol. The Columns in the DataView will be the collumns defined in the Grids UiDefName

Приватные методы

Метод Описание
ClearItems ( ) : void
ConvertToGuid ( object idValue ) : System.Guid
FireCollectionChanged ( ) : void
GetDataRowView ( int rowIndex ) : DataRowView
GetGridRow ( int rowIndex ) : IDataGridViewRow
GetRowObjectIDValue ( DataRowView dataRowView ) : System.Guid
GridBase_OnSelectionChanged ( object sender, EventArgs e ) : void
HasObjectIDColumn ( IDataGridViewRow findRow ) : bool
IsFirstRowSelected ( ) : bool
LoadBusinessObject ( System.Guid value ) : IBusinessObject
SelectFirstRow ( ) : void

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

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

See IGridBase.ApplyFilter
public ApplyFilter ( IFilterClause filterClause ) : void
filterClause IFilterClause
Результат void

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

Applies a search clause to the underlying collection and reloads the grid. The search allows you to determine which objects to display using some criteria. This is typically generated by the an IFilterControl.
public ApplySearch ( IFilterClause searchClause, string orderBy ) : void
searchClause IFilterClause The search clause
orderBy string
Результат void

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

Applies a search clause to the underlying collection and reloads the grid. The search allows you to determine which objects to display using some criteria. This is typically generated by the an IFilterControl.
public ApplySearch ( string searchClause, string orderBy ) : void
searchClause string The search clause
orderBy string
Результат void

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

See IBOColSelectorControl.Clear
public Clear ( ) : void
Результат void

ClearAllSelectedRows() защищенный статический Метод

protected static ClearAllSelectedRows ( IDataGridViewRowCollection gridRows ) : void
gridRows IDataGridViewRowCollection
Результат void

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

Sets the default grid loader which is used as the default for the GridLoader delegate. If you want to load in any other way then please set the GridLoader delegate to load your business objects as you require.
public DefaultGridLoader ( IGridBase gridBase, IBusinessObjectCollection boCol ) : void
gridBase IGridBase
boCol IBusinessObjectCollection
Результат void

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

protected FireBusinessObjectSelected ( ) : void
Результат void

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

Returns a DataView based on the IBusinessObjectCollection defined by boCol. The Columns in the DataView will be the collumns defined in the Grids UiDefName
protected GetBindingListView ( IBusinessObjectCollection boCol ) : IBindingListView
boCol IBusinessObjectCollection The collection that the DataView is based on
Результат IBindingListView

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

See IBOColSelectorControl.GetBusinessObjectAtRow
public GetBusinessObjectAtRow ( int rowIndex ) : IBusinessObject
rowIndex int
Результат IBusinessObject

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

See IBOColSelectorControl.BusinessObjectCollection
public GetBusinessObjectCollection ( ) : IBusinessObjectCollection
Результат IBusinessObjectCollection

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

See IGridBase.GetBusinessObjectRow
public GetBusinessObjectRow ( IBusinessObject businessObject ) : IDataGridViewRow
businessObject IBusinessObject
Результат IDataGridViewRow

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

Gets the Object ID for a given row. This assumes that the row has a column IDColumnName.
public GetRowObjectIDValue ( IDataGridViewRow row ) : System.Guid
row IDataGridViewRow
Результат System.Guid

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

Constructor
public GridBaseManager ( IGridBase gridBase ) : System
gridBase IGridBase
Результат System

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

Constructor
public GridBaseManager ( IGridBase gridBase, string uiDefName ) : System
gridBase IGridBase
uiDefName string
Результат System

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

Refreshes the row values for the specified IBusinessObject.
public RefreshBusinessObjectRow ( IBusinessObject businessObject ) : void
businessObject IBusinessObject The for which the row must be refreshed.
Результат void

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

See IGridBase.RefreshGrid. This actually just Cancels all edits and reloads the current BusinessObjectCollection into the grid after the grid has been cleared. This thus only really usefull if the grid has gotten out of sync with it collection in some way.
public RefreshGrid ( ) : void
Результат void

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

See IGridBase.IBusinessObjectCollection
public SetBusinessObjectCollection ( IBusinessObjectCollection col ) : void
col IBusinessObjectCollection
Результат void

Описание свойств

_boCol защищенное свойство

protected IBusinessObjectCollection _boCol
Результат IBusinessObjectCollection

_fireBusinessObjectSelectedEvent защищенное свойство

Boolean so that we can switch on and off the firing of certain events e.g during loading. This is required to prevent the Grid or other controls responding to these events innappropriately.
protected bool _fireBusinessObjectSelectedEvent
Результат bool

_gridBase защищенное свойство

protected IGridBase _gridBase
Результат IGridBase

_gridBaseOnSelectionChangedHandler защищенное свойство

protected EventHandler _gridBaseOnSelectionChangedHandler
Результат EventHandler