C# 클래스 Habanero.Faces.Base.GridBaseManager

This manager groups common logic for IEditableGridControl objects. Do not use this object in working code.
파일 보기 프로젝트 열기: Chillisoft/habanero.faces 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_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