//
//  ListViewController.h
//  EAMiPad
//
//  Created by Satish Kumar Jakkula on 2/13/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ListViewDelegate <NSObject>
@optional

- (void)listItemSelected:(NSUInteger )index value:(NSString *)value;

@end


@interface ListViewController : UIViewController<UITableViewDataSource, UITableViewDelegate>
{
    
}

@property (nonatomic, strong) NSArray               *listViewData;
@property (nonatomic, strong) NSArray               *listViewHeaderData;
@property (nonatomic        ) NSUInteger            keyFieldIndex;
@property (unsafe_unretained) id<ListViewDelegate>  delegate;

- (id)initWithFrame:(CGRect )rect;
- (void)refresh;
- (void)deSelectRowAtIndex:(NSUInteger )index;
- (void)selectRowAtIndex:(NSInteger )index;
- (void)scrollToIndex:(NSUInteger )index;
- (void)enableRowSelection:(BOOL )enable;

@end
