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
24 #include <NGObjWeb/NGObjWeb.h>
27 WOComponent JavaScript object
41 bool isEventLoggingEnabled
43 bool synchronizesVariablesWithBindings
48 WOComponent pageWithName(name)
49 WOElement templateWithName(name)
50 Object performParentAction(name)
51 bool canGetValueForBinding(name)
52 bool canSetValueForBinding(name)
53 setValueForBinding(value,name)
54 Object valueForBinding(name)
56 print(string[,...string])
57 ResourceManager getResourceManager()
60 static NSNumber *nYes = nil;
61 static NSNumber *nNo = nil;
63 #define ENSURE_BOOLNUMS {\
64 if (nYes == nil) nYes = [[NSNumber alloc] initWithBool:YES];\
65 if (nNo == nil) nNo = [[NSNumber alloc] initWithBool:NO];\
68 @implementation WOComponent(JSKVC)
71 - (void)takeValue:(id)_value forJSPropertyNamed:(NSString *)_key {
72 [self takeValue:_value forKey:_key];
74 - (id)valueForJSPropertyNamed:(NSString *)_key {
75 return [self valueForKey:_key];
79 @end /* WOComponent(JSKVC) */