//
//  PSTableElement.m
//  ArmorP3V1
//

#import "PSTableElement.h"
#import "PSMutex.h"

@implementation PSTableElement

@synthesize text = _text;
@synthesize cellHeight = _cellHeight;
@synthesize selected = _selected;
@synthesize value = _value;
@synthesize valueOfInteger = _valueOfInteger;
@synthesize valueOfBadge = _valueOfBadge;
@synthesize valueOfSummary = _valueOfSummary;
@synthesize nextModel = _nextModel;
@synthesize flgNextView  = _flgNextView;
@synthesize accessoryType = _accessoryType;
@synthesize strNextView = _strNextView;
@synthesize cellStyle = _cellStyle;

-(id)init{
    self = [super init];
    if (self) {
        _cellStyle = PS_CELL_NORMAL;
    }else {
        [[PSMutex mainMutex] raiseMemoryError];
    }
    [[PSMutex mainMutex] showMemoryAlertIfError];
    return self;
}

- (void)dealloc {
    [self.text release];
    [self.value release];
    [self.valueOfSummary release];
    [self.strNextView release];
    [self.nextModel release];
    [super dealloc];
}

@end
