Eclipse Rich Ajax Platform

org.eclipse.rwt.service
Class SettingStoreEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.rwt.service.SettingStoreEvent
All Implemented Interfaces:
java.io.Serializable

public final class SettingStoreEvent
extends java.util.EventObject

A SettingStoreEvent holds information regarding the change of a single attribute inside the setting store. The change can be one of the following:

Note: Clients are responsible for using the getAttributeName() method, to check if the changed attribute is of interest to them.

Since:
1.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SettingStoreEvent(ISettingStore source, java.lang.String attribute, java.lang.String oldValue, java.lang.String newValue)
           
 
Method Summary
 java.lang.String getAttributeName()
          Returns the name of the changed attribute.
 java.lang.String getNewValue()
          Return the new value of the attribute
 java.lang.String getOldValue()
          Returns the previous value of the attribute.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SettingStoreEvent

public SettingStoreEvent(ISettingStore source,
                         java.lang.String attribute,
                         java.lang.String oldValue,
                         java.lang.String newValue)
Method Detail

getAttributeName

public java.lang.String getAttributeName()
Returns the name of the changed attribute.

Returns:
a String; never null

getNewValue

public java.lang.String getNewValue()
Return the new value of the attribute

Returns:
a String; may be null if the attribute has been removed from the store

getOldValue

public java.lang.String getOldValue()
Returns the previous value of the attribute.

Returns:
a String; may be null if the attribute did not exist previously

Eclipse Rich Ajax Platform

Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.