-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
TiUITableViewProxy.h
42 lines (34 loc) · 1.25 KB
/
TiUITableViewProxy.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
/**
* 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
#ifndef USE_TI_UISEARCHBAR
#define USE_TI_UISEARCHBAR
#endif
#include "TiViewProxy.h"
@class TiUITableViewRowProxy;
@class TiUITableViewSectionProxy;
@interface TiUITableViewProxy : TiViewProxy
{
NSMutableArray *sections;
}
-(void)setData:(id)args withObject:(id)properties;
-(NSArray*)data;
//Sections and Data are the sanitized version.
@property(nonatomic,readwrite,copy) NSArray *sections;
-(int)sectionCount;
#pragma mark NON-JS functionality
//internalSections is until TODO: Stop JS from using ValueForKey
@property(nonatomic,readwrite,retain) NSMutableArray *internalSections;
-(NSInteger)indexForRow:(TiUITableViewRowProxy*)row;
-(NSInteger)sectionIndexForIndex:(NSInteger)theindex;
-(TiUITableViewRowProxy*)rowForIndex:(NSInteger)index section:(NSInteger*)section;
-(NSIndexPath *)indexPathFromInt:(NSInteger)index;
-(NSInteger)indexForIndexPath:(NSIndexPath *)path;
-(void)rememberSection:(TiUITableViewSectionProxy *)section;
-(void)forgetSection:(TiUITableViewSectionProxy *)section;
@end
#endif