@@ -39,42 +39,51 @@ typedef enum _RETableViewCellType { |
39 | 39 | } RETableViewCellType; |
40 | 40 |
|
41 | 41 | /** |
42 | | - The `RETableViewCell` class defines the attributes and behavior of the cells that appear in UITableView objects. |
| 42 | + The `RETableViewCell` class defines the attributes and behavior of the cells that appear in `UITableView` objects. |
43 | 43 | |
44 | 44 | */ |
45 | 45 | @interface RETableViewCell : UITableViewCell <REActionBarDelegate> |
46 | 46 |
|
47 | 47 | ///----------------------------- |
48 | | -/// @name Managing Background Images |
| 48 | +/// @name Accessing Table View and Table View Manager |
| 49 | +///----------------------------- |
| 50 | + |
| 51 | +@property (weak, readwrite, nonatomic) UITableView *parentTableView; |
| 52 | +@property (weak, readwrite, nonatomic) RETableViewManager *tableViewManager; |
| 53 | + |
| 54 | +///----------------------------- |
| 55 | +/// @name Managing Cell Appearance |
49 | 56 | ///----------------------------- |
50 | 57 |
|
51 | 58 | @property (strong, readonly, nonatomic) UIImageView *backgroundImageView; |
52 | 59 | @property (strong, readonly, nonatomic) UIImageView *selectedBackgroundImageView; |
| 60 | +@property (strong, readwrite, nonatomic) REActionBar *actionBar; |
| 61 | + |
| 62 | ++ (CGFloat)heightWithItem:(RETableViewItem *)item tableViewManager:(RETableViewManager *)tableViewManager; |
| 63 | + |
| 64 | +- (void)updateActionBarNavigationControl; |
53 | 65 |
|
54 | 66 | ///----------------------------- |
55 | | -/// @name Accessing Table View and Table View Manager |
| 67 | +/// @name Accessing Row and Section |
56 | 68 | ///----------------------------- |
57 | 69 |
|
58 | | -@property (weak, readwrite, nonatomic) UITableView *parentTableView; |
59 | | -@property (weak, readwrite, nonatomic) RETableViewManager *tableViewManager; |
60 | | - |
61 | 70 | @property (assign, readwrite, nonatomic) NSInteger row; |
62 | 71 | @property (assign, readwrite, nonatomic) NSInteger sectionIndex; |
63 | 72 | @property (weak, readwrite, nonatomic) RETableViewSection *section; |
64 | 73 | @property (strong, readwrite, nonatomic) RETableViewItem *item; |
65 | | -@property (strong, readwrite, nonatomic) REActionBar *actionBar; |
66 | 74 | @property (assign, readonly, nonatomic) RETableViewCellType cellType; |
| 75 | +@property (strong, readonly, nonatomic) UIResponder *responder; |
| 76 | +@property (strong, readonly, nonatomic) NSIndexPath *indexPathForPreviousResponder; |
| 77 | +@property (strong, readonly, nonatomic) NSIndexPath *indexPathForNextResponder; |
67 | 78 |
|
68 | 79 | + (BOOL)canFocusWithItem:(RETableViewItem *)item; |
69 | | -+ (CGFloat)heightWithItem:(RETableViewItem *)item tableViewManager:(RETableViewManager *)tableViewManager; |
| 80 | + |
| 81 | +///----------------------------- |
| 82 | +/// @name Handling Cell Events |
| 83 | +///----------------------------- |
70 | 84 |
|
71 | 85 | - (void)cellDidLoad; |
72 | 86 | - (void)cellWillAppear; |
73 | 87 | - (void)cellDidDisappear; |
74 | | -- (void)updateActionBarNavigationControl; |
75 | | - |
76 | | -- (UIResponder *)responder; |
77 | | -- (NSIndexPath *)indexPathForPreviousResponder; |
78 | | -- (NSIndexPath *)indexPathForNextResponder; |
79 | 88 |
|
80 | 89 | @end |