NGridProxyDataSourceImpl Class Reference

Inherits from NSObject
Conforms to NGridProxyDataSource
Declared in NGridProxyDataSourceImpl.h

Overview

The NGridProxyDataSourceImpl class implements default functionality for NGridProxyDataSource protocol.

  dataSource

Grid data source that provides data for the current proxy data source.

@property (assign) id<NGridDataSource> dataSource

Declared In

NGridProxyDataSourceImpl.h

  sortAscImage

Image indicating ascending sort.

@property (retain) UIImage *sortAscImage

Declared In

NGridProxyDataSourceImpl.h

  sortDescImage

Image indicating descending sort.

@property (retain) UIImage *sortDescImage

Declared In

NGridProxyDataSourceImpl.h

  filterImage

Image indicating filter.

@property (retain) UIImage *filterImage

Declared In

NGridProxyDataSourceImpl.h

– styleManager

Asks the proxy data source to return style manager. Style manager used to set up styles in the grid.

- (NGridStyleManager *)styleManager

Declared In

NGridProxyDataSourceImpl.h

– filteredRows:andColumns:inGridView:withSettings:

Asks the proxy data source to perform filter operation and put remaining rows and columns into filteredRows and filteredColumns parameters.

- (void)filteredRows:(NSMutableSet *)filteredRows andColumns:(NSMutableSet *)filteredColumns inGridView:(NGridView *)gridView withSettings:(id<NGridFilterSettingsProtocol>)settings

Parameters

filteredRows

Remaining after filtering rows.

filteredColumns

Remaining after filtering columns.

gridView

Related grid view object.

settings

Filter settings.

Discussion

Proxy data source invokes this method to perform filtering.

Declared In

NGridProxyDataSourceImpl.h

– sortedRows:andColumns:inGridView:withSettings:

Asks the proxy data source to perform sort operation and put new rows and column sequences into newRowSequence and newColumnSequence parameters.

- (void)sortedRows:(NSMutableArray *)newRowSequence andColumns:(NSMutableArray *)newColumnSequence inGridView:(NGridView *)gridView withSettings:(id<NGridSortSettingsProtocol>)settings

Parameters

newRowSequence

Rows sequence after sorting.

newColumnSequence

Columns sequence after sorting.

gridView

Related grid view object.

settings

Sort settings.

Discussion

Proxy data source invokes this method to perform sorting.

Declared In

NGridProxyDataSourceImpl.h

– highlightedCellKeys:inGridView:withSettings:

Asks the proxy data source to find cells to highlight and put them into cellKeys parameter.

- (void)highlightedCellKeys:(NSMutableSet *)cellKeys inGridView:(NGridView *)gridView withSettings:(id<NGridHighlightSettingsProtocol>)settings

Parameters

cellKeys

Keys of highlighted cells.

gridView

Related grid view object.

settings

Highlight settings.

Discussion

Proxy data source invokes this method then highlight settings or data changed.

Declared In

NGridProxyDataSourceImpl.h

– conditionalFormattingScaleCellWithKey:inGridView:withSettings:

Asks the proxy data source to set conditional formatting for the specified cell and return result as value scale.

- (id<NGridScale>)conditionalFormattingScaleCellWithKey:(NGridCellKey *)cellKey inGridView:(NGridView *)gridView withSettings:(id<NGridConditionalFormattingSettingsProtocol>)settings

Parameters

cellKey

Key of the cell.

gridView

Related grid view object.

settings

Conditional formatting settings.

Declared In

NGridProxyDataSourceImpl.h

– applyConditionalFormattingRule:toCell:

Asks the proxy data source to apply concrete conditional formatting rule to the specified cell.

- (void)applyConditionalFormattingRule:(id<NGridConditionalFormattingRuleProtocol>)rule toCell:(NGridCell *)cell

Parameters

rule

Conditional formatting rule.

cell

Cell that needs to be configured.

Declared In

NGridProxyDataSourceImpl.h