C# 클래스 Habanero.Faces.Win.GridBaseWin

Provides a DataGridView that is adapted to show business objects
상속: DataGridViewWin, IGridBase
파일 보기 프로젝트 열기: Chillisoft/habanero.faces

Private Properties

프로퍼티 타입 설명
ApproachColor byte
DetermineRequiredColumnWidths void
DistributeAvailableColumnWidths void
DoubleClickHandler void
FireBusinessObjectSelected void
FireCollectionChanged void
FireFilterUpdated void
GetBusinessObjectCollection IBusinessObjectCollection
GetColumnHeaderRequiredWidths List
ImplementAlternatRowColoring void
SetBusinessObjectCollection void
SetIDColumnVisibility void

공개 메소드들

메소드 설명
ApplyFilter ( IFilterClause filterClause ) : void

Applies a filter clause to the data table and updates the filter. The filter allows you to determine which objects to display using some criteria. This is typically generated by an IFilterControl.

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.

CheckUserWantsToDelete ( ) : bool

Displays a message box to the user to check if they want to proceed with deleting the selected rows.

Clear ( ) : void

Clears the business object collection and the rows in the data table

CreateDataSetProvider ( IBusinessObjectCollection col ) : IDataSetProvider

Creates a dataset provider that is applicable to this grid. For example, a readonly grid would return a ReadOnlyDataSetProvider, while an editable grid would return an editable one.

FireRowDoubleClicked ( IBusinessObject selectedBo ) : void

Creates an event for a row being double-clicked

GetBusinessObjectAtRow ( int row ) : IBusinessObject

Returns the business object at the specified row number

GetBusinessObjectRow ( IBusinessObject businessObject ) : IDataGridViewRow

Returns the row for the specified IBusinessObject.

RefreshBusinessObjectRow ( IBusinessObject businessObject ) : void

Refreshes the row values for the specified IBusinessObject.

RefreshGrid ( ) : void

Reloads the grid based on the grid returned by GetBusinessObjectCollection

보호된 메소드들

메소드 설명
GridBaseWin ( ) : System

Constructor for GridBaseWin

ImplementColumnAutoSizingStrategy ( ) : void
MustDelete ( ) : bool

Uses the ConfirmDeletion and CheckUserConfirmsDeletion to determine Whether the SelectedBusinessObject must be deleted or not.

비공개 메소드들

메소드 설명
ApproachColor ( byte fg, byte bg ) : byte
DetermineRequiredColumnWidths ( List requiredWidths, int columnCount ) : void
DistributeAvailableColumnWidths ( List requiredWidths ) : void
DoubleClickHandler ( object sender, EventArgs e ) : void

Handles the event of a double-click

FireBusinessObjectSelected ( ) : void
FireCollectionChanged ( ) : void
FireFilterUpdated ( ) : void

Calls the FilterUpdated() method, passing this instance as the sender

GetBusinessObjectCollection ( ) : IBusinessObjectCollection
GetColumnHeaderRequiredWidths ( ) : List
ImplementAlternatRowColoring ( ) : void
SetBusinessObjectCollection ( IBusinessObjectCollection col ) : void
SetIDColumnVisibility ( bool visible ) : void

메소드 상세

ApplyFilter() 공개 메소드

Applies a filter clause to the data table and updates the filter. The filter allows you to determine which objects to display using some criteria. This is typically generated by an IFilterControl.
public ApplyFilter ( IFilterClause filterClause ) : void
filterClause IFilterClause The filter clause
리턴 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

CheckUserWantsToDelete() 공개 메소드

Displays a message box to the user to check if they want to proceed with deleting the selected rows.
public CheckUserWantsToDelete ( ) : bool
리턴 bool

Clear() 공개 메소드

Clears the business object collection and the rows in the data table
public Clear ( ) : void
리턴 void

CreateDataSetProvider() 공개 추상적인 메소드

Creates a dataset provider that is applicable to this grid. For example, a readonly grid would return a ReadOnlyDataSetProvider, while an editable grid would return an editable one.
public abstract CreateDataSetProvider ( IBusinessObjectCollection col ) : IDataSetProvider
col IBusinessObjectCollection The collection to create the datasetprovider for
리턴 IDataSetProvider

FireRowDoubleClicked() 공개 메소드

Creates an event for a row being double-clicked
public FireRowDoubleClicked ( IBusinessObject selectedBo ) : void
selectedBo IBusinessObject The business object to which the /// double-click applies
리턴 void

GetBusinessObjectAtRow() 공개 메소드

Returns the business object at the specified row number
public GetBusinessObjectAtRow ( int row ) : IBusinessObject
row int The row number in question
리턴 IBusinessObject

GetBusinessObjectRow() 공개 메소드

Returns the row for the specified IBusinessObject.
public GetBusinessObjectRow ( IBusinessObject businessObject ) : IDataGridViewRow
businessObject IBusinessObject The to search for.
리턴 IDataGridViewRow

GridBaseWin() 보호된 메소드

Constructor for GridBaseWin
protected GridBaseWin ( ) : System
리턴 System

ImplementColumnAutoSizingStrategy() 보호된 메소드

protected ImplementColumnAutoSizingStrategy ( ) : void
리턴 void

MustDelete() 보호된 메소드

Uses the ConfirmDeletion and CheckUserConfirmsDeletion to determine Whether the SelectedBusinessObject must be deleted or not.
protected MustDelete ( ) : bool
리턴 bool

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() 공개 메소드

Reloads the grid based on the grid returned by GetBusinessObjectCollection
public RefreshGrid ( ) : void
리턴 void