forked from tidev/titanium-sdk
/
TiUITableViewRowProxy.h
60 lines (46 loc) · 1.53 KB
/
TiUITableViewRowProxy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#ifdef USE_TI_UITABLEVIEW
#import "TiViewProxy.h"
#import "TiDimension.h"
@class TiUITableViewCell;
@class TiUITableView;
@class TiUITableViewSectionProxy;
typedef enum
{
TiCellBackgroundViewPositionTop,
TiCellBackgroundViewPositionMiddle,
TiCellBackgroundViewPositionBottom
} TiCellBackgroundViewPosition;
@interface TiUITableViewRowProxy : TiViewProxy <TiProxyDelegate>
{
@private
NSString *tableClass;
TiUITableView *table;
TiUITableViewSectionProxy *section;
TiDimension height;
CGFloat rowHeight;
UIView * rowContainerView;
BOOL modifyingRow;
NSInteger row;
TiUITableViewCell* callbackCell;
}
#pragma mark Public APIs
@property(nonatomic,readonly) NSString *tableClass;
#pragma mark Framework
@property(nonatomic,readwrite,assign) TiUITableView *table;
@property(nonatomic,readwrite,assign) TiUITableViewSectionProxy *section;
@property(nonatomic,readwrite,assign) NSInteger row;
@property(nonatomic,readwrite,assign) TiUITableViewCell* callbackCell;
-(void)initializeTableViewCell:(UITableViewCell*)cell;
-(void)renderTableViewCell:(UITableViewCell*)cell;
-(CGFloat)rowHeight:(CGRect)bounds;
-(TiProxy *)touchedViewProxyInCell:(UITableViewCell *)targetCell;
-(id)createEventObject:(id)initialObject;
-(void)updateRow:(NSDictionary*)data withObject:(NSDictionary*)properties;
@end
#endif