Project Wonder 5.0

er.corebusinesslogic
Class ERCoreUserPreferences

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

public class ERCoreUserPreferences
extends Object
implements NSKeyValueCoding

Properties
er.corebusinesslogic.ERCoreUserPreferences.handlerClassNameer.corebusinesslogic.ERCoreUserPreferences.handlerClassName
           

Nested Class Summary
static class ERCoreUserPreferences._UserPreferenceHandler
           
 
Nested classes/interfaces inherited from interface 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.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Field Summary
static Logger 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
 boolean booleanValueForKey(String key)
           
 boolean booleanValueForKeyWithDefault(String key, boolean def)
           
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 Logger 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

booleanValueForKey

public boolean booleanValueForKey(String key)

booleanValueForKeyWithDefault

public boolean booleanValueForKeyWithDefault(String key,
                                             boolean def)

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.