public class BooleanModel extends DefaultListenable<java.lang.Boolean> implements Lockable
| Constructor and Description |
|---|
BooleanModel(boolean b) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getValue() |
boolean |
isLocked() |
void |
setLock(boolean isLock) |
void |
setValue(boolean newValue) |
addListener, notifyChange, removeListenerpublic BooleanModel(boolean b)
b - the initial value for the booleanpublic void setValue(boolean newValue)
newValue - the new value. Check isLocked() before attempting
thisjava.lang.IllegalStateException - if object is locked.public boolean getValue()
public void setLock(boolean isLock)