de.matthiasmann.twl.model
Class PersistentIntegerModel

java.lang.Object
  extended by de.matthiasmann.twl.model.HasCallback
      extended by de.matthiasmann.twl.model.AbstractIntegerModel
          extended by de.matthiasmann.twl.model.PersistentIntegerModel
All Implemented Interfaces:
IntegerModel, WithRunnableCallback

public class PersistentIntegerModel
extends AbstractIntegerModel


Constructor Summary
PersistentIntegerModel(int minValue, int maxValue, int value)
           
PersistentIntegerModel(java.util.prefs.Preferences prefs, java.lang.String prefKey, int minValue, int maxValue, int defaultValue)
           
 
Method Summary
 int getMaxValue()
           
 int getMinValue()
           
 int getValue()
           
 void setValue(int 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

PersistentIntegerModel

public PersistentIntegerModel(java.util.prefs.Preferences prefs,
                              java.lang.String prefKey,
                              int minValue,
                              int maxValue,
                              int defaultValue)

PersistentIntegerModel

public PersistentIntegerModel(int minValue,
                              int maxValue,
                              int value)
Method Detail

getValue

public int getValue()

getMinValue

public int getMinValue()

getMaxValue

public int getMaxValue()

setValue

public void setValue(int value)