de.matthiasmann.twl.model
Class PersistentColorModel

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

public class PersistentColorModel
extends HasCallback
implements ColorModel

A Persistent color model.


Constructor Summary
PersistentColorModel(java.util.prefs.Preferences prefs, java.lang.String prefKey, Color defaultValue)
           
 
Method Summary
 void clearInitialError()
           
 java.lang.IllegalArgumentException getInitialError()
           
 Color getValue()
           
 void setValue(Color 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

PersistentColorModel

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

getInitialError

public java.lang.IllegalArgumentException getInitialError()

clearInitialError

public void clearInitialError()

getValue

public Color getValue()
Specified by:
getValue in interface ColorModel

setValue

public void setValue(Color value)
Specified by:
setValue in interface ColorModel