//
//  SimpleGride.h
//  Apex Mobile
//
//  Created by Ray on 14-3-4.
//  Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TouchLabel.h"
#import "PageData.h"
#import "Constant.h"

@class SimpleGrid;
@protocol SimpleGridDelegate <NSObject>
@required

- (void) LongPress:(UIView*)view _id:(NSString*) _id;
- (void) Tap:(UIView*)view url:(NSString*) url;
@end


@interface SimpleGrid : UIScrollView
{
@private
    //    id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
    id <SimpleGridDelegate>  __weak griddelegate;
}
//
@property (weak, nonatomic) id <SimpleGridDelegate> griddelegate;
@property long basetag;
@property long row_count;
@property long column_count;
@property bool fullrowselect;
@property long top_line;
@property long left_line ;
@property long right_line;
@property long bottom_line;
@property long line;
- (void)drawSelect:(CGRect)rect;
-(void) initgrid :(PageData*) pageData;
//@property (strong,nonatomic) NSMutableDictionary* header;
@property (strong,nonatomic) NSArray* header_name;
@property (strong,nonatomic) NSArray* header_aname;
@property (strong,nonatomic)PageData* pageData;
@property (strong,nonatomic) UIView* backgroudView ;
@property (strong,nonatomic) NSMutableDictionary* hrefs;
@end
