2 Copyright (C) 2000-2003 SKYRIX Software AG
4 This file is part of OGo
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 #import <NGObjWeb/WOComponent.h>
25 @interface TabView : WOComponent
36 @implementation TabView
39 if ((self = [super init])) {
40 [self takeValue:@"persons" forKey:@"selection"];
41 [self takeValue:@"#FCF8DF" forKey:@"bgColor"];
46 [self->bgColor release];
47 [self->rightCornerIcon release];
48 [self->leftCornerIcon release];
49 [self->selection release];
55 - (void)setBgColor:(id)_col {
56 ASSIGN(self->bgColor, _col);
62 - (void)setRightCornerIcon:(id)_icon {
63 ASSIGN(self->rightCornerIcon, _icon);
65 - (id)rightCornerIcon {
66 return self->rightCornerIcon;
69 - (void)setLeftCornerIcon:(id)_icon {
70 ASSIGN(self->leftCornerIcon, _icon);
72 - (id)leftCornerIcon {
73 return self->leftCornerIcon;
76 - (void)setSelection:(id)_col {
77 ASSIGN(self->selection, _col);
80 return self->selection;
85 - (id)increaseClicks {
88 //[self debugWithFormat:@"increasing clicks .."];
90 clicks = [[self valueForKey:@"clicks"] intValue];
93 [self takeValue:[NSNumber numberWithInt:clicks] forKey:@"clicks"];