com.tensegrity.generic.util.prefs
Class PreferenceEvent

java.lang.Object
  extended bycom.tensegrity.generic.util.prefs.PreferenceEvent

public class PreferenceEvent
extends java.lang.Object

An event emitted by a Preference instance to indicate that a change in the values of the preferences occurred.

Version:
$Id: PreferenceEvent.java,v 1.3 2004/06/28 10:38:01 AndreasEbbert Exp $
Author:
Andreas Ebbert

Constructor Summary
PreferenceEvent(java.lang.String key, java.lang.Object value)
          Constructs a new PreferenceEvent instance.
 
Method Summary
 java.lang.String getKey()
          Returns the key of the changed preference.
 java.lang.Object getValue()
          Returns the value of the changed preference.
 java.lang.String toString()
          Returns a string representation for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreferenceEvent

public PreferenceEvent(java.lang.String key,
                       java.lang.Object value)
Constructs a new PreferenceEvent instance.

Parameters:
key - the key of the setting that was changed.
value - the new value for the preference setting.
Method Detail

getKey

public java.lang.String getKey()
Returns the key of the changed preference.

Returns:
the key of the changed preference.

getValue

public java.lang.Object getValue()
Returns the value of the changed preference.

Returns:
the value of the changed preference.

toString

public java.lang.String toString()
Returns a string representation for this object.

Returns:
a string representation for this object.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.