NGridCell Class Reference
| Inherits from | UIView |
|---|---|
| Declared in | NGridCell.h |
Overview
The NGridCell class defines base attributes and behavior of the cells. If you want to implement the new type of cell, create a class inherited from NGridCell.
NGridProxyDataSourceImpl (used as the default proxy data source) works with NGridCommonCell, so if you want to create your own cell inherit it from NGridCommonCell.
width
Returns cell width. This width include all included columns width.
@property (readonly) CGFloat widthDeclared In
NGridCell.h
height
Returns cell height. This height include all included rows height.
@property (readonly) CGFloat heightDeclared In
NGridCell.h
row
Returns row object.
@property (readonly) NGridRow *rowSee Also
specification of <NGridRow> class.
Declared In
NGridCell.h
column
Returns column object.
@property (readonly) NGridColumn *columnSee Also
specification of <NGridColumn> class.
Declared In
NGridCell.h
style
Returns cell style.
@property (nonatomic, readonly) NGridCellStyle *styleDeclared In
NGridCell.h
coordinate
The coordinate of the cell.
@property (retain) NGridCellCoordinate *coordinateDeclared In
NGridCell.h
reuseIdentifier
The reuse identifier used for cell caching and reusing. The proper way is to assign separate ID for each of the cell types (cells of headers, usual cells).
@property (readonly) NSString *reuseIdentifierDeclared In
NGridCell.h
parentGrid
Grid using cell. Must be set as pointer to grid view in which current cell actually appears.
@property (assign) NGridView *parentGridDeclared In
NGridCell.h
isHighlighted
A Boolean value that determines whether the cell is highlighted.
@property (nonatomic, assign) BOOL isHighlightedDiscussion
Highlighting may change cell background, text color and font etc.
Declared In
NGridCell.h
drawAsClickable
A Boolean value that determines whether the cell should looks like clickable.
@property (assign) BOOL drawAsClickableDiscussion
If set to YES – clickable cell background brush is used as background (if it is set in style).
Declared In
NGridCell.h
– initWithReuseIdentifier:
Init cell with reuse identifier. Init cell and set up its reuse identifier.
- (id)initWithReuseIdentifier:(NSString *)reuseIdentifierParameters
reuseIdentifier |
String ID which used to find this cell in reuse cache. |
|---|
Declared In
NGridCell.h
– prepareForReuse
Prepares cell to reuse. Clears inner state.
- (void)prepareForReuseDeclared In
NGridCell.h
– bestSizeConstrainedToSize:
Returns the size of the cell if it were rendered with the specified constraints.
- (CGSize)bestSizeConstrainedToSize:(CGSize)sizeParameters
size |
The maximum acceptable size for the string. If width or height equals to 0.0 method ignores corresponding constraints. |
|---|
Declared In
NGridCell.h
– applyStyle:
Applies the style to cell. Does not change the style in the proxy data source.
- (void)applyStyle:(NGridCellStyle *)styleParameters
style |
Style object. |
|---|
Declared In
NGridCell.h
– stringValue
Converts internal data to human readable format.
- (NSString *)stringValueDeclared In
NGridCell.h