Project Wonder 2.0

er.corebusinesslogic
Class ERCoreUserPreferences

java.lang.Object
  extended byer.corebusinesslogic.ERCoreUserPreferences
All Implemented Interfaces:
NSKeyValueCoding

public class ERCoreUserPreferences
extends Object
implements NSKeyValueCoding


Nested Class Summary
static class ERCoreUserPreferences._UserPreferenceHandler
           
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Field Summary
static ERXLogger log
          Logging support
static String PreferenceDidChangeNotification
          Notification that is posted when preferences change
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
_CLASS, NullValue
 
Constructor Summary
ERCoreUserPreferences()
           
 
Method Summary
protected  Object decodedValue(String encodedValue)
           
protected  String encodedValue(Object value)
           
protected  EOEnterpriseObject preferenceRecordForKey(String key, EOEditingContext ec)
           
protected  NSArray preferences(EOEditingContext ec)
           
 void registerHandlers()
          Registers notification handlers for user preference notifications.
 void takeValueForKey(Object value, String key)
           
static ERCoreUserPreferences userPreferences()
          Gets the singleton instance for interacting with the user preference system.
 Object valueForKey(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final ERXLogger log
Logging support


PreferenceDidChangeNotification

public static final String PreferenceDidChangeNotification
Notification that is posted when preferences change

See Also:
Constant Field Values
Constructor Detail

ERCoreUserPreferences

public ERCoreUserPreferences()
Method Detail

userPreferences

public static ERCoreUserPreferences userPreferences()
Gets the singleton instance for interacting with the user preference system.

Returns:
single instance of the user preferences

registerHandlers

public void registerHandlers()
Registers notification handlers for user preference notifications. These are mainly used within the context of D2W pages.


preferences

protected NSArray preferences(EOEditingContext ec)

preferenceRecordForKey

protected EOEnterpriseObject preferenceRecordForKey(String key,
                                                    EOEditingContext ec)

encodedValue

protected String encodedValue(Object value)

decodedValue

protected Object decodedValue(String encodedValue)

valueForKey

public Object valueForKey(String key)
Specified by:
valueForKey in interface NSKeyValueCoding

takeValueForKey

public void takeValueForKey(Object value,
                            String key)
Specified by:
takeValueForKey in interface NSKeyValueCoding

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.