de.sciss.app
Interface PreferenceNodeSync

All Known Implementing Classes:
AudioFileFormatPane, DynamicPrefChangeManager

public interface PreferenceNodeSync

Objects implementing this interface state that they will store their (and their children's) serialized representation in privately named entries in a given preference node

Version:
0.10, 20-May-05
Author:
Hanns Holger Rutz

Method Summary
 void setPreferences(java.util.prefs.Preferences prefs)
          Enables Preferences synchronization.
 

Method Detail

setPreferences

void setPreferences(java.util.prefs.Preferences prefs)
Enables Preferences synchronization. This method is not thread safe and must be called from the event thread. When a preference change is received, the GUI is updated and dispatches an event to registered listeners. Likewise, if the user adjusts the GUI value, the preference will be updated. The same is true, if you call one of the value changing methods.

Parameters:
prefs - the preferences node in which the values are stored, or null to disable prefs sync.