2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
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
22 #include <SOGoUI/UIxComponent.h>
24 @interface UIxContactsFilterPanel : UIxComponent
27 NSString *searchCriteria;
32 #include <SOGoUI/UIxComponent.h>
35 @implementation UIxContactsFilterPanel
37 static NSArray *filters = nil;
41 NSMutableDictionary *md;
44 md = [[NSMutableDictionary alloc] initWithCapacity:8];
45 ma = [[NSMutableArray alloc] initWithCapacity:4];
48 [md release]; md = nil;
49 [ma release]; ma = nil;
54 if ((self = [super init]))
65 [self->searchCriteria release];
66 [self->searchText release];
72 - (void) setSearchText: (NSString *)_txt
74 ASSIGNCOPY(self->searchText, _txt);
77 - (void) setSearchCriteria: (NSString *)_txt
79 ASSIGNCOPY(self->searchText, _txt);
82 - (NSString *) searchText
85 searchText = [[self queryParameterForKey: @"search"] copy];
90 - (NSString *) searchCriteria
93 searchCriteria = [[self queryParameterForKey: @"criteria"] copy];
95 return searchCriteria;
100 - (NSArray *) filters
107 - (NSString *) filterLabel
110 return [[[self context] page] labelForKey: [self valueForKey:@"filter"]];
112 return [self valueForKey: @"filter"];
116 - (NSString *) selectedFilter
118 return [self queryParameterForKey: @"filterpopup"];
121 @end /* UIxContactsFilterPanel */