NGridDelegate Protocol Reference
Conforms to | UIScrollViewDelegate |
---|---|
Declared in | NGridDelegate.h |
Overview
The NGridDelegate protocol defines methods that should be implemented to provide the appearance and behavior of the grid.
– gridView:widthForColumnWithKey:
required method
Asks the delegate to return width of the column.
- (CGFloat)gridView:(NGridView *)gridView widthForColumnWithKey:(NSInteger)columnKey
Parameters
gridView |
Related grid view object. |
---|---|
columnKey |
Key of the column. |
Declared In
NGridDelegate.h
– gridView:heightForRowWithKey:
required method
Asks the delegate to return height of the column.
- (CGFloat)gridView:(NGridView *)gridView heightForRowWithKey:(NSInteger)rowKey
Parameters
gridView |
Related grid view object. |
---|---|
rowKey |
Key of the row. |
Declared In
NGridDelegate.h
– gridView:widthForHeaderRowWithKey:
Asks the delegate to return width of the row header.
- (CGFloat)gridView:(NGridView *)gridView widthForHeaderRowWithKey:(NSInteger)key
Parameters
gridView |
Related grid view object. |
---|---|
key |
Key of the row header. |
Declared In
NGridDelegate.h
– gridView:heightForHeaderColumnWithKey:
Asks the delegate to return height of the column header.
- (CGFloat)gridView:(NGridView *)gridView heightForHeaderColumnWithKey:(NSInteger)key
Parameters
gridView |
Related grid view object. |
---|---|
key |
Key of the column header. |
Declared In
NGridDelegate.h
– gridView:cellShouldHighlightOnTouchDown:
Asks the delegate whether the grid view should highlight the cell on touch. Return YES if the cell should be highlighted on touch.
- (BOOL)gridView:(NGridView *)gridView cellShouldHighlightOnTouchDown:(NGridCell *)cell
Parameters
gridView |
Related grid view object. |
---|---|
cell |
Cell object to test if the cell should be highlighted on touch down. |
Declared In
NGridDelegate.h
– gridView:cellShouldHighlightOnExpanderTouchDown:
Asks the delegate whether grid view should highlight cell on touch of the expander. Return YES if cell should be highlighted on the touch of the expander.
- (BOOL)gridView:(NGridView *)gridView cellShouldHighlightOnExpanderTouchDown:(NGridCell *)cell
Parameters
gridView |
Related grid view object. |
---|---|
cell |
Cell object to test if the cell should be highlighted on touch down on the expander. |
Declared In
NGridDelegate.h
– gridView:widthChangeNeeded:forColumnWithKey:
Asks the delegate to change the width of the cell in the grid view.
- (void)gridView:(NGridView *)gridView widthChangeNeeded:(CGFloat)newWidth forColumnWithKey:(NSInteger)key
Parameters
gridView |
Related grid view object. |
---|---|
newWidth |
New width of the cell column. |
key |
Key of the column. |
Declared In
NGridDelegate.h
– gridView:heightChangeNeeded:forRowWithKey:
Asks the delegate to change the height of the cell in the grid view.
- (void)gridView:(NGridView *)gridView heightChangeNeeded:(CGFloat)newHeight forRowWithKey:(NSInteger)key
Parameters
gridView |
Related grid view object. |
---|---|
newHeight |
New height of the cell row. |
key |
Key of the row. |
Declared In
NGridDelegate.h
– gridView:widthChangeNeeded:forRowHeaderWithKey:
Asks the delegate to change the width of the cell in the grid view.
- (void)gridView:(NGridView *)gridView widthChangeNeeded:(CGFloat)newWidth forRowHeaderWithKey:(NSInteger)key
Parameters
gridView |
Related grid view object. |
---|---|
newWidth |
New width of the cell column. |
key |
Key of the column from row headers. |
Declared In
NGridDelegate.h
– gridView:heightChangeNeeded:forColumnHeaderWithKey:
Asks the delegate to change the height of the cell in the grid view.
- (void)gridView:(NGridView *)gridView heightChangeNeeded:(CGFloat)newHeight forColumnHeaderWithKey:(NSInteger)key
Parameters
gridView |
Related grid view object. |
---|---|
newHeight |
New height of the cell row. |
key |
Key of the row from column headers. |
Declared In
NGridDelegate.h
– gridViewWillUpdate:
Called before the start of data source updating in the grid view.
- (void)gridViewWillUpdate:(NGridView *)gridView
Parameters
gridView |
Related grid view object. |
---|
Declared In
NGridDelegate.h
– gridViewDidUpdate:
Called after the end of data source updating in the grid view.
- (void)gridViewDidUpdate:(NGridView *)gridView
Parameters
gridView |
Related grid view object. |
---|
Declared In
NGridDelegate.h
– gridViewWillLayout:
Called before layouting in the grid view.
- (void)gridViewWillLayout:(NGridView *)gridView
Parameters
gridView |
Related grid view object. |
---|
Declared In
NGridDelegate.h
– gridViewDidLayout:
Called after layouting in the grid view.
- (void)gridViewDidLayout:(NGridView *)gridView
Parameters
gridView |
Related grid view object. |
---|
Declared In
NGridDelegate.h
– gridView:didTapCell:
Called after touch in the cell of the grid view.
- (void)gridView:(NGridView *)gridView didTapCell:(NGridCell *)cell
Parameters
gridView |
Related grid view object. |
---|---|
cell |
Cell which was touched. |
Declared In
NGridDelegate.h
– gridView:didDoubleTapCell:
Called after double tap in the cell of the grid view.
- (void)gridView:(NGridView *)gridView didDoubleTapCell:(NGridCell *)cell
Parameters
gridView |
Related grid view object. |
---|---|
cell |
Cell which was touched. |
Declared In
NGridDelegate.h
– gridView:didLongTapCell:
Called after long tap in the cell of the grid view and only if selection is off.
- (void)gridView:(NGridView *)gridView didLongTapCell:(NGridCell *)cell
Parameters
gridView |
Related grid view object. |
---|---|
cell |
Cell which was touched. |
Declared In
NGridDelegate.h
– gridViewDidChangeSelection:
Called after selection changes in the grid view.
- (void)gridViewDidChangeSelection:(NGridView *)gridView
Parameters
gridView |
Related grid view object. |
---|
Declared In
NGridDelegate.h
– gridView:didSelectArea:
Called after the area was selected in the grid view.
- (void)gridView:(NGridView *)gridView didSelectArea:(NGridSelectionArea *)area
Parameters
gridView |
Related grid view object. |
---|---|
area |
Selection area identify selected cells. |
Declared In
NGridDelegate.h
– gridView:willSelectRowWithKey:
Called before the row with number rowKey was selected in the grid view.
- (void)gridView:(NGridView *)gridView willSelectRowWithKey:(NSInteger)rowKey
Parameters
gridView |
Related grid view object. |
---|---|
rowKey |
Key of the row. |
Declared In
NGridDelegate.h
– gridView:willSelectColumnWithKey:
Called before the column with number columnKey was selected in the grid view.
- (void)gridView:(NGridView *)gridView willSelectColumnWithKey:(NSInteger)columnKey
Parameters
gridView |
Related grid view object. |
---|---|
columnKey |
Key of the column. |
Declared In
NGridDelegate.h
– gridView:didSelectRowWithKey:
Called after the row with number rowKey was selected in the grid view.
- (void)gridView:(NGridView *)gridView didSelectRowWithKey:(NSInteger)rowKey
Parameters
gridView |
Related grid view object. |
---|---|
rowKey |
Key of the row. |
Declared In
NGridDelegate.h
– gridView:didSelectColumnWithKey:
Called after the column with number columnKey was selected in the grid view.
- (void)gridView:(NGridView *)gridView didSelectColumnWithKey:(NSInteger)columnKey
Parameters
gridView |
Related grid view object. |
---|---|
columnKey |
Key of the column. |
Declared In
NGridDelegate.h
– gridView:willChangeFrame:toFrame:
Called before the grid view frame changed.
- (void)gridView:(NGridView *)gridView willChangeFrame:(CGRect)fromFrame toFrame:(CGRect)toFrame
Parameters
gridView |
Related gridView. |
---|---|
fromFrame |
Frame before change (current frame). |
toFrame |
Frame after change. |
Declared In
NGridDelegate.h
– gridView:didChangeFrame:toFrame:
Called after the grid view frame changed.
- (void)gridView:(NGridView *)gridView didChangeFrame:(CGRect)fromFrame toFrame:(CGRect)toFrame
Parameters
gridView |
Related gridView. |
---|---|
fromFrame |
Frame before change. |
toFrame |
Frame after change (current frame). |
Declared In
NGridDelegate.h
– gridView:didTapSelectionArea:
Called if touch in the selection area is caught.
- (void)gridView:(NGridView *)gridView didTapSelectionArea:(NGridSelectionArea *)selectionArea
Parameters
gridView |
Related gridView. |
---|---|
selectionArea |
Selection area. |
Declared In
NGridDelegate.h
– gridView:shouldUseExternalEditorForCellWithKey:
Asks the delegate whether the grid view should use an external editor.
- (BOOL)gridView:(NGridView *)gridView shouldUseExternalEditorForCellWithKey:(NGridCellKey *)cellKey
Parameters
gridView |
Related gridView. |
---|---|
cellKey |
Key of the cell. |
Declared In
NGridDelegate.h
– gridView:editorForCellWithKey:
Asks the delegate to return editor for the specified cell.
- (NGridCellEditorBase *)gridView:(NGridView *)gridView editorForCellWithKey:(NGridCellKey *)cellKey
Parameters
gridView |
Related gridView. |
---|---|
cellKey |
Key of the cell. |
Declared In
NGridDelegate.h
– gridView:willBeginEditingCellWithKey:
Called before the grid view is about to go into editing mode.
- (void)gridView:(NGridView *)gridView willBeginEditingCellWithKey:(NGridCellKey *)cellKey
Parameters
gridView |
Related gridView. |
---|---|
cellKey |
Key of the cell. |
Declared In
NGridDelegate.h
– gridView:didFinishEditingCellWithKey:
Called after the grid view has left editing mode.
- (void)gridView:(NGridView *)gridView didFinishEditingCellWithKey:(NGridCellKey *)cellKey
Parameters
gridView |
Related gridView. |
---|---|
cellKey |
Key of the cell. |
Declared In
NGridDelegate.h