org.eclipse.rwt.service
Class SettingStoreEvent
java.lang.Object
java.util.EventObject
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
Fields inherited from class java.util.EventObject |
source |
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 |
SettingStoreEvent
public SettingStoreEvent(ISettingStore source,
java.lang.String attribute,
java.lang.String oldValue,
java.lang.String newValue)
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
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.