All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fr.l2f.gui.ComponentGroup

java.lang.Object
   |
   +----fr.l2f.gui.ComponentGroup

public class ComponentGroup
extends Object
The ComponentGroup class is used to group together a set of GroupItem Exactly one component in a ComponentGroup can be in the "on" state at any given time. Pushing any component sets its state to "on" and forces any other component that is in the "on" state into the "off" state.

See Also:
GroupItem

Variable Index

 o PRESSED
 o RELEASED

Constructor Index

 o ComponentGroup()
Create a new instance of ComponentGroup

Method Index

 o getCurrent()
Deprecated Deprecated.
 o getSelectedItem()
Gets the current choice from this component group
 o setCurrent(GroupItem)
Deprecated.
 o setSelectedItem(GroupItem)
Sets the currently selected GroupItem in this group to be the specified GroupItem.

Variables

 o RELEASED
 public static final boolean RELEASED
 o PRESSED
 public static final boolean PRESSED

Constructors

 o ComponentGroup
 public ComponentGroup()
Create a new instance of ComponentGroup

Methods

 o getSelectedItem
 public GroupItem getSelectedItem()
Gets the current choice from this component group

Returns:
the GroupItem that is currently in the "on" state, or null.
 o getCurrent
 public GroupItem getCurrent()
Note: getCurrent() is deprecated. Note: getCurrent() is deprecated. As of JDK version 1.1, replaced by getSelectedItem().

Deprecated

 o setSelectedItem
 public synchronized void setSelectedItem(GroupItem box)
Sets the currently selected GroupItem in this group to be the specified GroupItem. If the GroupItem argument is null or belongs to a different ComponentGroup, then this method does nothing.

 o setCurrent
 public synchronized void setCurrent(GroupItem box)
Note: setCurrent() is deprecated. Note: setCurrent() is deprecated. As of JDK version 1.1, replaced by setSelectedItem(GroupItem).


All Packages  Class Hierarchy  This Package  Previous  Next  Index