Project Wonder 5.0

er.corebusinesslogic
Class ERCoreUserPreferences

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

public class ERCoreUserPreferences
extends java.lang.Object
implements com.webobjects.foundation.NSKeyValueCoding


Nested Class Summary
static class ERCoreUserPreferences._UserPreferenceHandler
           
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.DefaultImplementation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.Utility, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
 
Field Summary
static org.apache.log4j.Logger log
          Logging support
static java.lang.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(java.lang.String key)
           
 boolean booleanValueForKeyWithDefault(java.lang.String key, boolean def)
           
protected  java.lang.Object decodedValue(java.lang.String encodedValue)
           
protected  java.lang.String encodedValue(java.lang.Object value)
           
protected  com.webobjects.eocontrol.EOEnterpriseObject preferenceRecordForKey(java.lang.String key, com.webobjects.eocontrol.EOEditingContext ec)
           
protected  com.webobjects.foundation.NSArray preferences(com.webobjects.eocontrol.EOEditingContext ec)
           
 void registerHandlers()
          Registers notification handlers for user preference notifications.
 void takeValueForKey(java.lang.Object value, java.lang.String key)
           
static ERCoreUserPreferences userPreferences()
          Gets the singleton instance for interacting with the user preference system.
 java.lang.Object valueForKey(java.lang.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 org.apache.log4j.Logger log
Logging support


PreferenceDidChangeNotification

public static final java.lang.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 com.webobjects.foundation.NSArray preferences(com.webobjects.eocontrol.EOEditingContext ec)

preferenceRecordForKey

protected com.webobjects.eocontrol.EOEnterpriseObject preferenceRecordForKey(java.lang.String key,
                                                                             com.webobjects.eocontrol.EOEditingContext ec)

encodedValue

protected java.lang.String encodedValue(java.lang.Object value)

decodedValue

protected java.lang.Object decodedValue(java.lang.String encodedValue)

valueForKey

public java.lang.Object valueForKey(java.lang.String key)
Specified by:
valueForKey in interface com.webobjects.foundation.NSKeyValueCoding

takeValueForKey

public void takeValueForKey(java.lang.Object value,
                            java.lang.String key)
Specified by:
takeValueForKey in interface com.webobjects.foundation.NSKeyValueCoding

booleanValueForKey

public boolean booleanValueForKey(java.lang.String key)

booleanValueForKeyWithDefault

public boolean booleanValueForKeyWithDefault(java.lang.String key,
                                             boolean def)

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.