public class BooleanStateGroup
extends java.lang.Object
implements java.io.Serializable
BooleanStateGroup class is used to create a
multiple-exclusion scope for a set of BooleanState objects.
Exactly one boolean state in a BooleanStateGroup can be
in the true state at any given time.
BooleanState,
直列化された形式| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected BooleanState |
selectedBooleanState
The current boolean state.
|
| コンストラクタと説明 |
|---|
BooleanStateGroup()
Constructs a boolean state group.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
BooleanState |
getSelectedBooleanState()
Returns the current boolean state from this group.
|
void |
setSelectedBooleanState(BooleanState state)
Sets the currently selected boolean state in this group to be the
specified boolean state.
|
protected transient BooleanState selectedBooleanState
public BooleanState getSelectedBooleanState()
true
state, or null if all boolean states in this group are
false.true
state, or null.public void setSelectedBooleanState(BooleanState state)
true and sets all other boolean state in this
group to be false.
If the boolean state argument is null or belongs to a
different group, then this method does nothing.
state - the BooleanState to set as the current state.