de.matthiasmann.twl.model
Class BitfieldBooleanModel

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

public class BitfieldBooleanModel
extends HasCallback
implements BooleanModel

A boolean model mapped to a single bit on an IntegerModel


Constructor Summary
BitfieldBooleanModel(IntegerModel bitfield, int bit)
           
 
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

BitfieldBooleanModel

public BitfieldBooleanModel(IntegerModel bitfield,
                            int bit)
Method Detail

getValue

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

setValue

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