de.matthiasmann.twl.model
Class PersistentStringModel

java.lang.Object
  extended by de.matthiasmann.twl.model.HasCallback
      extended by de.matthiasmann.twl.model.PersistentStringModel
All Implemented Interfaces:
StringModel, WithRunnableCallback

public class PersistentStringModel
extends HasCallback
implements StringModel


Constructor Summary
PersistentStringModel(java.util.prefs.Preferences prefs, java.lang.String prefKey, java.lang.String defaultValue)
           
 
Method Summary
 java.lang.String getValue()
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class de.matthiasmann.twl.model.HasCallback
addCallback, doCallback, hasCallbacks, removeCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.matthiasmann.twl.utils.WithRunnableCallback
addCallback, removeCallback
 

Constructor Detail

PersistentStringModel

public PersistentStringModel(java.util.prefs.Preferences prefs,
                             java.lang.String prefKey,
                             java.lang.String defaultValue)
Method Detail

getValue

public java.lang.String getValue()
Specified by:
getValue in interface StringModel

setValue

public void setValue(java.lang.String value)
Specified by:
setValue in interface StringModel