public class NotificationWrapper extends java.lang.Object implements Notification
Notification methods are delegated to the wrapped notification.| Modifier and Type | Field and Description |
|---|---|
protected Notification |
notification
The notification that is being wrapped.
|
protected java.lang.Object |
notifier
An optional override value for the notification's notifier.
|
ADD, ADD_MANY, CREATE, EVENT_TYPE_COUNT, MOVE, NO_FEATURE_ID, NO_INDEX, REMOVE, REMOVE_MANY, REMOVING_ADAPTER, RESOLVE, SET, UNSET| Constructor and Description |
|---|
NotificationWrapper(Notification notification)
Create an instance with the specified notification.
|
NotificationWrapper(java.lang.Object notifier,
Notification notification)
Create an instance with the specified notifier and notification.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEventType()
Delegates to the getEventType method of the notification.
|
java.lang.Object |
getFeature()
Delegates to the getFeature method of the notification.
|
int |
getFeatureID(java.lang.Class<?> expectedClass)
Delegates to the getFeatureID method of the notification.
|
boolean |
getNewBooleanValue()
Delegates to the getNewBooleanValue method of the notification.
|
byte |
getNewByteValue()
Delegates to the getNewByteValue method of the notification.
|
char |
getNewCharValue()
Delegates to the getNewCharValue method of the notification.
|
double |
getNewDoubleValue()
Delegates to the getNewDoubleValue method of the notification.
|
float |
getNewFloatValue()
Delegates to the getNewFloatValue method of the notification.
|
int |
getNewIntValue()
Delegates to the getNewIntValue method of the notification.
|
long |
getNewLongValue()
Delegates to the getNewLongValue method of the notification.
|
short |
getNewShortValue()
Delegates to the getNewShortValue method of the notification.
|
java.lang.String |
getNewStringValue()
Delegates to the getNewStringValue method of the notification.
|
java.lang.Object |
getNewValue()
Delegates to the getNewValue method of the notification.
|
java.lang.Object |
getNotifier()
Returns the local notifier if set; otherwise delegates to the getNotifier method of the notification.
|
boolean |
getOldBooleanValue()
Delegates to the getOldBooleanValue method of the notification.
|
byte |
getOldByteValue()
Delegates to the getOldByteValue method of the notification.
|
char |
getOldCharValue()
Delegates to the getOldCharValue method of the notification.
|
double |
getOldDoubleValue()
Delegates to the getOldDoubleValue method of the notification.
|
float |
getOldFloatValue()
Delegates to the getOldFloatValue method of the notification.
|
int |
getOldIntValue()
Delegates to the getOldIntValue method of the notification.
|
long |
getOldLongValue()
Delegates to the getOldLongValue method of the notification.
|
short |
getOldShortValue()
Delegates to the getOldShortValue method of the notification.
|
java.lang.String |
getOldStringValue()
Delegates to the getOldStringValue method of the notification.
|
java.lang.Object |
getOldValue()
Delegates to the getOldValue method of the notification.
|
int |
getPosition()
Delegates to the getPosition method of the notification.
|
boolean |
isReset()
Delegates to the isReset method of the notification.
|
boolean |
isTouch()
Delegates to the isTouch method of the notification.
|
boolean |
merge(Notification notification)
Delegates to the merge method of the notification.
|
boolean |
wasSet()
Delegates to the wasSet method of the notification.
|
protected Notification notification
protected java.lang.Object notifier
public NotificationWrapper(Notification notification)
public NotificationWrapper(java.lang.Object notifier,
Notification notification)
public java.lang.Object getNotifier()
getNotifier in interface Notificationpublic int getEventType()
getEventType in interface NotificationNotifierpublic int getFeatureID(java.lang.Class<?> expectedClass)
getFeatureID in interface NotificationexpectedClass - the class to which the ID is relative.Notification.NO_FEATURE_IDpublic java.lang.Object getFeature()
getFeature in interface Notificationpublic java.lang.Object getOldValue()
getOldValue in interface Notificationpublic java.lang.Object getNewValue()
getNewValue in interface Notificationpublic boolean wasSet()
wasSet in interface Notificationpublic boolean isTouch()
isTouch in interface Notificationpublic boolean isReset()
isReset in interface Notificationpublic int getPosition()
getPosition in interface Notificationpublic boolean merge(Notification notification)
merge in interface Notificationpublic boolean getOldBooleanValue()
getOldBooleanValue in interface Notificationpublic boolean getNewBooleanValue()
getNewBooleanValue in interface Notificationpublic byte getOldByteValue()
getOldByteValue in interface Notificationpublic byte getNewByteValue()
getNewByteValue in interface Notificationpublic char getOldCharValue()
getOldCharValue in interface Notificationpublic char getNewCharValue()
getNewCharValue in interface Notificationpublic double getOldDoubleValue()
getOldDoubleValue in interface Notificationpublic double getNewDoubleValue()
getNewDoubleValue in interface Notificationpublic float getOldFloatValue()
getOldFloatValue in interface Notificationpublic float getNewFloatValue()
getNewFloatValue in interface Notificationpublic int getOldIntValue()
getOldIntValue in interface Notificationpublic int getNewIntValue()
getNewIntValue in interface Notificationpublic long getOldLongValue()
getOldLongValue in interface Notificationpublic long getNewLongValue()
getNewLongValue in interface Notificationpublic short getOldShortValue()
getOldShortValue in interface Notificationpublic short getNewShortValue()
getNewShortValue in interface Notificationpublic java.lang.String getOldStringValue()
getOldStringValue in interface Notificationpublic java.lang.String getNewStringValue()
getNewStringValue in interface NotificationCopyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature