com.metamatrix.toolbox.event
Class UserPreferencesEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.metamatrix.toolbox.event.UserPreferencesEvent
All Implemented Interfaces:
java.io.Serializable

public class UserPreferencesEvent
extends java.util.EventObject

This event is fired whenever a user Preferences are changed. Listeners can obtain the current preference values from from CurrentConfiguration(ApplicationConstants.SOME_FILTER_CONSTANT)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UserPreferencesEvent(java.lang.Object source, java.util.Properties newPreferences, java.util.Properties oldPreferences)
           
 
Method Summary
 java.util.Properties getChanges()
          Return a Properties object containing only the set of properties that have either changed or have been newly created.
 java.util.Properties getNewPreferences()
          Return a Properties object containing the new set of preferences.
 java.util.Properties getOldPreferences()
          Return a Properties object containing the preferences BEFORE this event occurred.
 
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

UserPreferencesEvent

public UserPreferencesEvent(java.lang.Object source,
                            java.util.Properties newPreferences,
                            java.util.Properties oldPreferences)
Method Detail

getNewPreferences

public java.util.Properties getNewPreferences()
Return a Properties object containing the new set of preferences.


getOldPreferences

public java.util.Properties getOldPreferences()
Return a Properties object containing the preferences BEFORE this event occurred.


getChanges

public java.util.Properties getChanges()
Return a Properties object containing only the set of properties that have either changed or have been newly created.



Copyright © 2009. All Rights Reserved.