All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.BooleanStateGroup

java.lang.Object
   |
   +----jp.kyasu.awt.BooleanStateGroup

public class BooleanStateGroup
extends Object
implements Serializable
The 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.

Version:
15 Aug 1997
Author:
Kazuki YASUMATSU
See Also:
BooleanState

Constructor Index

 o BooleanStateGroup()
Constructs a boolean state group.

Method Index

 o getSelectedBooleanState()
Returns the current boolean state from this group.
 o setSelectedBooleanState(BooleanState)
Sets the currently selected boolean state in this group to be the specified boolean state.

Constructors

 o BooleanStateGroup
 public BooleanStateGroup()
Constructs a boolean state group.

Methods

 o getSelectedBooleanState
 public BooleanState getSelectedBooleanState()
Returns the current boolean state from this group. The current boolean state in this group is currently in the true state, or null if all boolean states in this group are false.

Returns:
the boolean state that is currently in the true state, or null.
 o setSelectedBooleanState
 public synchronized void setSelectedBooleanState(BooleanState state)
Sets the currently selected boolean state in this group to be the specified boolean state. This method sets the state of that boolean state to 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.

Parameters:
state - the BooleanState to set as the current state.

All Packages  Class Hierarchy  This Package  Previous  Next  Index