de.matthiasmann.twl.model
Class SimpleBooleanModel

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

public class SimpleBooleanModel
extends HasCallback
implements BooleanModel

A simple boolean model


Constructor Summary
SimpleBooleanModel()
           
SimpleBooleanModel(boolean value)
           
 
Method Summary
 boolean getValue()
           
 void setValue(boolean 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

SimpleBooleanModel

public SimpleBooleanModel()

SimpleBooleanModel

public SimpleBooleanModel(boolean value)
Method Detail

getValue

public boolean getValue()
Specified by:
getValue in interface BooleanModel

setValue

public void setValue(boolean value)
Specified by:
setValue in interface BooleanModel