//
//  REDetailsComponent.h
//  Ehon
//
//  Created by pierre oleo on 17/06/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
@class REDetailsReadCell;
@class REReadDetailsView;
@interface REDetailsComponent : NSView {
	NSInteger componentMode;
	NSView * componentCell;	
	NSString  * componentLabel, * componentKVCKey;	
	REReadDetailsView * parentDetailsView;
	CGFloat processedHeight;
	NSDictionary *customConfig;
	BOOL editableMode;
}


@property (assign) NSInteger componentMode;
@property (assign) 	CGFloat processedHeight;
@property (assign) 	REReadDetailsView * parentDetailsView;
@property (retain) NSView * componentCell;
@property (copy) NSString  * componentLabel;
@property (copy) NSString * componentKVCKey;
@property (retain) 	NSDictionary *customConfig;

@property (assign) BOOL editableMode;
+(id)componentWithMode:(int)aMode label:(NSString *)aLabel keyForKVC:(NSString *)aKey frame:(NSRect)aFrame componentConfig:(NSDictionary *)aConfig;
-(CGFloat) processedHeight;
-(void)bindToArrayController:(NSArrayController *)anAc;
-(CGFloat) requiredHeightForWidth:(CGFloat)aWidth;
@end
