All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.RButtonGroup

java.lang.Object
   |
   +----javax.swing.ButtonGroup
           |
           +----com.sgi.sysadm.ui.RButtonGroup

public class RButtonGroup
extends ButtonGroup
A subclass of ButtonGroup that can be used with LongRButtonGroupBinder.

See Also:
ButtonGroup, LongRButtonGroupBinder

Constructor Index

 o RButtonGroup()

Method Index

 o add(AbstractButton)
Adds a button to the group.
 o addRButtonGroupListener(RButtonGroup. RButtonGroupListener)
Add a RButtonGroupListener to this RButtonGroup.
 o getSelectedIndex()
Returns the index of the selected button.
 o remove(AbstractButton)
Remove a button from the group.
 o removeRButtonGroupListener(RButtonGroup. RButtonGroupListener)
Remove a RButtonGroupListener from this RButtonGroup.
 o setSelectedIndex(long)
Select a button by its index.

Constructors

 o RButtonGroup
 public RButtonGroup()

Methods

 o add
 public void add(AbstractButton b)
Adds a button to the group.

Overrides:
add in class ButtonGroup
 o remove
 public void remove(AbstractButton b)
Remove a button from the group.

Overrides:
remove in class ButtonGroup
 o addRButtonGroupListener
 public void addRButtonGroupListener(RButtonGroup. RButtonGroupListener listener)
Add a RButtonGroupListener to this RButtonGroup. The listener will be notified when the selection (which button in the group is selected) changes.

Parameters:
listener - The listener to add
 o removeRButtonGroupListener
 public void removeRButtonGroupListener(RButtonGroup. RButtonGroupListener listener)
Remove a RButtonGroupListener from this RButtonGroup.

Parameters:
listener - The listener to remove
 o setSelectedIndex
 public void setSelectedIndex(long index)
Select a button by its index. The index starts at zero and is determined by the order that the buttons were added to the group.

Parameters:
index - The index of the button to select.
 o getSelectedIndex
 public long getSelectedIndex()
Returns the index of the selected button. The index starts at zero and is determined by the order that the buttons were added to the group.

Returns:
The index of the selected button

All Packages  Class Hierarchy  This Package  Previous  Next  Index