java-gnome version 4.0.13

org.gnome.gtk
Class RadioButtonGroup

Object
  extended by org.gnome.gtk.RadioButtonGroup

public class RadioButtonGroup
extends Object

A group of RadioButtons sharing the mutually exclusive relationship that only one of the group member can be selected at a time.

This is the mechanism by which you indicate a series of RadioButtons will be associated:

 RadioButtonGroup group;
 RadioButton one, two, three, ...;
 
 group = RadioButtonGroup();
 one = RadioButton(group, "One");
 two = RadioButton(group, "Two");
 three = RadioButton(group, "Three");
 

Since:
4.0.7
Author:
Andrew Cowie, Mario Torre

Nested Class Summary
static interface RadioButtonGroup.GroupToggled
          Signal that is emitted each time the active RadioButton is a group is changed.
 
Constructor Summary
RadioButtonGroup()
          Create a new group of related RadioButtons
 
Method Summary
 void connect(RadioButtonGroup.GroupToggled handler)
          Hook up a handler to the RadioButtonGroup.GroupToggled signal.
 RadioButton getActive()
          Indicate which RadioButton in this RadioButtonGroup is currently selected active.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioButtonGroup

public RadioButtonGroup()
Create a new group of related RadioButtons

Since:
4.0.7
Method Detail

connect

public void connect(RadioButtonGroup.GroupToggled handler)
Hook up a handler to the RadioButtonGroup.GroupToggled signal.

Since:
Unstable

getActive

public RadioButton getActive()
Indicate which RadioButton in this RadioButtonGroup is currently selected active.

This Will return null if no RadioButton is selected, but note that this is generally indicative of something wrong with the programming; generally a RadioButtonGroup should always have at least one RadioButton selected.

Since:
4.0.7


java-gnome