
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< String > | updateContainerIDs () |
Static Public Attributes | |
| static final ERXKey< String > | AJAX_NOTIFICATION_CENTER_ID = new ERXKey<String>("ajaxNotificationCenterID") |
| static 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 String | PropertyChangedNotification = "PropertyChangedNotification" |
| static final String | RegisterPropertyObserverIDNotification = "RegisterPropertyObserverIDNotification" |
Private Attributes | |
| String | id |
| NSMutableDictionary< String, String > | propertyObserverIDs = new NSMutableDictionary<String, String>() |
| NSMutableArray< String > | updateContainerIDs = 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) |
| AjaxNotificationCenter | ( | WOContext | context | ) |
| 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.
| 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.
final ERXKey<String> AJAX_NOTIFICATION_CENTER_ID = new ERXKey<String>("ajaxNotificationCenterID") [static] |
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] |
NSMutableDictionary<String, String> propertyObserverIDs = new NSMutableDictionary<String, String>() [private] |
final NSSelector registerPropertyObserverID = new NSSelector("registerPropertyObserverID", ERXConstant.NotificationClassArray) [static, private] |
final String RegisterPropertyObserverIDNotification = "RegisterPropertyObserverIDNotification" [static] |
NSMutableArray<String> updateContainerIDs = new NSMutableArray<String>() [private] |
1.5.8