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 width
Declared In
NGridCell.h
height
Returns cell height. This height include all included rows height.
@property (readonly) CGFloat height
Declared In
NGridCell.h
row
Returns row object.
@property (readonly) NGridRow *row
See Also
specification of <NGridRow> class.
Declared In
NGridCell.h
column
Returns column object.
@property (readonly) NGridColumn *column
See Also
specification of <NGridColumn> class.
Declared In
NGridCell.h
style
Returns cell style.
@property (nonatomic, readonly) NGridCellStyle *style
Declared In
NGridCell.h
coordinate
The coordinate of the cell.
@property (retain) NGridCellCoordinate *coordinate
Declared 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 *reuseIdentifier
Declared In
NGridCell.h
parentGrid
Grid using cell. Must be set as pointer to grid view in which current cell actually appears.
@property (assign) NGridView *parentGrid
Declared In
NGridCell.h
isHighlighted
A Boolean value that determines whether the cell is highlighted.
@property (nonatomic, assign) BOOL isHighlighted
Discussion
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 drawAsClickable
Discussion
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 *)reuseIdentifier
Parameters
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)prepareForReuse
Declared In
NGridCell.h
– bestSizeConstrainedToSize:
Returns the size of the cell if it were rendered with the specified constraints.
- (CGSize)bestSizeConstrainedToSize:(CGSize)size
Parameters
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 *)style
Parameters
style |
Style object. |
---|
Declared In
NGridCell.h
– stringValue
Converts internal data to human readable format.
- (NSString *)stringValue
Declared In
NGridCell.h