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
-
PRESSED
-
-
RELEASED
-
-
ComponentGroup()
- Create a new instance of ComponentGroup
-
getCurrent()
- Deprecated
Deprecated.
-
getSelectedItem()
- Gets the current choice from this component group
-
setCurrent(GroupItem)
-
Deprecated.
-
setSelectedItem(GroupItem)
- Sets the currently selected GroupItem in this group to be the specified GroupItem.
RELEASED
public static final boolean RELEASED
PRESSED
public static final boolean PRESSED
ComponentGroup
public ComponentGroup()
- Create a new instance of ComponentGroup
getSelectedItem
public GroupItem getSelectedItem()
- Gets the current choice from this component group
- Returns:
- the GroupItem that is currently in the "on" state, or null.
getCurrent
public GroupItem getCurrent()
- Note: getCurrent() is deprecated.
Note: getCurrent() is deprecated. As of JDK version 1.1, replaced by getSelectedItem().
- Deprecated
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.
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