AjaxNotificationCenter Class Reference

Inherits er::directtoweb::components::ERDCustomComponent.

Collaboration diagram for AjaxNotificationCenter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AjaxNotificationCenter (WOContext context)
Object handleQueryWithUnboundKey (String key)
void handleTakeValueForUnboundKey (Object value, String key)
String id ()
void propertyChanged (NSNotification n)
void registerPropertyObserverID (NSNotification n)
void setD2wContext (D2WContext context)
NSMutableArray< StringupdateContainerIDs ()

Static Public Attributes

static final ERXKey< StringAJAX_NOTIFICATION_CENTER_ID = new ERXKey<String>("ajaxNotificationCenterID")
static final ERXKey
< PropertyChangedDelegate
PROPERTY_CHANGED_DELEGATE = new ERXKey<PropertyChangedDelegate>("propertyChangedDelegate")
static final ERXKey< StringPROPERTY_KEY = new ERXKey<String>("propertyKey")
static final ERXKey< StringPROPERTY_OBSERVER_ID = new ERXKey<String>("propertyObserverID")
static final String PropertyChangedNotification = "PropertyChangedNotification"
static final String RegisterPropertyObserverIDNotification = "RegisterPropertyObserverIDNotification"

Private Attributes

String id
NSMutableDictionary< String,
String
propertyObserverIDs = new NSMutableDictionary<String, String>()
NSMutableArray< StringupdateContainerIDs = new NSMutableArray<String>()

Static Private Attributes

static final Logger log = Logger.getLogger(AjaxNotificationCenter.class)
static final NSSelector propertyChanged = new NSSelector("propertyChanged", ERXConstant.NotificationClassArray)
static final NSSelector registerPropertyObserverID = new NSSelector("registerPropertyObserverID", ERXConstant.NotificationClassArray)


Constructor & Destructor Documentation

AjaxNotificationCenter ( WOContext  context  ) 


Member Function Documentation

Object handleQueryWithUnboundKey ( String  key  ) 

Since this component uses synchronization to update observers when the d2wContext changes, it cannot be non-synchronizing. However, if we want to be able to drop this component anywhere, it needs to be able to accept any binding value. So this method simply returns value for key from the dynamicBindings dictionary.

void handleTakeValueForUnboundKey ( Object  value,
String  key 
)

Since this component uses synchronization to update observers when the d2wContext changes, it cannot be non-synchronizing. However, if we want to be able to drop this component anywhere, it needs to be able to accept any binding value. So this method simply adds value for key to the dynamicBindings dictionary.

String id (  ) 

void propertyChanged ( NSNotification  n  ) 

void registerPropertyObserverID ( NSNotification  n  ) 

void setD2wContext ( D2WContext  value  ) 

Sets the D2WContext. Applies when used inside a property key repetition.

Reimplemented from ERDCustomComponent.


Member Data Documentation

final ERXKey<String> AJAX_NOTIFICATION_CENTER_ID = new ERXKey<String>("ajaxNotificationCenterID") [static]

String id [private]

final Logger log = Logger.getLogger(AjaxNotificationCenter.class) [static, private]

logging support

Reimplemented from ERDCustomComponent.

final ERXKey<PropertyChangedDelegate> PROPERTY_CHANGED_DELEGATE = new ERXKey<PropertyChangedDelegate>("propertyChangedDelegate") [static]

final ERXKey<String> PROPERTY_KEY = new ERXKey<String>("propertyKey") [static]

final ERXKey<String> PROPERTY_OBSERVER_ID = new ERXKey<String>("propertyObserverID") [static]

final NSSelector propertyChanged = new NSSelector("propertyChanged", ERXConstant.NotificationClassArray) [static, private]

final String PropertyChangedNotification = "PropertyChangedNotification" [static]

final NSSelector registerPropertyObserverID = new NSSelector("registerPropertyObserverID", ERXConstant.NotificationClassArray) [static, private]

final String RegisterPropertyObserverIDNotification = "RegisterPropertyObserverIDNotification" [static]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:41 2012 for Project Wonder by  doxygen 1.5.8