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
-
RButtonGroup()
-
-
add(AbstractButton)
- Adds a button to the group.
-
addRButtonGroupListener(RButtonGroup. RButtonGroupListener)
- Add a RButtonGroupListener to this RButtonGroup.
-
getSelectedIndex()
- Returns the index of the selected button.
-
remove(AbstractButton)
- Remove a button from the group.
-
removeRButtonGroupListener(RButtonGroup. RButtonGroupListener)
- Remove a RButtonGroupListener from this RButtonGroup.
-
setSelectedIndex(long)
- Select a button by its index.
RButtonGroup
public RButtonGroup()
add
public void add(AbstractButton b)
- Adds a button to the group.
- Overrides:
- add in class ButtonGroup
remove
public void remove(AbstractButton b)
- Remove a button from the group.
- Overrides:
- remove in class ButtonGroup
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
removeRButtonGroupListener
public void removeRButtonGroupListener(RButtonGroup. RButtonGroupListener listener)
- Remove a RButtonGroupListener from this RButtonGroup.
- Parameters:
- listener - The listener to remove
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.
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